From 1ad1c62617a9fab129f5be34fa293954ec0a7769 Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Thu, 30 May 2024 11:33:41 +0200 Subject: [PATCH] initial package creation Signed-off-by: Toshaan Bharvani --- SOURCES/.gitkeeper | 0 SPECS/icinga-php-thirdparty.spec | 51 ++++++++++++++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 SOURCES/.gitkeeper create mode 100644 SPECS/icinga-php-thirdparty.spec diff --git a/SOURCES/.gitkeeper b/SOURCES/.gitkeeper new file mode 100644 index 0000000..e69de29 diff --git a/SPECS/icinga-php-thirdparty.spec b/SPECS/icinga-php-thirdparty.spec new file mode 100644 index 0000000..0abec02 --- /dev/null +++ b/SPECS/icinga-php-thirdparty.spec @@ -0,0 +1,51 @@ +%global basedir %{_datadir}/icinga-php/vendor + +Name: icinga-php-thirdparty +Version: 0.12.1 +Release: 1%{?dist} +Summary: Icinga PHP Thirdparty for Icinga Web 2 +Group: Applications/System +License: MIT +URL: https://icinga.com +Source0: https://github.com/Icinga/%{name}/archive/v%{version}.tar.gz +BuildArch: noarch +Requires: icinga-php-common +Requires: php-soap +Requires: php-sockets +Requires: php-curl +Requires: php-json + + +%description +This package bundles all 3rd party PHP libraries +used by Icinga Web products into one piece, +which can be integrated as library into Icinga Web 2. + + +%prep +%setup -q + + +%build + + +%install +mkdir -vp %{buildroot}%{basedir} +cp -vr asset %{buildroot}%{basedir} +cp -vr vendor %{buildroot}%{basedir} +cp -vr composer.* %{buildroot}%{basedir} +cp -vr VERSION %{buildroot}%{basedir} + + +%clean +rm -rf %{buildroot} + + +%files +%doc README.md +%license LICENSE +%defattr(-,root,root) +%{basedir} + + +%changelog