vigiboard / pkg / vigiboard.redhat.spec @ 9c195f22
History | View | Annotate | Download (2.05 KB)
1 |
%define module vigiboard |
---|---|
2 |
%define name vigilo-%{module} |
3 |
%define version 2.0.0 |
4 |
%define release 1%{?svn}%{?dist} |
5 |
|
6 |
%define pyver 26 |
7 |
%define pybasever 2.6 |
8 |
%define __python /usr/bin/python%{pybasever} |
9 |
%define __os_install_post %{__python26_os_install_post} |
10 |
%{!?python26_sitelib: %define python26_sitelib %(python26 -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} |
11 |
|
12 |
Name: %{name} |
13 |
Summary: Vigilo event board |
14 |
Version: %{version} |
15 |
Release: %{release} |
16 |
Source0: %{module}-%{version}.tar.gz |
17 |
URL: http://www.projet-vigilo.org |
18 |
Group: System/Servers |
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build |
20 |
License: GPLv2 |
21 |
Buildarch: noarch |
22 |
|
23 |
BuildRequires: python26-distribute |
24 |
BuildRequires: python26-babel |
25 |
|
26 |
Requires: python26-distribute |
27 |
Requires: vigilo-turbogears |
28 |
Requires: python26-tw-forms |
29 |
Requires: mod_wsgi |
30 |
|
31 |
# Renommage |
32 |
Obsoletes: vigiboard < 1.0-1 |
33 |
Provides: vigiboard = %{version}-%{release} |
34 |
|
35 |
|
36 |
%description |
37 |
Vigilo event board. |
38 |
This application is part of the Vigilo Project <http://vigilo-project.org> |
39 |
|
40 |
%prep |
41 |
%setup -q -n %{module}-%{version} |
42 |
|
43 |
%build |
44 |
make PYTHON=%{__python} SYSCONFDIR=%{_sysconfdir} |
45 |
|
46 |
%install |
47 |
rm -rf $RPM_BUILD_ROOT |
48 |
make install \ |
49 |
DESTDIR=$RPM_BUILD_ROOT \ |
50 |
SYSCONFDIR=%{_sysconfdir} \ |
51 |
PYTHON=%{__python} |
52 |
|
53 |
# %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/ |
54 |
|
55 |
|
56 |
%clean |
57 |
rm -rf $RPM_BUILD_ROOT |
58 |
|
59 |
%files |
60 |
%defattr(644,root,root,755) |
61 |
%doc COPYING |
62 |
%dir %{_sysconfdir}/vigilo |
63 |
%dir %{_sysconfdir}/vigilo/%{module} |
64 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf |
65 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py |
66 |
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi |
67 |
%config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini |
68 |
%ghost %{_sysconfdir}/vigilo/%{module}/*.pyo |
69 |
%ghost %{_sysconfdir}/vigilo/%{module}/*.pyc |
70 |
%{_sysconfdir}/httpd/conf.d/%{module}.conf |
71 |
%dir %{_localstatedir}/log/vigilo/ |
72 |
%attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module} |
73 |
%attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions |
74 |
%{python26_sitelib}/* |