summaryrefslogtreecommitdiffstats
path: root/php-pecl-igbinary.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2019-02-14 09:09:19 +0100
committerRemi Collet <remi@remirepo.net>2019-02-14 09:09:19 +0100
commit7819baf28f5fef995f4a52e6546638e1d37c560f (patch)
tree2137fbe50a10d4ea57abd3284eac1559d9179dc0 /php-pecl-igbinary.spec
parentbc27642de7e8c56c1e3cc55b5037cc524cc83d07 (diff)
update to 3.0.0a2 (alpha)
raise dependency on PHP 7.0
Diffstat (limited to 'php-pecl-igbinary.spec')
-rw-r--r--php-pecl-igbinary.spec43
1 files changed, 14 insertions, 29 deletions
diff --git a/php-pecl-igbinary.spec b/php-pecl-igbinary.spec
index 719b8f8..510510a 100644
--- a/php-pecl-igbinary.spec
+++ b/php-pecl-igbinary.spec
@@ -3,7 +3,7 @@
#
# Fedora spec file for php-pecl-igbinary
#
-# Copyright (c) 2010-2018 Remi Collet
+# Copyright (c) 2010-2019 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -23,15 +23,10 @@
%global gh_commit 6a2d5b7ea71489c4d7065dc7746d37cfa80d501c
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
#global gh_date 20161018
-#global prever -dev
-%if "%{php_version}" < "5.6"
-%global ini_name %{pecl_name}.ini
-%else
%global ini_name 40-%{pecl_name}.ini
-%endif
-%global upstream_version 2.0.8
-#global upstream_prever RC1
+%global upstream_version 3.0.0
+%global upstream_prever a2
Summary: Replacement for the standard PHP serializer
Name: %{?sub_prefix}php-pecl-igbinary
@@ -49,7 +44,7 @@ URL: http://pecl.php.net/package/igbinary
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-pear
-BuildRequires: %{?scl_prefix}php-devel
+BuildRequires: %{?scl_prefix}php-devel > 7
BuildRequires: %{?sub_prefix}php-pecl-apcu-devel
BuildRequires: %{?sub_prefix}php-json
@@ -69,22 +64,12 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rel
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
# Other third party repo stuff
-Obsoletes: php53-pecl-%{pecl_name}
-Obsoletes: php53u-pecl-%{pecl_name}
-Obsoletes: php54-pecl-%{pecl_name}
-Obsoletes: php54w-pecl-%{pecl_name}
-%if "%{php_version}" > "5.5"
Obsoletes: php55u-pecl-%{pecl_name}
Obsoletes: php55w-pecl-%{pecl_name}
-%endif
-%if "%{php_version}" > "5.6"
Obsoletes: php56u-pecl-%{pecl_name}
Obsoletes: php56w-pecl-%{pecl_name}
-%endif
-%if "%{php_version}" > "7.0"
Obsoletes: php70u-pecl-%{pecl_name}
Obsoletes: php70w-pecl-%{pecl_name}
-%endif
%if "%{php_version}" > "7.1"
Obsoletes: php71u-pecl-%{pecl_name}
Obsoletes: php71w-pecl-%{pecl_name}
@@ -230,19 +215,15 @@ MOD=""
# drop extension load from phpt
sed -e '/^extension=/d' -i ?TS/tests/*phpt
-# APC required for test 045
-if [ -f %{php_extdir}/apcu.so ]; then
- MOD="-d extension=apcu.so"
-fi
-if [ -f %{php_extdir}/apc.so ]; then
- MOD="$MOD -d extension=apc.so"
-fi
-
-: simple NTS module load test, without APC, as optional
+: simple NTS module load test, without APCu, as optional
%{_bindir}/php --no-php-ini \
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
--modules | grep %{pecl_name}
+# APC required for test 045*
+if [ -f %{php_extdir}/apcu.so ]; then
+ MOD="-d extension=apcu.so"
+fi
# Json used in tests
if [ -f %{php_extdir}/json.so ]; then
MOD="$MOD -d extension=json.so"
@@ -257,7 +238,7 @@ REPORT_EXIT_STATUS=1 \
%{_bindir}/php -n run-tests.php --show-diff
%if %{with_zts}
-: simple ZTS module load test, without APC, as optional
+: simple ZTS module load test, without APCu, as optional
%{__ztsphp} --no-php-ini \
--define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
--modules | grep %{pecl_name}
@@ -316,6 +297,10 @@ fi
%changelog
+* Thu Feb 14 2019 Remi Collet <remi@remirepo.net> - 3.0.0~a2-1
+- update to 3.0.0a2 (alpha)
+- raise dependency on PHP 7.0
+
* Sun Oct 21 2018 Remi Collet <remi@remirepo.net> - 2.0.8-1
- update to 2.0.8