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