diff options
Diffstat (limited to 'php-pecl-pkcs11.spec')
| -rw-r--r-- | php-pecl-pkcs11.spec | 58 |
1 files changed, 30 insertions, 28 deletions
diff --git a/php-pecl-pkcs11.spec b/php-pecl-pkcs11.spec index 4b07d45..2339996 100644 --- a/php-pecl-pkcs11.spec +++ b/php-pecl-pkcs11.spec @@ -15,23 +15,31 @@ %{?scl:%scl_package php-pecl-pkcs11} -%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%global pecl_name pkcs11 -%global pie_vend gamringer -%global pie_proj pkcs11 +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global pecl_name pkcs11 +%global pie_vend gamringer +%global pie_proj %{pecl_name} # After 20-json.ini -%global ini_name 40-%{pecl_name}.ini -%global sources %{pecl_name}-%{version} -%global _configure ../%{sources}/configure +%global ini_name 40-%{pecl_name}.ini +%global sources %{gh_proj}-%{version} +%global _configure ../%{sources}/configure + +# Github forge +%global gh_vend %{pie_vend} +%global gh_proj php-%{pecl_name} +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag v%{version} +# for EL-8 to avoid TAG usage +%global archivename %{gh_proj}-%{version} - -Summary: PHP Bindings for PKCS11 modules Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 1.1.2 -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 +Summary: PHP Bindings for PKCS11 modules +License: MIT +Version: 1.1.3 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc @@ -66,10 +74,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -sed -e 's/role="test"/role="src"/' \ - -e '/LICENSE/s/role="doc"/role="src"/' \ - -i package.xml - cd %{sources} find . -type f -exec chmod -x {} ';' @@ -125,20 +129,12 @@ make -C NTS install INSTALL_ROOT=%{buildroot} # install config file install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} -# Install XML package description -install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - %if %{with_zts} make -C ZTS install INSTALL_ROOT=%{buildroot} install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Documentation -for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i -done - %check # Minimal load test for NTS extension @@ -178,8 +174,8 @@ REPORT_EXIT_STATUS=1 \ %files %license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml +%doc %{sources}/composer.json +%doc %{sources}/*.md %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -191,6 +187,12 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Mon Apr 6 2026 Remi Collet <remi@remirepo.net> - 1.1.3-1 +- update to 1.1.3 +- drop pear/pecl dependency +- sources from github +- license is now MIT + * 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 |
