From 15d2bf7aeb5f37a7f46a57df1b21f4436fc32fc9 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 31 Aug 2015 14:41:28 +0200 Subject: php-pecl-rrd: fix F23 build --- php-pecl-rrd.spec | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/php-pecl-rrd.spec b/php-pecl-rrd.spec index e9f4aeb..dc0aa29 100644 --- a/php-pecl-rrd.spec +++ b/php-pecl-rrd.spec @@ -26,7 +26,7 @@ Summary: PHP Bindings for rrdtool Name: %{?scl_prefix}php-pecl-rrd Version: 1.1.3 -Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}.1 +Release: 4%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}.1 License: BSD Group: Development/Languages URL: http://pecl.php.net/package/rrd @@ -145,11 +145,16 @@ cd NTS --modules | grep %{pecl_name} -%if 0%{?fedora} < 14 && 0%{?rhel} < 7 - # skip tests which only succeed with rrdtool > 1.4.0 - rm tests/rrd_012.phpt \ - tests/rrd_017.phpt -%endif +if pkg-config librrd --atleast-version=1.5.0 +then + : 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 lt 1.4 + rm tests/rrd_{012,017}.phpt +fi make -C tests/data clean make -C tests/data all @@ -193,7 +198,10 @@ fi %changelog -* Wed Dec 24 2014 Remi Collet - 0.8.0-1.1 +* Mon Aug 31 2015 Remi Collet - 1.1.3-4 +- F23 build + +* Wed Dec 24 2014 Remi Collet - 1.1.3-3 - Fedora 21 SCL mass rebuild * Mon Aug 25 2014 Remi Collet - 1.1.3-3 -- cgit