diff options
Diffstat (limited to 'php-brotli.spec')
| -rw-r--r-- | php-brotli.spec | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/php-brotli.spec b/php-brotli.spec index be24f0b..041c172 100644 --- a/php-brotli.spec +++ b/php-brotli.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-brotli # -# SPDX-FileCopyrightText: Copyright 2017-2025 Remi Collet +# SPDX-FileCopyrightText: Copyright 2017-2026 Remi Collet # SPDX-License-Identifier: CECILL-2.1 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # @@ -18,22 +18,28 @@ %global pie_proj brotli %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global ini_name 40-%{pecl_name}.ini -%global sources %{pecl_name}-%{version} +%global sources %{gh_proj}-%{version} %global _configure ../%{sources}/configure -Summary: Brotli Extension for PHP +# Github forge +%global gh_vend %{pie_vend} +%global gh_proj php-ext-%{pie_proj} +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag %{version} + Name: %{?scl_prefix}php-%{pecl_name} -Version: 0.18.3 -Release: 1%{?dist} +Summary: Brotli Extension for PHP License: MIT -URL: https://pecl.php.net/package/%{pecl_name} -Source0: https://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz +Version: 0.18.3 +Release: 2%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.0 BuildRequires: %{?scl_prefix}php-pecl-apcu-devel -BuildRequires: %{?scl_prefix}php-pear %if %{with libbrotli} BuildRequires: brotli-devel >= 0.6.0 %else @@ -62,13 +68,10 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -qc -sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml - cd %{sources} %if %{with libbrotli} # Use the system library rm -r brotli -sed -e '\:"brotli/:d' -i ../package.xml %else cp brotli/LICENSE LICENSE-brotli %endif @@ -138,22 +141,12 @@ cd ../ZTS %make_install -C NTS 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} # Install the ZTS stuff %make_install -C ZTS install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Documentation -cd %{sources} -for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i -done - - %check cd %{sources} @@ -194,8 +187,8 @@ REPORT_EXIT_STATUS=1 \ %if %{without libbrotli} %license %{sources}/LICENSE-brotli %endif -%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 @@ -207,6 +200,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue Mar 17 2026 Remi Collet <remi@remirepo.net> - 0.18.3-2 +- drop pear/pecl dependency +- sources from github + * Tue Dec 2 2025 Remi Collet <remi@remirepo.net> - 0.18.3-1 - update to 0.18.3 |
