2021-06-21 18:04:22 +02:00
|
|
|
# Icinga PHP Library for Icinga Web 2 | (c) 2021 Icinga GmbH | GPLv2+
|
2021-06-14 03:00:56 +02:00
|
|
|
|
|
|
|
%global revision 1
|
|
|
|
%global module_name icinga-php-library
|
|
|
|
|
|
|
|
Name: %{module_name}
|
2021-07-27 11:18:25 +02:00
|
|
|
Version: 0.6.1
|
2021-06-14 03:00:56 +02:00
|
|
|
Release: %{revision}%{?dist}
|
|
|
|
Summary: Icinga PHP Library for Icinga Web 2
|
|
|
|
Group: Applications/System
|
2021-07-08 09:54:24 +02:00
|
|
|
License: MIT
|
2021-06-14 03:00:56 +02:00
|
|
|
URL: https://icinga.com
|
2021-06-29 10:21:11 +02:00
|
|
|
Source0: https://github.com/Icinga/%{module_name}/archive/v%{version}.tar.gz
|
2021-06-14 03:00:56 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2021-07-20 14:03:21 +02:00
|
|
|
# Define php runtime identifier
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} || 0%{?amzn}
|
|
|
|
%if 0%{?rhel} == 7
|
|
|
|
%define php_scl rh-php73
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?php_scl:1}
|
|
|
|
%define php_scl_prefix %{php_scl}-
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define php %{?php_scl_prefix}php
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if 0%{?suse_version}
|
|
|
|
%define php php
|
|
|
|
%endif
|
|
|
|
|
2021-06-14 03:00:56 +02:00
|
|
|
%global basedir %{_datadir}/icinga-php/ipl
|
|
|
|
|
|
|
|
Requires: icinga-php-common
|
|
|
|
|
2021-07-20 14:03:21 +02:00
|
|
|
# php extension requirements
|
|
|
|
Requires: %{php}-intl
|
|
|
|
%{?rhel:Requires: %{php}-pdo}
|
|
|
|
%{?suse_version:Requires: %{php}-gettext %{php}-json %{php}-openssl}
|
|
|
|
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 30
|
|
|
|
Requires: %{php}-json
|
|
|
|
%endif
|
|
|
|
|
2021-06-14 03:00:56 +02:00
|
|
|
%description
|
2021-06-21 18:04:22 +02:00
|
|
|
This project bundles all Icinga PHP libraries into one
|
|
|
|
piece and can be integrated as library into Icinga Web 2.
|
2021-06-14 03:00:56 +02:00
|
|
|
|
|
|
|
%prep
|
2021-06-29 10:21:11 +02:00
|
|
|
%setup -q
|
2021-06-14 03:00:56 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -vp %{buildroot}%{basedir}
|
|
|
|
|
2021-06-21 18:04:22 +02:00
|
|
|
cp -vr asset %{buildroot}%{basedir}
|
|
|
|
cp -vr vendor %{buildroot}%{basedir}
|
2021-06-14 03:00:56 +02:00
|
|
|
cp -vr composer.* %{buildroot}%{basedir}
|
2021-06-30 15:43:55 +02:00
|
|
|
cp -vr VERSION %{buildroot}%{basedir}
|
2021-06-14 03:00:56 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
2021-06-30 15:43:55 +02:00
|
|
|
%doc README.md
|
2021-06-30 15:14:44 +02:00
|
|
|
%license LICENSE
|
2021-06-14 03:00:56 +02:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%{basedir}
|
|
|
|
|
|
|
|
%changelog
|
2021-07-27 11:18:25 +02:00
|
|
|
* Tue Jul 27 2021 Johannes Meyer <johannes.meyer@icinga.com> - 0.6.1-1
|
|
|
|
- Release 0.6.1
|
|
|
|
|
2021-07-08 09:54:33 +02:00
|
|
|
* Thu Jul 08 2021 Henrik Triem <henrik.triem@icinga.com> - 0.6.0-1
|
|
|
|
- Release 0.6.0
|