vigiboard / pkg / vigiboard.redhat.spec @ 36f6910e
History | View | Annotate | Download (2.08 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 | 26132edf | 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 | 207b24cd | Aurelien BOMPARD | |
10 | 04a8f09e | Aurelien BOMPARD | Name: vigilo-%{module} |
11 | Summary: @SUMMARY@ |
||
12 | Version: @VERSION@ |
||
13 | 169b8ab1 | Aurelien BOMPARD | Release: @RELEASE@%{?dist} |
14 | 2d135e67 | Aurelien BOMPARD | Source0: %{name}-%{version}.tar.gz |
15 | 04a8f09e | Aurelien BOMPARD | URL: @URL@ |
16 | 90dc7d76 | Aurelien BOMPARD | Group: Applications/System |
17 | 207b24cd | 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 | 9c195f22 | Aurelien BOMPARD | Requires: python26-tw-forms |
27 | 97cc4615 | Aurelien BOMPARD | Requires: python26-mod_wsgi |
28 | 207b24cd | Aurelien BOMPARD | |
29 | # Renommage |
||
30 | Obsoletes: vigiboard < 1.0-1 |
||
31 | Provides: vigiboard = %{version}-%{release} |
||
32 | |||
33 | |||
34 | %description |
||
35 | 04a8f09e | Aurelien BOMPARD | @DESCRIPTION@ |
36 | 207b24cd | Aurelien BOMPARD | This application is part of the Vigilo Project <http://vigilo-project.org> |
37 | |||
38 | %prep |
||
39 | 2d135e67 | Aurelien BOMPARD | %setup -q |
40 | 207b24cd | Aurelien BOMPARD | |
41 | %build |
||
42 | |||
43 | %install |
||
44 | rm -rf $RPM_BUILD_ROOT |
||
45 | b8e1cd40 | Aurelien BOMPARD | make install_pkg \ |
46 | 7714207c | Aurelien BOMPARD | DESTDIR=$RPM_BUILD_ROOT \ |
47 | SYSCONFDIR=%{_sysconfdir} \ |
||
48 | LOCALSTATEDIR=%{_localstatedir} \ |
||
49 | PYTHON=%{__python} |
||
50 | 207b24cd | Aurelien BOMPARD | |
51 | 44c09396 | Aurelien BOMPARD | # %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/ |
52 | 207b24cd | Aurelien BOMPARD | |
53 | |||
54 | 8af3d7f1 | Aurelien BOMPARD | %post |
55 | /sbin/service httpd condrestart > /dev/null 2>&1 || : |
||
56 | |||
57 | 207b24cd | Aurelien BOMPARD | %clean |
58 | rm -rf $RPM_BUILD_ROOT |
||
59 | |||
60 | 44c09396 | Aurelien BOMPARD | %files |
61 | 6ca1a066 | Aurelien BOMPARD | %defattr(644,root,root,755) |
62 | 8b357a71 | Aurelien BOMPARD | %doc COPYING.txt README.txt |
63 | 207b24cd | Aurelien BOMPARD | %dir %{_sysconfdir}/vigilo |
64 | 399a25e1 | 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 | 64ef5a71 | Aurelien BOMPARD | %config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
69 | 99bd4776 | Aurelien BOMPARD | %config(noreplace) /etc/httpd/conf.d/%{name}.conf |
70 | 207b24cd | Aurelien BOMPARD | %dir %{_localstatedir}/log/vigilo/ |
71 | %attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
||
72 | 99bd4776 | Aurelien BOMPARD | %config(noreplace) /etc/logrotate.d/%{name} |
73 | 207b24cd | Aurelien BOMPARD | %attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
74 | 26132edf | Aurelien BOMPARD | %{python_sitelib}/* |