vigigraph / pkg / vigigraph.redhat.spec @ b430ccc5
History | View | Annotate | Download (2.23 KB)
1 | 179ccfc2 | Aurelien BOMPARD | %define module vigigraph |
---|---|---|---|
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 graphs interface |
||
14 | Version: %{version} |
||
15 | Release: %{release} |
||
16 | b55ed80f | Aurelien BOMPARD | Source0: %{module}-%{version}.tar.gz |
17 | 179ccfc2 | 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 | 369a1177 | Aurelien BOMPARD | BuildRequires: wget |
26 | 179ccfc2 | Aurelien BOMPARD | |
27 | Requires: python26-distribute |
||
28 | Requires: vigilo-turbogears |
||
29 | 9256f6ba | Aurelien BOMPARD | Requires: mod_wsgi-python26 |
30 | 179ccfc2 | Aurelien BOMPARD | |
31 | |||
32 | %description |
||
33 | Vigilo graphs interface. |
||
34 | This application is part of the Vigilo Project <http://vigilo-project.org> |
||
35 | |||
36 | %prep |
||
37 | b55ed80f | Aurelien BOMPARD | %setup -q -n %{module}-%{version} |
38 | cca3c6c4 | Aurelien BOMPARD | # A cause des permissions sur /var/log/httpd sur Red Hat |
39 | sed -i -e '/<IfModule mod_wsgi\.c>/a WSGISocketPrefix run/wsgi' deployment/%{module}.conf |
||
40 | 179ccfc2 | Aurelien BOMPARD | |
41 | %build |
||
42 | make PYTHON=%{__python} SYSCONFDIR=%{_sysconfdir} |
||
43 | |||
44 | %install |
||
45 | rm -rf $RPM_BUILD_ROOT |
||
46 | make install \ |
||
47 | DESTDIR=$RPM_BUILD_ROOT \ |
||
48 | SYSCONFDIR=%{_sysconfdir} \ |
||
49 | PYTHON=%{__python} |
||
50 | |||
51 | # %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/ |
||
52 | |||
53 | |||
54 | d100c09e | Aurelien BOMPARD | %post |
55 | /sbin/service httpd condrestart > /dev/null 2>&1 || : |
||
56 | |||
57 | 179ccfc2 | Aurelien BOMPARD | %clean |
58 | rm -rf $RPM_BUILD_ROOT |
||
59 | |||
60 | %files |
||
61 | 6bc71ab2 | Aurelien BOMPARD | %defattr(644,root,root,755) |
62 | 179ccfc2 | Aurelien BOMPARD | %doc COPYING |
63 | %dir %{_sysconfdir}/vigilo |
||
64 | b6f49cb9 | Aurelien BOMPARD | %dir %{_sysconfdir}/vigilo/%{module} |
65 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf |
||
66 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py |
||
67 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi |
||
68 | 53bdf40e | Aurelien BOMPARD | %config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
69 | b6f49cb9 | Aurelien BOMPARD | %ghost %{_sysconfdir}/vigilo/%{module}/*.pyo |
70 | %ghost %{_sysconfdir}/vigilo/%{module}/*.pyc |
||
71 | 179ccfc2 | Aurelien BOMPARD | %{_sysconfdir}/httpd/conf.d/%{module}.conf |
72 | %dir %{_localstatedir}/log/vigilo/ |
||
73 | %attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
||
74 | 8fa23285 | Aurelien BOMPARD | %config(noreplace) %{_sysconfdir}/logrotate.d/%{module} |
75 | bb3d9eb7 | Aurelien BOMPARD | %attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
76 | 179ccfc2 | Aurelien BOMPARD | %{python26_sitelib}/* |