vigiboard / pkg / vigiboard.rhel6.spec @ 36f6910e
History | View | Annotate | Download (1.68 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 | 2d135e67 | Aurelien BOMPARD | Source0: %{name}-%{version}.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 | Requires: mod_wsgi |
||
21 | |||
22 | # Renommage |
||
23 | Obsoletes: vigiboard < 1.0-1 |
||
24 | Provides: vigiboard = %{version}-%{release} |
||
25 | |||
26 | |||
27 | %description |
||
28 | 04a8f09e | Aurelien BOMPARD | @DESCRIPTION@ |
29 | e0c89dfc | Vincent QUEMENER | This application is part of the Vigilo Project <http://vigilo-project.org> |
30 | |||
31 | %prep |
||
32 | 2d135e67 | Aurelien BOMPARD | %setup -q |
33 | e0c89dfc | Vincent QUEMENER | |
34 | %build |
||
35 | |||
36 | %install |
||
37 | rm -rf $RPM_BUILD_ROOT |
||
38 | b8e1cd40 | Aurelien BOMPARD | make install_pkg \ |
39 | e0c89dfc | Vincent QUEMENER | DESTDIR=$RPM_BUILD_ROOT \ |
40 | SYSCONFDIR=%{_sysconfdir} \ |
||
41 | 7714207c | Aurelien BOMPARD | LOCALSTATEDIR=%{_localstatedir} \ |
42 | e0c89dfc | Vincent QUEMENER | PYTHON=%{__python} |
43 | |||
44 | # %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/ |
||
45 | |||
46 | |||
47 | %post |
||
48 | /sbin/service httpd condrestart > /dev/null 2>&1 || : |
||
49 | |||
50 | %clean |
||
51 | rm -rf $RPM_BUILD_ROOT |
||
52 | |||
53 | %files |
||
54 | %defattr(644,root,root,755) |
||
55 | 8b357a71 | Aurelien BOMPARD | %doc COPYING.txt README.txt |
56 | e0c89dfc | Vincent QUEMENER | %dir %{_sysconfdir}/vigilo |
57 | %dir %{_sysconfdir}/vigilo/%{module} |
||
58 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf |
||
59 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py |
||
60 | %config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi |
||
61 | %config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
||
62 | 99bd4776 | Aurelien BOMPARD | %config(noreplace) /etc/httpd/conf.d/%{name}.conf |
63 | e0c89dfc | Vincent QUEMENER | %dir %{_localstatedir}/log/vigilo/ |
64 | %attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
||
65 | 99bd4776 | Aurelien BOMPARD | %config(noreplace) /etc/logrotate.d/%{name} |
66 | e0c89dfc | Vincent QUEMENER | %attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
67 | %{python_sitelib}/* |