From 85e1d6e404dfcbf2a1bb2f3b226fa80a086d00fe Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 17 Jun 2015 13:45:17 +0200 Subject: php-pecl-rrd: 2.0.0beta2 + upstream patches (for php7) --- php-pecl-rrd-dev.spec | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'php-pecl-rrd-dev.spec') diff --git a/php-pecl-rrd-dev.spec b/php-pecl-rrd-dev.spec index 53caacb..2e48657 100644 --- a/php-pecl-rrd-dev.spec +++ b/php-pecl-rrd-dev.spec @@ -33,6 +33,10 @@ URL: http://pecl.php.net/package/rrd Source: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +# http://svn.php.net/viewvc?view=revision&revision=336981 +# http://svn.php.net/viewvc?view=revision&revision=336985 +Patch0: %{pecl_name}-upstream.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: %{?scl_prefix}php-devel >= 7 BuildRequires: rrdtool @@ -89,12 +93,16 @@ mv %{pecl_name}-%{version}%{?prever} NTS # Don't install/register tests sed -e 's/role="test"/role="src"/' -i package.xml +cd NTS +%patch0 -p3 -b .upstream + # Sanity check, really often broken -extver=$(sed -n '/#define PHP_RRD_VERSION/{s/.* "//;s/".*$//;p}' NTS/php_rrd.h) +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 @@ -156,12 +164,12 @@ done cd NTS if pkg-config librrd --atleast-version=1.5.0 then - : ignore test failed with rrdtool > 1.5 + : ignore test failed with rrdtool gt 1.5 rm tests/rrd_{016,017}.phpt fi if ! pkg-config librrd --atleast-version=1.4.0 then - : ignore test failed with rrdtool < 1.4 + : ignore test failed with rrdtool lt 1.4 rm tests/rrd_{012,017}.phpt fi @@ -220,6 +228,7 @@ fi - raise dependency on php >= 7 - drop runtime dependency on pear, new scriptlets - don't install test suite +- add some upstream patches, post-beta2 * Wed Dec 24 2014 Remi Collet - 1.1.3-3.1 - Fedora 21 SCL mass rebuild -- cgit