rpm-icinga-php-thirdparty/icinga-php-thirdparty.spec

77 lines
1.8 KiB
Plaintext
Raw Normal View History

2021-06-21 17:58:15 +02:00
# Icinga PHP Thirdparty for Icinga Web 2 | (c) 2021 Icinga GmbH | GPLv2+
2021-06-14 02:53:28 +02:00
2021-07-27 08:57:41 +02:00
%global revision 2
2021-06-14 02:53:28 +02:00
%global module_name icinga-php-thirdparty
Name: %{module_name}
Version: 0.10.0
Release: %{revision}%{?dist}
Summary: Icinga PHP Thirdparty for Icinga Web 2
Group: Applications/System
2021-07-08 09:55:51 +02:00
License: MIT
2021-06-14 02:53:28 +02:00
URL: https://icinga.com
2021-06-29 10:21:36 +02:00
Source0: https://github.com/Icinga/%{module_name}/archive/v%{version}.tar.gz
2021-06-14 02:53:28 +02:00
BuildArch: noarch
# 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 02:53:28 +02:00
%global basedir %{_datadir}/icinga-php/vendor
Requires: icinga-php-common
# php extension requirements
Requires: %{php}-soap
Requires: %{php}-sockets
Requires: %{php}-curl
%{?suse_version:Requires: %{php}-json}
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 30
Requires: %{php}-json
%endif
2021-06-14 02:53:28 +02:00
%description
2021-06-21 18:01:33 +02:00
This package bundles all 3rd party PHP libraries
used by Icinga Web products into one piece,
2021-06-21 17:58:15 +02:00
which can be integrated as library into Icinga Web 2.
2021-06-14 02:53:28 +02:00
%prep
2021-06-29 10:21:36 +02:00
%setup -q
2021-06-14 02:53:28 +02:00
%install
mkdir -vp %{buildroot}%{basedir}
2022-06-07 14:43:27 +02:00
cp -vr asset %{buildroot}%{basedir}
2021-06-21 17:58:15 +02:00
cp -vr vendor %{buildroot}%{basedir}
2021-06-14 02:53:28 +02:00
cp -vr composer.* %{buildroot}%{basedir}
cp -vr VERSION %{buildroot}%{basedir}
2021-06-14 02:53:28 +02:00
%clean
rm -rf %{buildroot}
%files
%doc README.md
2021-06-30 15:16:34 +02:00
%license LICENSE
2021-06-14 02:53:28 +02:00
%defattr(-,root,root)
%{basedir}
%changelog
2021-07-27 08:57:41 +02:00
* Tue Jul 27 2021 Johannes Meyer <johannes.meyer@icinga.com> - 0.10.0-2
- Added missing php extension requirements
2021-07-08 09:56:00 +02:00
* Thu Jul 08 2021 Henrik Triem <henrik.triem@icinga.com> - 0.10.0-1
- Release 0.10.0