vigiboard / pkg / vigiboard.rhel6.spec @ 65a9ee16
History | View | Annotate | Download (1.95 KB)
1 | e0c89dfc | Vincent QUEMENER | %define module vigiboard |
---|---|---|---|
2 | %define name vigilo-%{module} |
||
3 | %define version 2.0.0 |
||
4 | %define release 1%{?svn}%{?dist} |
||
5 | |||
6 | Name: %{name} |
||
7 | Summary: Vigilo event board |
||
8 | Version: %{version} |
||
9 | Release: %{release} |
||
10 | Source0: %{module}-%{version}.tar.gz |
||
11 | URL: http://www.projet-vigilo.org |
||
12 | Group: System/Servers |
||
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build |
||
14 | License: GPLv2 |
||
15 | Buildarch: noarch |
||
16 | |||
17 | BuildRequires: python-distribute |
||
18 | BuildRequires: python-babel |
||
19 | |||
20 | Requires: python-distribute |
||
21 | Requires: vigilo-turbogears |
||
22 | Requires: python-tw-forms |
||
23 | Requires: mod_wsgi |
||
24 | |||
25 | # Renommage |
||
26 | Obsoletes: vigiboard < 1.0-1 |
||
27 | Provides: vigiboard = %{version}-%{release} |
||
28 | |||
29 | |||
30 | %description |
||
31 | Vigilo event board. |
||
32 | This application is part of the Vigilo Project <http://vigilo-project.org> |
||
33 | |||
34 | %prep |
||
35 | %setup -q -n %{module}-%{version} |
||
36 | # A cause des permissions sur /var/log/httpd sur Red Hat |
||
37 | sed -i -e '/<IfModule mod_wsgi\.c>/a WSGISocketPrefix run/wsgi' deployment/%{module}.conf |
||
38 | |||
39 | %build |
||
40 | make PYTHON=%{__python} SYSCONFDIR=%{_sysconfdir} |
||
41 | |||
42 | %install |
||
43 | rm -rf $RPM_BUILD_ROOT |
||
44 | make install \ |
||
45 | DESTDIR=$RPM_BUILD_ROOT \ |
||
46 | SYSCONFDIR=%{_sysconfdir} \ |
||
47 | PYTHON=%{__python} |
||
48 | |||
49 | # %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/ |
||
50 | |||
51 | |||
52 | %post |
||
53 | /sbin/service httpd condrestart > /dev/null 2>&1 || : |
||
54 | |||
55 | %clean |
||
56 | rm -rf $RPM_BUILD_ROOT |
||
57 | |||
58 | %files |
||
59 | %defattr(644,root,root,755) |
||
60 | %doc COPYING |
||
61 | %dir %{_sysconfdir}/vigilo |
||
62 | %dir %{_sysconfdir}/vigilo/%{module} |
||
63 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf |
||
64 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py |
||
65 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi |
||
66 | %config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
||
67 | %{_sysconfdir}/httpd/conf.d/%{module}.conf |
||
68 | %dir %{_localstatedir}/log/vigilo/ |
||
69 | %attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
||
70 | 0bcaefe4 | Aurelien BOMPARD | %config(noreplace) %{_sysconfdir}/logrotate.d/%{module} |
71 | e0c89dfc | Vincent QUEMENER | %attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
72 | %{python_sitelib}/* |