Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / pkg / vigiboard.redhat.spec @ 9b8d9497

History | View | Annotate | Download (1.72 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:   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
@DESCRIPTION@
29
This application is part of the Vigilo Project <http://vigilo-project.org>
30

    
31
%prep
32
%setup -q
33

    
34
%build
35

    
36
%install
37
rm -rf $RPM_BUILD_ROOT
38
make install_pkg \
39
    DESTDIR=$RPM_BUILD_ROOT \
40
    SYSCONFDIR=%{_sysconfdir} \
41
    LOCALSTATEDIR=%{_localstatedir} \
42
    PYTHON=%{__python}
43

    
44

    
45
%post
46
/sbin/service httpd condrestart > /dev/null 2>&1 || :
47

    
48
%clean
49
rm -rf $RPM_BUILD_ROOT
50

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