Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / pkg / vigiboard.redhat.spec @ 8f3fca99

History | View | Annotate | Download (2.2 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-tw-forms
27
Requires:   python26-mod_wsgi
28

    
29
# Renommage
30
Obsoletes: vigiboard < 1.0-1
31
Provides:  vigiboard = %{version}-%{release}
32

    
33

    
34
%description
35
@DESCRIPTION@
36
This application is part of the Vigilo Project <http://vigilo-project.org>
37

    
38
%prep
39
%setup -q
40

    
41
%build
42

    
43
%install
44
rm -rf $RPM_BUILD_ROOT
45
make install_pkg \
46
    DESTDIR=$RPM_BUILD_ROOT \
47
    SYSCONFDIR=%{_sysconfdir} \
48
    LOCALSTATEDIR=%{_localstatedir} \
49
    PYTHON=%{__python}
50

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

    
53

    
54
%post
55
/sbin/service httpd condrestart > /dev/null 2>&1 || :
56

    
57
%clean
58
rm -rf $RPM_BUILD_ROOT
59

    
60
%files
61
%defattr(644,root,root,755)
62
%doc COPYING.txt README.txt
63
%dir %{_sysconfdir}/vigilo
64
%dir %{_sysconfdir}/vigilo/%{module}
65
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.conf
66
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.py
67
%config(noreplace) %{_sysconfdir}/vigilo/%{module}/*.wsgi
68
%config(noreplace) %attr(640,root,apache) %{_sysconfdir}/vigilo/%{module}/*.ini
69
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
70
%dir %{_localstatedir}/log/vigilo/
71
%attr(750,apache,apache) %{_localstatedir}/log/vigilo/%{module}
72
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
73
%attr(750,apache,apache) %{_localstatedir}/cache/vigilo/sessions
74
%{python_sitelib}/*
75
%attr(755,root,root) %{_sysconfdir}/cron.daily/*
76
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}