Browse Source

initial package creation

Signed-off-by: Toshaan Bharvani <toshaan@powerel.org>
master
Toshaan Bharvani 3 months ago
commit
3184ece457
  1. 0
      SOURCES/.gitkeeper
  2. 64
      SPECS/icinga-kubernetes-web.spec

0
SOURCES/.gitkeeper

64
SPECS/icinga-kubernetes-web.spec

@ -0,0 +1,64 @@ @@ -0,0 +1,64 @@
%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
Loading…
Cancel
Save