OBS-URL: https://build.opensuse.org/package/show/server:monitoring/icinga-php-library?expand=0&rev=19
71 lines
2.0 KiB
RPMSpec
71 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package icinga-php-library
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%global revision 1
|
|
%global module_name icinga-php-library
|
|
%global basedir %{_datadir}/icinga-php/ipl
|
|
Name: %{module_name}
|
|
Version: 0.17.0
|
|
Release: %{revision}%{?dist}
|
|
Summary: Icinga PHP Library for Icinga Web 2
|
|
License: MIT
|
|
Group: System/Monitoring
|
|
URL: https://icinga.com
|
|
Source0: https://github.com/Icinga/%{module_name}/archive/v%{version}/%{module_name}-%{version}.tar.gz
|
|
Source99: %{name}-rpmlintrc
|
|
BuildRequires: fdupes
|
|
Requires: icingaweb2 >= 2.9
|
|
Requires: php >= 8.2
|
|
Requires: php-gettext
|
|
Requires: php-intl
|
|
Requires: php-json
|
|
Requires: php-openssl
|
|
Requires: php-pdo
|
|
Obsoletes: icinga-php-common < %{version}
|
|
Obsoletes: icinga-php-common > %{version}
|
|
Provides: icinga-php-common = %{version}
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
This project bundles all Icinga PHP libraries into one
|
|
piece and can be integrated as library into Icinga Web 2.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
# nothing to 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}
|
|
|
|
%fdupes %{buildroot}%{basedir}
|
|
|
|
%files
|
|
%doc README.md
|
|
%license LICENSE
|
|
%dir %{_datadir}/icinga-php
|
|
%{basedir}
|
|
|
|
%changelog
|