diff options
Diffstat (limited to 'php-pecl-http.spec')
| -rw-r--r-- | php-pecl-http.spec | 70 |
1 files changed, 33 insertions, 37 deletions
diff --git a/php-pecl-http.spec b/php-pecl-http.spec index b2931fa..c414c5b 100644 --- a/php-pecl-http.spec +++ b/php-pecl-http.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-http # -# SPDX-FileCopyrightText: Copyright 2012-2025 Remi Collet +# SPDX-FileCopyrightText: Copyright 2012-2026 Remi Collet # SPDX-License-Identifier: CECILL-2.1 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # @@ -18,33 +18,35 @@ %bcond_without libbrotli %bcond_without tests -%global gh_commit a84b499418ee7b8992fd9e7e2abc661735a869bd -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_owner m6w6 -%global gh_project ext-http -%global pie_vend m6w6 -%global pie_proj ext-http +%global pie_vend m6w6 +%global pie_proj ext-http # The project is pecl_http but the extension is only http -%global proj_name pecl_http -%global pecl_name http -%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} +%global proj_name pecl_http +%global pecl_name http +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} # after 40-raphf -%global ini_name 50-%{pecl_name}.ini +%global ini_name 50-%{pecl_name}.ini %global upstream_version 4.3.1 #global upstream_prever beta1 #global upstream_lower beta1 -%global sources %{proj_name}-%{upstream_version}%{?upstream_prever} +%global sources %{gh_proj}-%{upstream_version}%{?upstream_prever} %global _configure ../%{sources}/configure +# Github forge +%global gh_vend m6w6 +%global gh_proj ext-http +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag %{upstream_version}%{?upstream_prever} + Name: %{?scl_prefix}php-pecl-http -Version: %{upstream_version}%{?upstream_prever:~%{upstream_lower}} -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} -Source0: https://pecl.php.net/get/%{proj_name}-%{upstream_version}%{?upstream_prever}.tgz Summary: Extended HTTP support - License: BSD-2-Clause -URL: https://pecl.php.net/package/pecl_http +Version: %{upstream_version}%{?upstream_prever:~%{upstream_lower}} +Release: 2%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} # From http://www.php.net/manual/en/http.configuration.php Source1: %{proj_name}.ini @@ -55,7 +57,6 @@ BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 8.0 BuildRequires: %{?scl_prefix}php-spl -BuildRequires: %{?scl_prefix}php-pear BuildRequires: zlib-devel >= 1.2.0.4 BuildRequires: curl-devel >= 7.61.1 # We require 73 to ensure we use the same version than PHP @@ -122,8 +123,6 @@ These are the files needed to compile programs using HTTP extension. %prep %setup -c -q -sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml - cd %{sources} %patch -P0 -p1 @@ -188,9 +187,6 @@ peclconf %{__ztsphpconfig} %make_install -C NTS -# Install XML package description -install -Dpm 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - # install config file install -Dpm644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} @@ -199,17 +195,6 @@ install -Dpm644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} install -Dpm644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Test & Documentation -cd %{sources} -for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') -do [ -f $i ] && install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{proj_name}/$i - [ -f tests/$i ] && install -Dpm 644 tests/$i %{buildroot}%{pecl_testdir}/%{proj_name}/tests/$i - [ -f tests/data/$i ] && install -Dpm 644 tests/data/$i %{buildroot}%{pecl_testdir}/%{proj_name}/tests/data/$i -done -for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{proj_name}/$i -done - %check cd %{sources} @@ -263,10 +248,16 @@ TEST_PHP_ARGS="-n $modules -d extension=$PWD/../NTS/modules/%{pecl_name}.so" \ %files %license %{sources}/LICENSE -%doc %{pecl_docdir}/%{proj_name} +%doc %{sources}/composer.json +%doc %{sources}/AUTHORS +%doc %{sources}/BUGS +%doc %{sources}/CREDITS +%doc %{sources}/THANKS +%doc %{sources}/TODO +%doc %{sources}/*md + %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so -%{pecl_xmldir}/%{name}.xml %if %{with_zts} %config(noreplace) %{php_ztsinidir}/%{ini_name} @@ -274,7 +265,8 @@ TEST_PHP_ARGS="-n $modules -d extension=$PWD/../NTS/modules/%{pecl_name}.so" \ %endif %files devel -%doc %{pecl_testdir}/%{proj_name} +%doc %{sources}/tests + %{php_incldir}/ext/%{pecl_name} %if %{with_zts} @@ -283,6 +275,10 @@ TEST_PHP_ARGS="-n $modules -d extension=$PWD/../NTS/modules/%{pecl_name}.so" \ %changelog +* Fri Mar 13 2026 Remi Collet <remi@remirepo.net> - 4.3.1-2 +- drop pear/pecl dependency +- sources from github + * Fri Oct 10 2025 Remi Collet <remi@remirepo.net> - 4.3.1-1 - update to 4.3.1 - open https://github.com/m6w6/ext-http/issues/151 |
