import CS php-pecl-rrd-2.0.3-1.module_el8+765+677b369c

This commit is contained in:
eabdullin 2024-04-11 09:54:58 +00:00
parent e3dc4b797a
commit 2e94a75118
3 changed files with 21 additions and 7 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/rrd-2.0.1.tgz
SOURCES/rrd-2.0.3.tgz

View File

@ -1 +1 @@
a92e680087182558bd1dab54176e362536f3ef43 SOURCES/rrd-2.0.1.tgz
274c7c2c351c9fea1c634527a6c1d88dacdc1524 SOURCES/rrd-2.0.3.tgz

View File

@ -2,7 +2,7 @@
#
# remirepo/fedora spec file for php-pecl-rrd
#
# Copyright (c) 2011-2019 Remi Collet
# Copyright (c) 2011-2021 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@ -18,14 +18,16 @@
Summary: PHP Bindings for rrdtool
Name: php-pecl-rrd
Version: 2.0.1
Version: 2.0.3
Release: 1%{?dist}
License: BSD
URL: http://pecl.php.net/package/rrd
URL: https://pecl.php.net/package/rrd
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
BuildRequires: php-devel > 7
BuildRequires: make
BuildRequires: gcc
BuildRequires: php-devel >= 7.0
BuildRequires: rrdtool
BuildRequires: pkgconfig(librrd) >= 1.3.0
BuildRequires: php-pear
@ -55,6 +57,15 @@ sed -e 's/role="test"/role="src"/' \
-e '/LICENSE/s/role="doc"/role="src"/' \
-i package.xml
cd NTS
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_RRD_VERSION/{s/.* "//;s/".*$//;p}' php_rrd.h)
if test "x${extver}" != "x%{version}%{?prever}"; then
: Error: Upstream extension version is ${extver}, expecting %{version}%{?prever}.
exit 1
fi
cd ..
cat > %{ini_name} << 'EOF'
; Enable %{pecl_name} extension module
extension=%{pecl_name}.so
@ -150,6 +161,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
* Tue Dec 14 2021 Remi Collet <rcollet@redhat.com> - 2.0.3-1
- update to 2.0.3
* Mon Nov 25 2019 Remi Collet <rcollet@redhat.com> - 2.0.1-1
- build for RHEL 8