summaryrefslogtreecommitdiffstats
path: root/php-pecl-uopz-php7.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2016-06-09 12:08:29 +0200
committerRemi Collet <fedora@famillecollet.com>2016-06-09 12:08:29 +0200
commit8aae70fa32bbf8d915adcd91056f3e20bda1f6c9 (patch)
treec1930dffa122714ced902ccef90c8d3bbbc56d4e /php-pecl-uopz-php7.spec
parent55b913106d09f5273e08a062f4760ca313ef8f25 (diff)
php-pecl-uopz: fix for 7.1
Diffstat (limited to 'php-pecl-uopz-php7.spec')
-rw-r--r--php-pecl-uopz-php7.spec13
1 files changed, 12 insertions, 1 deletions
diff --git a/php-pecl-uopz-php7.spec b/php-pecl-uopz-php7.spec
index 2692033..388c214 100644
--- a/php-pecl-uopz-php7.spec
+++ b/php-pecl-uopz-php7.spec
@@ -24,7 +24,7 @@
Summary: User Operations for Zend
Name: %{?sub_prefix}php-pecl-%{pecl_name}
Version: 5.0.1
-Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
+Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
@@ -33,6 +33,9 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit
%else
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
%endif
+
+Patch0: %{pecl_name}-upstream.patch
+
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{?scl_prefix}php-devel > 5.4
BuildRequires: %{?scl_prefix}php-pear
@@ -62,6 +65,10 @@ Obsoletes: php56u-pecl-%{pecl_name} <= %{version}
Obsoletes: php56w-pecl-%{pecl_name} <= %{version}
Obsoletes: php70u-pecl-%{pecl_name} <= %{version}
Obsoletes: php70w-pecl-%{pecl_name} <= %{version}
+%if "%{php_version}" > "7.1"
+Obsoletes: php71u-pecl-%{pecl_name} <= %{version}
+Obsoletes: php71w-pecl-%{pecl_name} <= %{version}
+%endif
%endif
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
@@ -116,6 +123,7 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
+%patch0 -p1 -b .upstream
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_UOPZ_VERSION/{s/.* "//;s/".*$//;p}' uopz.h)
@@ -245,6 +253,9 @@ rm -rf %{buildroot}
%changelog
+* Thu Jun 9 2016 Remi Collet <remi@fedoraproject.org> - 5.0.1-2
+- add upstream patch for PHP 7.1
+
* Wed Apr 13 2016 Remi Collet <remi@fedoraproject.org> - 5.0.1-1
- update to 5.0.1