diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-06-17 13:45:17 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-06-17 13:45:17 +0200 |
commit | 85e1d6e404dfcbf2a1bb2f3b226fa80a086d00fe (patch) | |
tree | 9dc9df8e9be66b8fe66c40c1ca86760f17a03be3 /php-pecl-rrd-dev.spec | |
parent | 622dc66db1721c86f4cf086b71571cc1dc12402b (diff) |
php-pecl-rrd: 2.0.0beta2 + upstream patches (for php7)
Diffstat (limited to 'php-pecl-rrd-dev.spec')
-rw-r--r-- | php-pecl-rrd-dev.spec | 15 |
1 files changed, 12 insertions, 3 deletions
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 <remi@fedoraproject.org> - 1.1.3-3.1 - Fedora 21 SCL mass rebuild |