You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

64 lines
1.6 KiB

%global module_name kubernetes
%global basedir %{_datadir}/icingaweb2/modules/kubernetes
%global docdir %{_datadir}/doc/icingakubernetes
Name: icinga-kubernetes-web
Version: 0.1.0
Release: 1%{?dist}
Summary: Icinga Kubernetes Web
Group: Applications/System
License: AGPLv3
URL: https://icinga.com
#Source0: https://github.com/Icinga/icinga-notifications-web/archive/v%{version}.tar.gz
BuildArch: noarch
Requires: icingaweb2 >= 2.9
Requires: icinga-kubernetes
Requires: icinga-php-library >= 0.13.0
Requires: icinga-php-thirdparty >= 0.120
%description
Icinga for Kubernetes is a set of components for monitoring and visualizing Kubernetes resources.
This package installs Icinga for Kubernetes Web, which visualizes Kubernetes resources and their status
that are synchronized to a database by the Icinga for Kubernetes daemon.
%prep
%setup -q -T -c %{name}-%{version}
git clone https://github.com/Icinga/icinga-kubernetes-web .
git checkout v%{version}
%install
mkdir -vp %{buildroot}%{basedir}
mkdir -vp %{buildroot}%{docdir}
cp -vr application %{buildroot}%{basedir}
cp -vr library %{buildroot}%{basedir}
cp -vr public %{buildroot}%{basedir}
cp -vr configuration.php %{buildroot}%{basedir}
cp -vr module.info %{buildroot}%{basedir}
%clean
rm -rf %{buildroot}
%preun
set -e
# Only for removal
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 LICENSE
%defattr(-,root,root)
%{basedir}
%{docdir}
%changelog