vigigraph / pkg / vigigraph.redhat.spec @ ded8142d
History | View | Annotate | Download (1.49 KB)
1 |
%define module @SHORT_NAME@ |
---|---|
2 |
|
3 |
Name: vigilo-%{module} |
4 |
Summary: @SUMMARY@ |
5 |
Version: @VERSION@ |
6 |
Release: @RELEASE@%{?dist} |
7 |
Source0: %{name}-%{version}.tar.gz |
8 |
URL: @URL@ |
9 |
Group: Applications/System |
10 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build |
11 |
License: GPLv2 |
12 |
Buildarch: noarch |
13 |
|
14 |
BuildRequires: python-distribute |
15 |
BuildRequires: python-babel |
16 |
|
17 |
Requires: python-distribute |
18 |
Requires: vigilo-turbogears |
19 |
Requires: mod_wsgi |
20 |
|
21 |
|
22 |
%description |
23 |
@DESCRIPTION@ |
24 |
This application is part of the Vigilo Project <http://vigilo-project.org> |
25 |
|
26 |
%prep |
27 |
%setup -q |
28 |
|
29 |
%build |
30 |
|
31 |
%install |
32 |
rm -rf $RPM_BUILD_ROOT |
33 |
make install_pkg \ |
34 |
DESTDIR=$RPM_BUILD_ROOT \ |
35 |
SYSCONFDIR=%{_sysconfdir} \ |
36 |
LOCALSTATEDIR=%{_localstatedir} \ |
37 |
PYTHON=%{__python} |
38 |
|
39 |
|
40 |
%post |
41 |
/sbin/service httpd condrestart > /dev/null 2>&1 || : |
42 |
|
43 |
%clean |
44 |
rm -rf $RPM_BUILD_ROOT |
45 |
|
46 |
%files |
47 |
%defattr(644,root,root,755) |
48 |
%doc COPYING.txt README.txt |
49 |
%dir %{_sysconfdir}/vigilo |
50 |
%dir %{_sysconfdir}/vigilo/%{module} |
51 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf |
52 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py |
53 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi |
54 |
%config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
55 |
%config(noreplace) /etc/httpd/conf.d/%{name}.conf |
56 |
%dir %{_localstatedir}/log/vigilo/ |
57 |
%attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
58 |
%config(noreplace) /etc/logrotate.d/%{name} |
59 |
%attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
60 |
%{python_sitelib}/* |