summaryrefslogtreecommitdiffstats
path: root/php-pecl-pkcs11.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2026-03-04 07:24:04 +0100
committerRemi Collet <remi@php.net>2026-03-04 07:24:04 +0100
commit341b5a5adee599d29037af110e38e6a43f0dc86f (patch)
tree4e463d570f1643e7082f27b2f494cfd39a1ab327 /php-pecl-pkcs11.spec
parent060830c20fdd34ace8995fc275cfa45490949779 (diff)
re-license spec file to CECILL-2.1HEADmaster
add pie virtual provides
Diffstat (limited to 'php-pecl-pkcs11.spec')
-rw-r--r--php-pecl-pkcs11.spec54
1 files changed, 21 insertions, 33 deletions
diff --git a/php-pecl-pkcs11.spec b/php-pecl-pkcs11.spec
index fd12e9a..4b07d45 100644
--- a/php-pecl-pkcs11.spec
+++ b/php-pecl-pkcs11.spec
@@ -1,15 +1,12 @@
# remirepo spec file for php-pecl-pkcs11
#
-# Copyright (c) 2020-2023 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2020-2026 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
-# we don't want -z defs linker flag
-%undefine _strict_symbol_defs_build
-
# to run test see https://github.com/gamringer/php-pkcs11/blob/master/README.md
# export PHP11_MODULE=/usr/lib64/pkcs11/libsofthsm2.so
# export PHP11_SLOT=1668069480
@@ -20,6 +17,8 @@
%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global pecl_name pkcs11
+%global pie_vend gamringer
+%global pie_proj pkcs11
# After 20-json.ini
%global ini_name 40-%{pecl_name}.ini
%global sources %{pecl_name}-%{version}
@@ -29,7 +28,7 @@
Summary: PHP Bindings for PKCS11 modules
Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 1.1.2
-Release: 2%{?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;')}}
License: PHP-3.01
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{sources}.tgz
@@ -46,10 +45,15 @@ Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
Requires: %{?scl_prefix}php-json%{?_isa}
-Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
-Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
-Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
-Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+# Extension
+Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
+Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
+# PECL
+Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+# PIE
+Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version}
+Provides: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} = %{version}
%description
@@ -63,7 +67,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%setup -q -c
sed -e 's/role="test"/role="src"/' \
- %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \
+ -e '/LICENSE/s/role="doc"/role="src"/' \
-i package.xml
cd %{sources}
@@ -136,26 +140,6 @@ do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
done
-%if 0%{?fedora} < 24 && 0%{?rhel} < 8
-# when pear installed alone, after us
-%triggerin -- %{?scl_prefix}php-pear
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-fi
-
-# posttrans as pear can be installed after us
-%posttrans
-if [ -x %{__pecl} ] ; then
- %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || :
-fi
-
-%postun
-if [ $1 -eq 0 -a -x %{__pecl} ] ; then
- %{pecl_uninstall} %{pecl_name} >/dev/null || :
-fi
-%endif
-
-
%check
# Minimal load test for NTS extension
%{__php} \
@@ -193,7 +177,7 @@ REPORT_EXIT_STATUS=1 \
%files
-%{?_licensedir:%license %{sources}/LICENSE}
+%license %{sources}/LICENSE
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml
@@ -207,6 +191,10 @@ REPORT_EXIT_STATUS=1 \
%changelog
+* Wed Feb 4 2026 Remi Collet <remi@remirepo.net> - 1.1.2-3
+- re-license spec file to CECILL-2.1
+- add pie virtual provides
+
* Wed Aug 30 2023 Remi Collet <remi@remirepo.net> - 1.1.2-2
- rebuild for PHP 8.3.0RC1