summaryrefslogtreecommitdiffstats
path: root/php-pecl-druid.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-druid.spec')
-rw-r--r--php-pecl-druid.spec37
1 files changed, 15 insertions, 22 deletions
diff --git a/php-pecl-druid.spec b/php-pecl-druid.spec
index 4f49955..28ff977 100644
--- a/php-pecl-druid.spec
+++ b/php-pecl-druid.spec
@@ -1,11 +1,15 @@
# remirepo spec file for php-pecl-druid
#
-# Copyright (c) 2016-2017 Remi Collet
+# Copyright (c) 2016-2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
+
+# we don't want -z defs linker flag
+%undefine _strict_symbol_defs_build
+
%if 0%{?scl:1}
%global sub_prefix %{scl_prefix}
%scl_package php-pecl-druid
@@ -15,34 +19,30 @@
%global pecl_name druid
%global proj_name Druid
%if "%{php_version}" < "5.6"
-# After json.ini and curl.ini
+# After json.ini
%global ini_name z-%{pecl_name}.ini
%else
-# After 40-json.ini, 20-curl.ini
+# After 40-json.ini
%global ini_name 50-%{pecl_name}.ini
%endif
Summary: A Druid driver for PHP
Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 0.9.2
-Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 1.0.0
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: ASL 2.0
-Group: Development/Languages
URL: http://pecl.php.net/package/%{proj_name}
Source0: http://pecl.php.net/get/%{proj_name}-%{version}.tgz
-Patch0: 5ba2256141c7f724920bde9eddfd4f666c309d61.patch
-
+BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: %{?scl_prefix}php-json
-BuildRequires: %{?scl_prefix}php-curl
BuildRequires: curl-devel
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
Requires: %{?scl_prefix}php-json%{?_isa}
-Requires: %{?scl_prefix}php-curl%{?_isa}
%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}}
Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
@@ -55,15 +55,6 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele
%endif
%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}
@@ -107,7 +98,6 @@ sed -e 's/role="test"/role="src"/' \
mv %{proj_name}-%{version} NTS
cd NTS
-%patch0 -p1 -b .pr8
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_DRUID_VERSION/{s/.* "//;s/".*$//;p}' php_druid.h)
@@ -186,7 +176,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
@@ -208,7 +198,7 @@ fi
%check
cd NTS
-OPT="-n -d extension=json.so -d extension=curl.so"
+OPT="-n -d extension=json.so"
# Minimal load test for NTS extension
%{__php} $OPT \
@@ -239,6 +229,9 @@ cd ../ZTS
%changelog
+* Wed May 2 2018 Remi Collet <remi@remirepo.net> - 1.0.0-1
+- update to 1.0.0
+
* Tue Jul 18 2017 Remi Collet <remi@remirepo.net> - 0.9.2-3
- rebuild for PHP 7.2.0beta1 new API