Compare commits
3 Commits
9998784d90
...
42f32aade0
Author | SHA1 | Date |
---|---|---|
monitorbuilder_pel7ppc64lebuilder0 | 42f32aade0 | 6 months ago |
monitorbuilder_pel7ppc64lebuilder0 | 5e9d592007 | 6 months ago |
monitorbuilder_pel7ppc64lebuilder0 | 1b5edfd086 | 6 months ago |
9 changed files with 67 additions and 9 deletions
@ -0,0 +1,54 @@
@@ -0,0 +1,54 @@
|
||||
%global module_name map |
||||
%global icingaweb_min_version 2.9.0 |
||||
%global basedir %{_datadir}/icingaweb2/modules/%{module_name} |
||||
|
||||
Name: icingaweb2-module-%{module_name} |
||||
Version: 2.0.0 |
||||
Release: 1%{?dist} |
||||
Summary: Map - Icinga Web 2 module |
||||
Group: Applications/System |
||||
License: GPLv2+ |
||||
URL: https://icinga.com |
||||
Source0: https://github.com/nbuchwitz/icingaweb2-module-%{module_name}/archive/v%{version}.tar.gz |
||||
BuildArch: noarch |
||||
Requires: icingaweb2 >= %{icingaweb_min_version} |
||||
Requires: php-Icinga >= %{icingaweb_min_version} |
||||
|
||||
|
||||
%description |
||||
Map module for Icinga Web 2. |
||||
|
||||
|
||||
%prep |
||||
%setup -q |
||||
|
||||
|
||||
%build |
||||
|
||||
|
||||
%install |
||||
rm -rf %{buildroot} |
||||
mkdir -p %{buildroot}%{basedir} |
||||
cp -r * %{buildroot}%{basedir} |
||||
|
||||
|
||||
%clean |
||||
rm -rf %{buildroot} |
||||
|
||||
|
||||
%preun |
||||
set -e |
||||
if [ $1 == 0 ]; then |
||||
echo "Disabling icingaweb2 module '%{module_name}'" |
||||
rm -f /etc/icingaweb2/enabledModules/%{module_name} |
||||
fi |
||||
exit 0 |
||||
|
||||
|
||||
%files |
||||
%doc README.md LICENSE |
||||
%defattr(-,root,root) |
||||
%{basedir} |
||||
|
||||
|
||||
%changelog |
Loading…
Reference in new issue