Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / pkg / vigiboard.rhel6.spec @ f299be9c

History | View | Annotate | Download (1.82 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
Release:    1%{?svn}%{?dist}
7 2d135e67 Aurelien BOMPARD
Source0:    %{name}-%{version}.tar.gz
8 04a8f09e Aurelien BOMPARD
URL:        @URL@
9 e0c89dfc Vincent QUEMENER
Group:      System/Servers
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:   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
# A cause des permissions sur /var/log/httpd sur Red Hat
34 f299be9c Aurelien BOMPARD
sed -i -e '/<IfModule mod_wsgi\.c>/a WSGISocketPrefix run/wsgi' deployment/%{module}.conf.in
35 e0c89dfc Vincent QUEMENER
36
%build
37
38
%install
39
rm -rf $RPM_BUILD_ROOT
40 b8e1cd40 Aurelien BOMPARD
make install_pkg \
41 e0c89dfc Vincent QUEMENER
    DESTDIR=$RPM_BUILD_ROOT \
42
    SYSCONFDIR=%{_sysconfdir} \
43 f299be9c Aurelien BOMPARD
	LOCALSTATEDIR=%{_localstatedir} \
44 e0c89dfc Vincent QUEMENER
    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 8b357a71 Aurelien BOMPARD
%doc COPYING.txt README.txt
58 e0c89dfc Vincent QUEMENER
%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 f299be9c Aurelien BOMPARD
%config(noreplace) /etc/httpd/conf.d/%{module}.conf
65 e0c89dfc Vincent QUEMENER
%dir %{_localstatedir}/log/vigilo/
66
%attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module}
67 f299be9c Aurelien BOMPARD
%config(noreplace) /etc/logrotate.d/%{module}
68 e0c89dfc Vincent QUEMENER
%attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions
69
%{python_sitelib}/*