diff options
| -rw-r--r-- | php-pecl-json-post.spec | 60 |
1 files changed, 31 insertions, 29 deletions
diff --git a/php-pecl-json-post.spec b/php-pecl-json-post.spec index 29d567a..2f8834c 100644 --- a/php-pecl-json-post.spec +++ b/php-pecl-json-post.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-json-post # -# 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 # @@ -14,29 +14,37 @@ %bcond_without tests -%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%global pecl_name json_post -%global pie_vend m6w6 -%global pie_proj ext-json_post +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global pecl_name json_post +%global pie_vend m6w6 +%global pie_proj ext-json_post # after 40-json.ini -%global ini_name 50-%{pecl_name}.ini -#global prever RC2 -%global sources %{pecl_name}-%{version}%{?prever} -%global _configure ../%{sources}/configure +%global ini_name 50-%{pecl_name}.ini +#global prever RC2 +%global sources %{archivename} +%global _configure ../%{sources}/configure + +# Github forge +%global gh_vend m6w6 +%global gh_proj ext-json_post +%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: JSON POST handler Name: %{?scl_prefix}php-pecl-json-post -Version: 1.1.0 -Release: 5%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD-2-Clause -URL: https://pecl.php.net/package/%{pecl_name} -Source0: https://pecl.php.net/get/%{sources}.tgz +Version: 1.1.0 +Release: 6%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel BuildRequires: %{?scl_prefix}php-json -BuildRequires: %{?scl_prefix}php-pear Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} @@ -70,11 +78,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_JSON_POST_VERSION/{s/.* "//;s/".*$//;p}' php_json_post.h) @@ -135,20 +138,12 @@ 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 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 OPT="-n" @@ -183,10 +178,13 @@ cd ../ZTS %files -%doc %{pecl_docdir}/%{pecl_name} %license %{sources}/LICENSE +#%%doc %%{sources}/composer.json +%doc %{sources}/*.md +%doc %{sources}/CREDITS +%doc %{sources}/AUTHORS +%doc %{sources}/THANKS -%{pecl_xmldir}/%{name}.xml %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -197,6 +195,10 @@ cd ../ZTS %changelog +* Fri Mar 13 2026 Remi Collet <remi@remirepo.net> - 1.1.0-6 +- drop pear/pecl dependency +- sources from github + * Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 1.1.0-5 - rebuild for PHP 8.5.0RC1 |
