rpm-icinga-php-library/icinga-php-library.spec

88 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

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}
2022-06-30 04:39:19 +02:00
Version: 0.9.0
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
2022-06-07 15:21:03 +02:00
Requires: icinga-php-thirdparty
2021-06-14 03:00:56 +02:00
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}
cp -vr VERSION %{buildroot}%{basedir}
2021-06-14 03:00:56 +02:00
%clean
rm -rf %{buildroot}
%files
%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
2022-06-30 04:39:19 +02:00
* Thu Jun 30 2022 Henrik Triem <henrik.triem@icinga.com> - 0.9.0-1
- Release 0.9.0
2022-04-26 14:55:08 +02:00
* Tue Apr 26 2022 Johannes Meyer <johannes.meyer@icinga.com> - 0.8.1-1
- Release 0.8.1
* Wed Mar 23 2022 Johannes Meyer <johannes.meyer@icinga.com> - 0.8.0-1
- Release 0.8.0
* Wed Nov 10 2021 Johannes Meyer <johannes.meyer@icinga.com> - 0.7.0-1
- Release 0.7.0
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