summaryrefslogtreecommitdiffstats
path: root/php-pecl-yaz.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-yaz.spec')
-rw-r--r--php-pecl-yaz.spec26
1 files changed, 13 insertions, 13 deletions
diff --git a/php-pecl-yaz.spec b/php-pecl-yaz.spec
index 5f46462..9c02f10 100644
--- a/php-pecl-yaz.spec
+++ b/php-pecl-yaz.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-yaz
#
-# Copyright (c) 2014-2017 Remi Collet
+# Copyright (c) 2014-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -24,13 +24,16 @@
Summary: Z39.50/SRU client
Name: %{?sub_prefix}php-pecl-%{pecl_name}
Version: 1.2.2
-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: BSD
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
-BuildRequires: %{?scl_prefix}php-devel > 5.3
+Patch0: https://patch-diff.githubusercontent.com/raw/indexdata/phpyaz/pull/7.patch
+
+BuildRequires: %{?dtsprefix}gcc
+BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: libyaz-devel >= 3.0.2
%if 0%{?rhel} == 6
@@ -38,7 +41,6 @@ BuildRequires: libyaz-devel >= 3.0.2
BuildRequires: tcp_wrappers-devel
%endif
-
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
@@ -54,14 +56,6 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
# Other third party repo stuff
-Obsoletes: php53-pecl-%{pecl_name} <= %{version}
-Obsoletes: php53u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php54-pecl-%{pecl_name} <= %{version}
-Obsoletes: php54w-pecl-%{pecl_name} <= %{version}
-%if "%{php_version}" > "5.5"
-Obsoletes: php55u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php55w-pecl-%{pecl_name} <= %{version}
-%endif
%if "%{php_version}" > "5.6"
Obsoletes: php56u-pecl-%{pecl_name} <= %{version}
Obsoletes: php56w-pecl-%{pecl_name} <= %{version}
@@ -110,6 +104,8 @@ sed -e 's/role="test"/role="src"/' \
-i package.xml
cd NTS
+%patch0 -p1 -b .pr7
+
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_YAZ_VERSION/{s/.* "//;s/".*$//;p}' php_yaz.h)
if test "x${extver}" != "x%{version}"; then
@@ -177,7 +173,7 @@ do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done
-%if 0%{?fedora} < 24
+%if 0%{?fedora} < 24 && 0%{?rhel} < 8
# when pear installed alone, after us
%triggerin -- %{?scl_prefix}php-pear
if [ -x %{__pecl} ] ; then
@@ -246,6 +242,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Wed Jun 27 2018 Remi Collet <remi@remirepo.net> - 1.2.2-2
+- add patch for PHP 7.3 from
+ https://github.com/indexdata/phpyaz/pull/7
+
* Tue Sep 12 2017 Remi Collet <remi@remirepo.net> - 1.2.2-1
- Update to 1.2.2