vigigraph / pkg / vigigraph.rhel6.spec @ 56ec3dfb
History | View | Annotate | Download (1.66 KB)
1 |
%define module @SHORT_NAME@ |
---|---|
2 |
|
3 |
Name: vigilo-%{module} |
4 |
Summary: @SUMMARY@ |
5 |
Version: @VERSION@ |
6 |
Release: 1%{?svn}%{?dist} |
7 |
Source0: %{name}-%{version}.tar.gz |
8 |
URL: @URL@ |
9 |
Group: System/Servers |
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 |
# A cause des permissions sur /var/log/httpd sur Red Hat |
29 |
sed -i -e '/<IfModule mod_wsgi\.c>/a WSGISocketPrefix run/wsgi' deployment/%{module}.conf |
30 |
|
31 |
%build |
32 |
|
33 |
%install |
34 |
rm -rf $RPM_BUILD_ROOT |
35 |
make install_pkg \ |
36 |
DESTDIR=$RPM_BUILD_ROOT \ |
37 |
SYSCONFDIR=%{_sysconfdir} \ |
38 |
PYTHON=%{__python} |
39 |
|
40 |
# %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/ |
41 |
|
42 |
|
43 |
%post |
44 |
/sbin/service httpd condrestart > /dev/null 2>&1 || : |
45 |
|
46 |
%clean |
47 |
rm -rf $RPM_BUILD_ROOT |
48 |
|
49 |
%files |
50 |
%defattr(644,root,root,755) |
51 |
%doc COPYING |
52 |
%dir %{_sysconfdir}/vigilo |
53 |
%dir %{_sysconfdir}/vigilo/%{module} |
54 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf |
55 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py |
56 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi |
57 |
%config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
58 |
%{_sysconfdir}/httpd/conf.d/%{module}.conf |
59 |
%dir %{_localstatedir}/log/vigilo/ |
60 |
%attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
61 |
%config(noreplace) %{_sysconfdir}/logrotate.d/%{module} |
62 |
%attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
63 |
%{python_sitelib}/* |
64 |
|