Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

vigiboard / pkg / vigiboard.rhel6.spec @ 4441463b

History | View | Annotate | Download (1.7 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

    
21
%description
22
@DESCRIPTION@
23
This application is part of the Vigilo Project <https://www.vigilo-nms.com>
24

    
25
%prep
26
%setup -q
27

    
28
%build
29

    
30
%install
31
rm -rf $RPM_BUILD_ROOT
32
make install_pkg \
33
    DESTDIR=$RPM_BUILD_ROOT \
34
    SYSCONFDIR=%{_sysconfdir} \
35
    LOCALSTATEDIR=%{_localstatedir} \
36
    PYTHON=%{__python}
37

    
38

    
39
%post
40
/sbin/service httpd condrestart > /dev/null 2>&1 || :
41

    
42
%clean
43
rm -rf $RPM_BUILD_ROOT
44

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