vigiboard / pkg / vigiboard.rhel6.spec @ c25a3200
History | View | Annotate | Download (1.75 KB)
1 | 04a8f09e | Aurelien BOMPARD | %define module @SHORT_NAME@ |
---|---|---|---|
2 | e0c89dfc | Vincent QUEMENER | |
3 | 04a8f09e | Aurelien BOMPARD | Name: vigilo-%{module} |
4 | Summary: @SUMMARY@ |
||
5 | Version: @VERSION@ |
||
6 | 169b8ab1 | Aurelien BOMPARD | Release: @RELEASE@%{?dist} |
7 | c848e6b4 | Francois POIROTTE | Source0: %{name}-%{version}@PREVERSION@.tar.gz |
8 | 04a8f09e | Aurelien BOMPARD | URL: @URL@ |
9 | 90dc7d76 | Aurelien BOMPARD | Group: Applications/System |
10 | e0c89dfc | Vincent QUEMENER | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build |
11 | License: GPLv2 |
||
12 | Buildarch: noarch |
||
13 | |||
14 | BuildRequires: python-distribute |
||
15 | BuildRequires: python-babel |
||
16 | |||
17 | Requires: python-distribute |
||
18 | Requires: vigilo-turbogears |
||
19 | Requires: python-tw-forms |
||
20 | |||
21 | %description |
||
22 | 04a8f09e | Aurelien BOMPARD | @DESCRIPTION@ |
23 | 4441463b | Francois POIROTTE | This application is part of the Vigilo Project <https://www.vigilo-nms.com> |
24 | e0c89dfc | Vincent QUEMENER | |
25 | %prep |
||
26 | c848e6b4 | Francois POIROTTE | %setup -q -n %{name}-%{version}@PREVERSION@ |
27 | e0c89dfc | Vincent QUEMENER | |
28 | %build |
||
29 | |||
30 | %install |
||
31 | rm -rf $RPM_BUILD_ROOT |
||
32 | b8e1cd40 | Aurelien BOMPARD | make install_pkg \ |
33 | e0c89dfc | Vincent QUEMENER | DESTDIR=$RPM_BUILD_ROOT \ |
34 | SYSCONFDIR=%{_sysconfdir} \ |
||
35 | 7714207c | Aurelien BOMPARD | LOCALSTATEDIR=%{_localstatedir} \ |
36 | e0c89dfc | Vincent QUEMENER | PYTHON=%{__python} |
37 | |||
38 | |||
39 | %post |
||
40 | /sbin/service httpd condrestart > /dev/null 2>&1 || : |
||
41 | |||
42 | %clean |
||
43 | rm -rf $RPM_BUILD_ROOT |
||
44 | |||
45 | %files |
||
46 | %defattr(644,root,root,755) |
||
47 | 8b357a71 | Aurelien BOMPARD | %doc COPYING.txt README.txt |
48 | e0c89dfc | Vincent QUEMENER | %dir %{_sysconfdir}/vigilo |
49 | %dir %{_sysconfdir}/vigilo/%{module} |
||
50 | 57994283 | Francois POIROTTE | %exclude %{_sysconfdir}/vigilo/%{module}/*.pyc |
51 | %exclude %{_sysconfdir}/vigilo/%{module}/*.pyo |
||
52 | e0c89dfc | Vincent QUEMENER | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf |
53 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py |
||
54 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi |
||
55 | %config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
||
56 | 8f3fca99 | Francois POIROTTE | %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf |
57 | e0c89dfc | Vincent QUEMENER | %dir %{_localstatedir}/log/vigilo/ |
58 | %attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
||
59 | 8f3fca99 | Francois POIROTTE | %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} |
60 | e0c89dfc | Vincent QUEMENER | %attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
61 | %{python_sitelib}/* |
||
62 | 8f3fca99 | Francois POIROTTE | %attr(755,root,root) %{_sysconfdir}/cron.daily/* |
63 | %config(noreplace) %{_sysconfdir}/sysconfig/%{name} |