vigigraph / pkg / vigigraph.rhel6.spec @ 70f9baac
History | View | Annotate | Download (1.57 KB)
1 |
%define module @SHORT_NAME@ |
---|---|
2 |
|
3 |
Name: vigilo-%{module} |
4 |
Summary: @SUMMARY@ |
5 |
Version: @VERSION@ |
6 |
Release: @RELEASE@%{?dist} |
7 |
Source0: %{name}-%{version}.tar.gz |
8 |
URL: @URL@ |
9 |
Group: Applications/System |
10 |
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 |
@DESCRIPTION@ |
24 |
This application is part of the Vigilo Project <http://vigilo-project.org> |
25 |
|
26 |
%prep |
27 |
%setup -q |
28 |
|
29 |
%build |
30 |
|
31 |
%install |
32 |
rm -rf $RPM_BUILD_ROOT |
33 |
make install_pkg \ |
34 |
DESTDIR=$RPM_BUILD_ROOT \ |
35 |
SYSCONFDIR=%{_sysconfdir} \ |
36 |
LOCALSTATEDIR=%{_localstatedir} \ |
37 |
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 |
%doc COPYING.txt README.txt |
51 |
%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 |
%config(noreplace) /etc/httpd/conf.d/%{name}.conf |
58 |
%dir %{_localstatedir}/log/vigilo/ |
59 |
%attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
60 |
%config(noreplace) /etc/logrotate.d/%{name} |
61 |
%attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
62 |
%{python_sitelib}/* |