summaryrefslogtreecommitdiffstats
path: root/php-pecl-pkcs11.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-09-10 14:41:56 +0200
committerRemi Collet <remi@remirepo.net>2021-09-10 14:41:56 +0200
commit186a34f6a0be991ded1a892a51cb64c748d980a3 (patch)
treecfc728078d79e07e64076abcfd7c6265aed7d7ea /php-pecl-pkcs11.spec
parent541c91f71e648aa86407655319980f11366f8213 (diff)
add patch for PHP 8.1 from
https://github.com/gamringer/php-pkcs11/pull/59
Diffstat (limited to 'php-pecl-pkcs11.spec')
-rw-r--r--php-pecl-pkcs11.spec12
1 files changed, 11 insertions, 1 deletions
diff --git a/php-pecl-pkcs11.spec b/php-pecl-pkcs11.spec
index a90fd26..2b8f171 100644
--- a/php-pecl-pkcs11.spec
+++ b/php-pecl-pkcs11.spec
@@ -29,11 +29,13 @@
Summary: PHP Bindings for PKCS11 modules
Name: %{?sub_prefix}php-pecl-%{pecl_name}
Version: 1.0
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+Patch0: %{pecl_name}-php81.patch
+
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?scl_prefix}php-devel >= 7.4
@@ -61,6 +63,9 @@ Obsoletes: php74-pecl-%{pecl_name} <= %{version}
%if "%{php_version}" > "8.0"
Obsoletes: php80-pecl-%{pecl_name} <= %{version}
%endif
+%if "%{php_version}" > "8.1"
+Obsoletes: php81-pecl-%{pecl_name} <= %{version}
+%endif
%endif
@@ -81,6 +86,7 @@ sed -e 's/role="test"/role="src"/' \
mv %{pecl_name}-%{version} NTS
cd NTS
+%patch0 -p1
find . -type f -exec chmod -x {} ';'
# Sanity check, really often broken
@@ -216,6 +222,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Fri Sep 10 2021 Remi Collet <remi@remirepo.net> - 1.0-2
+- add patch for PHP 8.1 from
+ https://github.com/gamringer/php-pkcs11/pull/59
+
* Wed Mar 24 2021 Remi Collet <remi@remirepo.net> - 1.0-1
- update to 1.0