Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigigraph / pkg / vigigraph.rhel6.spec @ a7b49156

History | View | Annotate | Download (1.81 KB)

1
%define module  vigigraph
2
%define name    vigilo-%{module}
3
%define version 2.0.0
4
%define release 1%{?svn}%{?dist}
5

    
6
Name:       %{name}
7
Summary:    Vigilo graphs interface
8
Version:    %{version}
9
Release:    %{release}
10
Source0:    %{module}-%{version}.tar.gz
11
URL:        http://www.projet-vigilo.org
12
Group:      System/Servers
13
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-build
14
License:    GPLv2
15
Buildarch:  noarch
16

    
17
BuildRequires:   python-distribute
18
BuildRequires:   python-babel
19
BuildRequires:   wget
20

    
21
Requires:   python-distribute
22
Requires:   vigilo-turbogears
23
Requires:   mod_wsgi
24

    
25

    
26
%description
27
Vigilo graphs interface.
28
This application is part of the Vigilo Project <http://vigilo-project.org>
29

    
30
%prep
31
%setup -q -n %{module}-%{version}
32
# A cause des permissions sur /var/log/httpd sur Red Hat
33
sed -i -e '/<IfModule mod_wsgi\.c>/a WSGISocketPrefix run/wsgi' deployment/%{module}.conf
34

    
35
%build
36
make PYTHON=%{__python} SYSCONFDIR=%{_sysconfdir}
37

    
38
%install
39
rm -rf $RPM_BUILD_ROOT
40
make install \
41
    DESTDIR=$RPM_BUILD_ROOT \
42
    SYSCONFDIR=%{_sysconfdir} \
43
    PYTHON=%{__python}
44

    
45
# %find_lang %{name} # ne fonctionne qu'avec les fichiers dans /usr/share/locale/
46

    
47

    
48
%post
49
/sbin/service httpd condrestart > /dev/null 2>&1 || :
50

    
51
%clean
52
rm -rf $RPM_BUILD_ROOT
53

    
54
%files
55
%defattr(644,root,root,755)
56
%doc COPYING
57
%dir %{_sysconfdir}/vigilo
58
%dir %{_sysconfdir}/vigilo/%{module}
59
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf
60
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py
61
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi
62
%config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini
63
%{_sysconfdir}/httpd/conf.d/%{module}.conf
64
%dir %{_localstatedir}/log/vigilo/
65
%attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module}
66
%attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions
67
%{python_sitelib}/*
68