vigigraph / pkg / vigigraph.redhat.spec @ 70f9baac
History | View | Annotate | Download (1.97 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 | 876e6068 | Aurelien BOMPARD | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
7 | # Turn off the brp-python-bytecompile script |
||
8 | %define __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g') |
||
9 | 179ccfc2 | Aurelien BOMPARD | |
10 | 6a0204a8 | Aurelien BOMPARD | Name: vigilo-%{module} |
11 | Summary: @SUMMARY@ |
||
12 | Version: @VERSION@ |
||
13 | 3104ae2b | Aurelien BOMPARD | Release: @RELEASE@%{?dist} |
14 | 7f07168b | Aurelien BOMPARD | Source0: %{name}-%{version}.tar.gz |
15 | 6a0204a8 | Aurelien BOMPARD | URL: @URL@ |
16 | cc774053 | Aurelien BOMPARD | Group: Applications/System |
17 | 179ccfc2 | Aurelien BOMPARD | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build |
18 | License: GPLv2 |
||
19 | Buildarch: noarch |
||
20 | |||
21 | BuildRequires: python26-distribute |
||
22 | BuildRequires: python26-babel |
||
23 | |||
24 | Requires: python26-distribute |
||
25 | Requires: vigilo-turbogears |
||
26 | 2cd065a3 | Aurelien BOMPARD | Requires: python26-mod_wsgi |
27 | 179ccfc2 | Aurelien BOMPARD | |
28 | |||
29 | %description |
||
30 | 6a0204a8 | Aurelien BOMPARD | @DESCRIPTION@ |
31 | 179ccfc2 | Aurelien BOMPARD | This application is part of the Vigilo Project <http://vigilo-project.org> |
32 | |||
33 | %prep |
||
34 | 7f07168b | Aurelien BOMPARD | %setup -q |
35 | 179ccfc2 | Aurelien BOMPARD | |
36 | %build |
||
37 | |||
38 | %install |
||
39 | rm -rf $RPM_BUILD_ROOT |
||
40 | 3ba7282b | Aurelien BOMPARD | make install_pkg \ |
41 | fd5c96e4 | Aurelien BOMPARD | DESTDIR=$RPM_BUILD_ROOT \ |
42 | SYSCONFDIR=%{_sysconfdir} \ |
||
43 | LOCALSTATEDIR=%{_localstatedir} \ |
||
44 | PYTHON=%{__python} |
||
45 | 179ccfc2 | Aurelien BOMPARD | |
46 | # %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/ |
||
47 | |||
48 | |||
49 | d100c09e | Aurelien BOMPARD | %post |
50 | /sbin/service httpd condrestart > /dev/null 2>&1 || : |
||
51 | |||
52 | 179ccfc2 | Aurelien BOMPARD | %clean |
53 | rm -rf $RPM_BUILD_ROOT |
||
54 | |||
55 | %files |
||
56 | 6bc71ab2 | Aurelien BOMPARD | %defattr(644,root,root,755) |
57 | db524ae0 | Aurelien BOMPARD | %doc COPYING.txt README.txt |
58 | 179ccfc2 | Aurelien BOMPARD | %dir %{_sysconfdir}/vigilo |
59 | b6f49cb9 | Aurelien BOMPARD | %dir %{_sysconfdir}/vigilo/%{module} |
60 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf |
||
61 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py |
||
62 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi |
||
63 | 53bdf40e | Aurelien BOMPARD | %config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
64 | af425723 | Aurelien BOMPARD | %config(noreplace) /etc/httpd/conf.d/%{name}.conf |
65 | 179ccfc2 | Aurelien BOMPARD | %dir %{_localstatedir}/log/vigilo/ |
66 | %attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
||
67 | af425723 | Aurelien BOMPARD | %config(noreplace) /etc/logrotate.d/%{name} |
68 | bb3d9eb7 | Aurelien BOMPARD | %attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
69 | 876e6068 | Aurelien BOMPARD | %{python_sitelib}/* |