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