glpi / pkg / glpi.redhat.spec @ 0ff49d9f
History | View | Annotate | Download (1.36 KB)
1 |
%define module @SHORT_NAME@ |
---|---|
2 |
%define vigiconf_confdir %{_sysconfdir}/vigilo/vigiconf/conf.d/ |
3 |
|
4 |
Name: vigilo-%{module} |
5 |
Summary: Vigilo integration plugin for GLPI |
6 |
Version: @VERSION@ |
7 |
Release: @RELEASE@%{?dist} |
8 |
Source0: %{name}-%{version}.tar.gz |
9 |
URL: http://www.projet-vigilo.org |
10 |
Group: Applications/System |
11 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build |
12 |
License: GPLv2 |
13 |
Buildarch: noarch |
14 |
|
15 |
Requires: glpi |
16 |
Requires: vigilo-vigiconf |
17 |
|
18 |
Requires(pre): shadow-utils |
19 |
Requires(pre): httpd |
20 |
Requires(pre): vigilo-vigiconf |
21 |
|
22 |
%description |
23 |
This package provides a plugin that makes it possible to configure Vigilo |
24 |
and deploy new configuration files from GLPI's GUI. |
25 |
This application is part of the Vigilo Project <http://vigilo-project.org> |
26 |
|
27 |
%prep |
28 |
%setup -q |
29 |
|
30 |
%build |
31 |
|
32 |
%install |
33 |
rm -rf $RPM_BUILD_ROOT |
34 |
make install_pkg \ |
35 |
DESTDIR=$RPM_BUILD_ROOT \ |
36 |
SYSCONFDIR=%{_sysconfdir} \ |
37 |
DATADIR=%{_datadir} \ |
38 |
INITDIR=%{_initrddir} |
39 |
|
40 |
%pre |
41 |
usermod -a -G apache vigiconf || : |
42 |
exit 0 |
43 |
|
44 |
%clean |
45 |
rm -rf $RPM_BUILD_ROOT |
46 |
|
47 |
%files |
48 |
%defattr(644,root,root,755) |
49 |
%doc COPYING.txt |
50 |
%{_datadir}/%{module}/plugins/ |
51 |
%{_initrddir}/%{name} |
52 |
%{_sysconfdir}/sudoers.d/%{name} |
53 |
%defattr(644,vigiconf,apache,770) |
54 |
%dir %{vigiconf_confdir}/groups/managed/ |
55 |
%dir %{vigiconf_confdir}/hosts/managed/ |
56 |
|
57 |
%changelog |
58 |
* Mon May 22 2017 François Poirotte <francois.poirotte@c-s.fr> |
59 |
- Initial packaging |