summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-12-27 07:09:38 +0100
committerRemi Collet <remi@remirepo.net>2020-12-27 07:09:38 +0100
commit467dbba5f3d6d270659169b66799e60dacb5c0d6 (patch)
treedc87300a85640c17a0d96b114826b97cd8e8f4f9
parent1958c5b8aee649e48e93766831860fe1820800f0 (diff)
update to 1.0.2HEADmaster
-rw-r--r--PHPINFO2
-rw-r--r--REFLECTION2
-rw-r--r--php-pecl-base58.spec36
3 files changed, 17 insertions, 23 deletions
diff --git a/PHPINFO b/PHPINFO
index 6093553..1c859fa 100644
--- a/PHPINFO
+++ b/PHPINFO
@@ -1,4 +1,4 @@
base58
-Version => 0.1.4
+Version => 1.0.2
diff --git a/REFLECTION b/REFLECTION
index e5be2fd..4151cbd 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #77 base58 version 0.1.4 ] {
+Extension [ <persistent> extension #71 base58 version 1.0.2 ] {
- Functions {
Function [ <internal:base58> function base58_encode ] {
diff --git a/php-pecl-base58.spec b/php-pecl-base58.spec
index 8a10aba..cb5a6cc 100644
--- a/php-pecl-base58.spec
+++ b/php-pecl-base58.spec
@@ -23,14 +23,15 @@
Summary: Encode and decode data with base58
Name: %{?sub_prefix}php-pecl-%{pecl_name}
-Version: 0.1.4
+Version: 1.0.2
Release: 5%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: MIT
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
-BuildRequires: %{?scl_prefix}php-devel > 7.1
+BuildRequires: %{?scl_prefix}php-devel >= 7.0
BuildRequires: %{?scl_prefix}php-pear
BuildRequires: pkgconfig(libbase58)
@@ -49,28 +50,15 @@ Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{rele
%endif
%if "%{?packager}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
-%if "%{php_version}" > "7.1"
-Obsoletes: php71u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php71w-pecl-%{pecl_name} <= %{version}
-%endif
-%if "%{php_version}" > "7.2"
-Obsoletes: php72u-pecl-%{pecl_name} <= %{version}
-Obsoletes: php72w-pecl-%{pecl_name} <= %{version}
-%endif
%if "%{php_version}" > "7.3"
Obsoletes: php73-pecl-%{pecl_name} <= %{version}
-Obsoletes: php73w-pecl-%{pecl_name} <= %{version}
%endif
%if "%{php_version}" > "7.4"
Obsoletes: php74-pecl-%{pecl_name} <= %{version}
-Obsoletes: php74w-pecl-%{pecl_name} <= %{version}
%endif
+%if "%{php_version}" > "8.0"
+Obsoletes: php80-pecl-%{pecl_name} <= %{version}
%endif
-
-%if 0%{?fedora} < 20 && 0%{?rhel} < 7
-# Filter shared private
-%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
-%{?filter_setup}
%endif
@@ -155,6 +143,9 @@ for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//')
do install -Dpm 644 NTS/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done
+# Cleanup
+rm -rf %{buildroot}%{_includedir}
+
%if 0%{?fedora} < 24 && 0%{?rhel} < 8
# when pear installed alone, after us
@@ -181,12 +172,12 @@ cd NTS
# Minimal load test for NTS extension
%{__php} \
--define extension=%{buildroot}%{php_extdir}/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
%if %{with_tests}
: Upstream test suite for NTS extension
TEST_PHP_EXECUTABLE=%{__php} \
-TEST_PHP_ARGS="-d extension=$PWD/modules/%{pecl_name}.so" \
+TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
%{__php} -n run-tests.php --show-diff
@@ -197,12 +188,12 @@ cd ../ZTS
# Minimal load test for ZTS extension
%{__ztsphp} \
--define extension=%{buildroot}%{php_ztsextdir}/%{pecl_name}.so \
- --modules | grep %{pecl_name}
+ --modules | grep '^%{pecl_name}$'
%if %{with_tests}
: Upstream test suite for ZTS extension
TEST_PHP_EXECUTABLE=%{_bindir}/zts-php \
-TEST_PHP_ARGS="-d extension=$PWD/modules/%{pecl_name}.so" \
+TEST_PHP_ARGS="-n -d extension=$PWD/modules/%{pecl_name}.so" \
NO_INTERACTION=1 \
REPORT_EXIT_STATUS=1 \
%{_bindir}/zts-php -n run-tests.php --show-diff
@@ -225,6 +216,9 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Sun Dec 27 2020 Remi Collet <remi@remirepo.net> - 1.0.2-1
+- update to 1.0.2
+
* Wed Sep 30 2020 Remi Collet <remi@remirepo.net> - 0.1.4-5
- rebuild for PHP 8.0.0RC1