vigigraph / pkg / vigigraph.redhat.spec @ 4232359e
History | View | Annotate | Download (1.97 KB)
1 |
%define module @SHORT_NAME@ |
---|---|
2 |
|
3 |
%define pyver 26 |
4 |
%define pybasever 2.6 |
5 |
%define __python /usr/bin/python%{pybasever} |
6 |
%{!?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 |
|
10 |
Name: vigilo-%{module} |
11 |
Summary: @SUMMARY@ |
12 |
Version: @VERSION@ |
13 |
Release: @RELEASE@%{?dist} |
14 |
Source0: %{name}-%{version}.tar.gz |
15 |
URL: @URL@ |
16 |
Group: Applications/System |
17 |
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 |
Requires: python26-mod_wsgi |
27 |
|
28 |
|
29 |
%description |
30 |
@DESCRIPTION@ |
31 |
This application is part of the Vigilo Project <http://vigilo-project.org> |
32 |
|
33 |
%prep |
34 |
%setup -q |
35 |
|
36 |
%build |
37 |
|
38 |
%install |
39 |
rm -rf $RPM_BUILD_ROOT |
40 |
make install_pkg \ |
41 |
DESTDIR=$RPM_BUILD_ROOT \ |
42 |
SYSCONFDIR=%{_sysconfdir} \ |
43 |
LOCALSTATEDIR=%{_localstatedir} \ |
44 |
PYTHON=%{__python} |
45 |
|
46 |
# %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/ |
47 |
|
48 |
|
49 |
%post |
50 |
/sbin/service httpd condrestart > /dev/null 2>&1 || : |
51 |
|
52 |
%clean |
53 |
rm -rf $RPM_BUILD_ROOT |
54 |
|
55 |
%files |
56 |
%defattr(644,root,root,755) |
57 |
%doc COPYING.txt README.txt |
58 |
%dir %{_sysconfdir}/vigilo |
59 |
%dir %{_sysconfdir}/vigilo/%{module} |
60 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf |
61 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py |
62 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi |
63 |
%config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
64 |
%config(noreplace) /etc/httpd/conf.d/%{name}.conf |
65 |
%dir %{_localstatedir}/log/vigilo/ |
66 |
%attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
67 |
%config(noreplace) /etc/logrotate.d/%{name} |
68 |
%attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
69 |
%{python_sitelib}/* |