vigigraph / pkg / vigigraph.rhel6.spec @ 70f9baac
History | View | Annotate | Download (1.57 KB)
1 | 6a0204a8 | Aurelien BOMPARD | %define module @SHORT_NAME@ |
---|---|---|---|
2 | a7b49156 | Vincent QUEMENER | |
3 | 6a0204a8 | Aurelien BOMPARD | Name: vigilo-%{module} |
4 | Summary: @SUMMARY@ |
||
5 | Version: @VERSION@ |
||
6 | 3104ae2b | Aurelien BOMPARD | Release: @RELEASE@%{?dist} |
7 | 7f07168b | Aurelien BOMPARD | Source0: %{name}-%{version}.tar.gz |
8 | 6a0204a8 | Aurelien BOMPARD | URL: @URL@ |
9 | cc774053 | Aurelien BOMPARD | Group: Applications/System |
10 | a7b49156 | 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: mod_wsgi |
||
20 | |||
21 | |||
22 | %description |
||
23 | 6a0204a8 | Aurelien BOMPARD | @DESCRIPTION@ |
24 | a7b49156 | Vincent QUEMENER | This application is part of the Vigilo Project <http://vigilo-project.org> |
25 | |||
26 | %prep |
||
27 | 7f07168b | Aurelien BOMPARD | %setup -q |
28 | a7b49156 | Vincent QUEMENER | |
29 | %build |
||
30 | |||
31 | %install |
||
32 | rm -rf $RPM_BUILD_ROOT |
||
33 | 3ba7282b | Aurelien BOMPARD | make install_pkg \ |
34 | a7b49156 | Vincent QUEMENER | DESTDIR=$RPM_BUILD_ROOT \ |
35 | SYSCONFDIR=%{_sysconfdir} \ |
||
36 | fd5c96e4 | Aurelien BOMPARD | LOCALSTATEDIR=%{_localstatedir} \ |
37 | a7b49156 | Vincent QUEMENER | PYTHON=%{__python} |
38 | |||
39 | # %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/ |
||
40 | |||
41 | |||
42 | %post |
||
43 | /sbin/service httpd condrestart > /dev/null 2>&1 || : |
||
44 | |||
45 | %clean |
||
46 | rm -rf $RPM_BUILD_ROOT |
||
47 | |||
48 | %files |
||
49 | %defattr(644,root,root,755) |
||
50 | db524ae0 | Aurelien BOMPARD | %doc COPYING.txt README.txt |
51 | a7b49156 | Vincent QUEMENER | %dir %{_sysconfdir}/vigilo |
52 | %dir %{_sysconfdir}/vigilo/%{module} |
||
53 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf |
||
54 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py |
||
55 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi |
||
56 | %config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
||
57 | af425723 | Aurelien BOMPARD | %config(noreplace) /etc/httpd/conf.d/%{name}.conf |
58 | a7b49156 | Vincent QUEMENER | %dir %{_localstatedir}/log/vigilo/ |
59 | %attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
||
60 | af425723 | Aurelien BOMPARD | %config(noreplace) /etc/logrotate.d/%{name} |
61 | a7b49156 | Vincent QUEMENER | %attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
62 | %{python_sitelib}/* |