vigiboard / pkg / vigiboard.rhel5.spec @ 122bc61c
History | View | Annotate | Download (2.09 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 | 207b24cd | Aurelien BOMPARD | |
28 | %description |
||
29 | 04a8f09e | Aurelien BOMPARD | @DESCRIPTION@ |
30 | 207b24cd | Aurelien BOMPARD | This application is part of the Vigilo Project <http://vigilo-project.org> |
31 | |||
32 | %prep |
||
33 | 2d135e67 | Aurelien BOMPARD | %setup -q |
34 | 207b24cd | Aurelien BOMPARD | |
35 | %build |
||
36 | |||
37 | %install |
||
38 | rm -rf $RPM_BUILD_ROOT |
||
39 | b8e1cd40 | Aurelien BOMPARD | make install_pkg \ |
40 | 7714207c | Aurelien BOMPARD | DESTDIR=$RPM_BUILD_ROOT \ |
41 | SYSCONFDIR=%{_sysconfdir} \ |
||
42 | LOCALSTATEDIR=%{_localstatedir} \ |
||
43 | PYTHON=%{__python} |
||
44 | 207b24cd | Aurelien BOMPARD | |
45 | 44c09396 | Aurelien BOMPARD | # %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/ |
46 | 207b24cd | Aurelien BOMPARD | |
47 | |||
48 | 8af3d7f1 | Aurelien BOMPARD | %post |
49 | /sbin/service httpd condrestart > /dev/null 2>&1 || : |
||
50 | |||
51 | 207b24cd | Aurelien BOMPARD | %clean |
52 | rm -rf $RPM_BUILD_ROOT |
||
53 | |||
54 | 44c09396 | Aurelien BOMPARD | %files |
55 | 6ca1a066 | Aurelien BOMPARD | %defattr(644,root,root,755) |
56 | 8b357a71 | Aurelien BOMPARD | %doc COPYING.txt README.txt |
57 | 207b24cd | Aurelien BOMPARD | %dir %{_sysconfdir}/vigilo |
58 | 399a25e1 | 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 | 64ef5a71 | Aurelien BOMPARD | %config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
63 | 8f3fca99 | Francois POIROTTE | %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf |
64 | 207b24cd | Aurelien BOMPARD | %dir %{_localstatedir}/log/vigilo/ |
65 | %attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
||
66 | 8f3fca99 | Francois POIROTTE | %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} |
67 | 207b24cd | Aurelien BOMPARD | %attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
68 | 26132edf | Aurelien BOMPARD | %{python_sitelib}/* |
69 | 8f3fca99 | Francois POIROTTE | %attr(755,root,root) %{_sysconfdir}/cron.daily/* |
70 | %config(noreplace) %{_sysconfdir}/sysconfig/%{name} |