vigigraph / pkg / vigigraph.redhat.spec @ c3783dbd
History | View | Annotate | Download (1.93 KB)
1 | 6a0204a8 | Aurelien BOMPARD | %define module @SHORT_NAME@ |
---|---|---|---|
2 | 179ccfc2 | 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 | 6a0204a8 | Aurelien BOMPARD | Name: vigilo-%{module} |
10 | Summary: @SUMMARY@ |
||
11 | Version: @VERSION@ |
||
12 | 3104ae2b | Aurelien BOMPARD | Release: @RELEASE@%{?dist} |
13 | 7f07168b | Aurelien BOMPARD | Source0: %{name}-%{version}.tar.gz |
14 | 6a0204a8 | Aurelien BOMPARD | URL: @URL@ |
15 | 179ccfc2 | 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 | 2cd065a3 | Aurelien BOMPARD | Requires: python26-mod_wsgi |
26 | 179ccfc2 | Aurelien BOMPARD | |
27 | |||
28 | %description |
||
29 | 6a0204a8 | Aurelien BOMPARD | @DESCRIPTION@ |
30 | 179ccfc2 | Aurelien BOMPARD | This application is part of the Vigilo Project <http://vigilo-project.org> |
31 | |||
32 | %prep |
||
33 | 7f07168b | Aurelien BOMPARD | %setup -q |
34 | 179ccfc2 | Aurelien BOMPARD | |
35 | %build |
||
36 | |||
37 | %install |
||
38 | rm -rf $RPM_BUILD_ROOT |
||
39 | 3ba7282b | Aurelien BOMPARD | make install_pkg \ |
40 | 179ccfc2 | Aurelien BOMPARD | DESTDIR=$RPM_BUILD_ROOT \ |
41 | SYSCONFDIR=%{_sysconfdir} \ |
||
42 | 9996920f | Aurelien BOMPARD | LOCALSTATEDIR=%{_localstatedir} \ |
43 | 179ccfc2 | Aurelien BOMPARD | PYTHON=%{__python} |
44 | |||
45 | # %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/ |
||
46 | |||
47 | |||
48 | d100c09e | Aurelien BOMPARD | %post |
49 | /sbin/service httpd condrestart > /dev/null 2>&1 || : |
||
50 | |||
51 | 179ccfc2 | Aurelien BOMPARD | %clean |
52 | rm -rf $RPM_BUILD_ROOT |
||
53 | |||
54 | %files |
||
55 | 6bc71ab2 | Aurelien BOMPARD | %defattr(644,root,root,755) |
56 | db524ae0 | Aurelien BOMPARD | %doc COPYING.txt README.txt |
57 | 179ccfc2 | Aurelien BOMPARD | %dir %{_sysconfdir}/vigilo |
58 | b6f49cb9 | Aurelien BOMPARD | %dir %{_sysconfdir}/vigilo/%{module} |
59 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf |
||
60 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py |
||
61 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi |
||
62 | 53bdf40e | Aurelien BOMPARD | %config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
63 | b6f49cb9 | Aurelien BOMPARD | %ghost %{_sysconfdir}/vigilo/%{module}/*.pyo |
64 | %ghost %{_sysconfdir}/vigilo/%{module}/*.pyc |
||
65 | 9996920f | Aurelien BOMPARD | %config(noreplace) /etc/httpd/conf.d/%{module}.conf |
66 | 179ccfc2 | Aurelien BOMPARD | %dir %{_localstatedir}/log/vigilo/ |
67 | %attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
||
68 | 9996920f | Aurelien BOMPARD | %config(noreplace) /etc/logrotate.d/%{module} |
69 | bb3d9eb7 | Aurelien BOMPARD | %attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
70 | 179ccfc2 | Aurelien BOMPARD | %{python26_sitelib}/* |