diff options
Diffstat (limited to 'php-pecl-apfd.spec')
| -rw-r--r-- | php-pecl-apfd.spec | 58 |
1 files changed, 32 insertions, 26 deletions
diff --git a/php-pecl-apfd.spec b/php-pecl-apfd.spec index 782a000..54c9c62 100644 --- a/php-pecl-apfd.spec +++ b/php-pecl-apfd.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-apfd # -# SPDX-FileCopyrightText: Copyright 2015-2025 Remi Collet +# SPDX-FileCopyrightText: Copyright 2015-2026 Remi Collet # SPDX-License-Identifier: CECILL-2.1 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # @@ -12,29 +12,36 @@ %{?scl:%scl_package php-pecl-apfd} -%bcond_without tests +%bcond_without tests -%global pecl_name apfd -%global pie_vend m6w6 -%global pie_proj ext-apfd -%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%global ini_name 40-%{pecl_name}.ini -#global prever RC1 -%global sources %{pecl_name}-%{version} -%global _configure ../%{sources}/configure +%global pecl_name apfd +%global pie_vend m6w6 +%global pie_proj ext-apfd +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global ini_name 40-%{pecl_name}.ini +%global sources %{archivename} +%global _configure ../%{sources}/configure + +# Github forge +%global gh_vend %{pie_vend} +%global gh_proj %{pie_proj} +%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: Always Populate Form Data Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 1.0.3 -Release: 6%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Summary: Always Populate Form Data License: BSD-2-Clause -URL: https://pecl.php.net/package/%{pecl_name} -Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Version: 1.0.3 +Release: 7%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: %{?dtsprefix}gcc BuildRequires: make BuildRequires: %{?scl_prefix}php-devel -BuildRequires: %{?scl_prefix}php-pear %if %{with tests} BuildRequires: %{?scl_prefix}php-pecl-json-post %endif @@ -68,11 +75,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -# Don't install/register tests -sed -e 's/role="test"/role="src"/' \ - -e '/LICENSE/s/role="doc"/role="src"/' \ - -i package.xml - cd %{sources} # Sanity check, really often broken extver=$(sed -n '/#define PHP_APFD_VERSION/{s/.* "//;s/".*$//;p}' php_apfd.h) @@ -127,9 +129,6 @@ cd ../ZTS # 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_install -C ZTS @@ -173,9 +172,12 @@ cd ../ZTS %files %license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} +#%%doc %%{sources}/composer.json +%doc %{sources}/AUTHORS +%doc %{sources}/CREDITS +%doc %{sources}/THANKS +%doc %{sources}/*.md -%{pecl_xmldir}/%{name}.xml %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -186,6 +188,10 @@ cd ../ZTS %changelog +* Fri Mar 13 2026 Remi Collet <remi@remirepo.net> - 1.0.3-7 +- drop pear/pecl dependency +- sources from github + * Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 1.0.3-6 - rebuild for PHP 8.5.0RC1 |
