summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore7
-rw-r--r--php-pecl-swoole-serialize.spec21
2 files changed, 24 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1ab5c4f
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,7 @@
+package-*.xml
+*.tgz
+*.tar.gz
+*.tar.xz
+*.tar.xz.asc
+*.src.rpm
+*/*rpm
diff --git a/php-pecl-swoole-serialize.spec b/php-pecl-swoole-serialize.spec
index 8d1cb23..d612294 100644
--- a/php-pecl-swoole-serialize.spec
+++ b/php-pecl-swoole-serialize.spec
@@ -1,6 +1,6 @@
# remirepo spec file for php-pecl-swoole-serialize
#
-# Copyright (c) 2017 Remi Collet
+# Copyright (c) 2018 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
@@ -18,10 +18,9 @@
Summary: Fast and Small serialize
Name: %{?sub_prefix}php-pecl-swoole-serialize
Version: 0.1.1
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Source: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
License: ASL 2.0
-Group: Development/Languages
URL: http://pecl.php.net/package/swoole_serialize
BuildRequires: %{?scl_prefix}php-devel >= 7
@@ -48,6 +47,10 @@ Obsoletes: php70w-pecl-swoole-serialize <= %{version}
Obsoletes: php71u-pecl-swoole-serialize <= %{version}
Obsoletes: php71w-pecl-swoole-serialize <= %{version}
%endif
+%if "%{php_version}" > "7.2"
+Obsoletes: php72u-pecl-swoole-serialize <= %{version}
+Obsoletes: php72w-pecl-swoole-serialize <= %{version}
+%endif
%endif
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
@@ -93,6 +96,8 @@ EOF
%build
+%{?dtsenable}
+
cd NTS
%{_bindir}/phpize
%configure --with-php-config=%{_bindir}/php-config
@@ -107,6 +112,8 @@ make %{?_smp_mflags}
%install
+%{?dtsenable}
+
# Install the NTS stuff
make -C NTS install INSTALL_ROOT=%{buildroot}
install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
@@ -157,7 +164,7 @@ REPORT_EXIT_STATUS=1 \
%endif
-%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
@@ -192,6 +199,12 @@ fi
%changelog
+* Thu Dec 13 2018 Remi Collet <remi@remirepo.net> - 0.1.1-3
+- cleanup for EL-8
+
+* Tue Jul 18 2017 Remi Collet <remi@remirepo.net> - 0.1.1-2
+- rebuild for PHP 7.2.0beta1 new API
+
* Thu Feb 9 2017 Remi Collet <remi@fedoraproject.org> - 0.1.1-1
- initial package, version 0.1.1 (php 7, beta)