diff options
| author | Remi Collet <remi@remirepo.net> | 2026-03-17 11:28:52 +0100 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-03-17 11:28:52 +0100 |
| commit | 32999eaf891398f05a62961588aef3e427dbed22 (patch) | |
| tree | 36ba2de76eaec1871bbef941d3dea18fd63738b6 | |
| parent | 760cc6500e4708cfcf061178bb3486111d9a230d (diff) | |
sources from github
| -rw-r--r-- | PHPINFO | 2 | ||||
| -rw-r--r-- | REFLECTION | 26 | ||||
| -rw-r--r-- | composer.json | 14 | ||||
| -rw-r--r-- | php-brotli.spec | 43 |
4 files changed, 48 insertions, 37 deletions
@@ -3,6 +3,6 @@ brotli Brotli support => enabled Extension Version => 0.18.3 -Library Version => 1.1.0 +Library Version => 1.2.0 Dictionary support => enabled APCu serializer ABI => 0 @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #72 brotli version 0.18.3 ] { +Extension [ <persistent> extension #70 brotli version 0.18.3 ] { - Dependencies { Dependency [ apcu (Optional) ] @@ -17,18 +17,18 @@ Extension [ <persistent> extension #72 brotli version 0.18.3 ] { } - Constants [12] { - Constant [ int BROTLI_GENERIC ] { 0 } - Constant [ int BROTLI_TEXT ] { 1 } - Constant [ int BROTLI_FONT ] { 2 } - Constant [ int BROTLI_COMPRESS_LEVEL_MIN ] { 0 } - Constant [ int BROTLI_COMPRESS_LEVEL_MAX ] { 11 } - Constant [ int BROTLI_COMPRESS_LEVEL_DEFAULT ] { 11 } - Constant [ int BROTLI_PROCESS ] { 0 } - Constant [ int BROTLI_FLUSH ] { 1 } - Constant [ int BROTLI_FINISH ] { 2 } - Constant [ bool BROTLI_DICTIONARY_SUPPORT ] { 1 } - Constant [ int BROTLI_VERSION_NUMBER ] { 16781312 } - Constant [ string BROTLI_VERSION_TEXT ] { 1.1.0 } + Constant [ <persistent> int BROTLI_GENERIC ] { 0 } + Constant [ <persistent> int BROTLI_TEXT ] { 1 } + Constant [ <persistent> int BROTLI_FONT ] { 2 } + Constant [ <persistent> int BROTLI_COMPRESS_LEVEL_MIN ] { 0 } + Constant [ <persistent> int BROTLI_COMPRESS_LEVEL_MAX ] { 11 } + Constant [ <persistent> int BROTLI_COMPRESS_LEVEL_DEFAULT ] { 11 } + Constant [ <persistent> int BROTLI_PROCESS ] { 0 } + Constant [ <persistent> int BROTLI_FLUSH ] { 1 } + Constant [ <persistent> int BROTLI_FINISH ] { 2 } + Constant [ <persistent> bool BROTLI_DICTIONARY_SUPPORT ] { 1 } + Constant [ <persistent> int BROTLI_VERSION_NUMBER ] { 16785408 } + Constant [ <persistent> string BROTLI_VERSION_TEXT ] { 1.2.0 } } - Functions { diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..cbf27f5 --- /dev/null +++ b/composer.json @@ -0,0 +1,14 @@ +{ + "name": "kjdev/brotli", + "type": "php-ext", + "license": "MIT", + "description": "A compression/decompression with Brotli", + "require": { + "php": ">= 7.0.0" + }, + "php-ext": { + "extension-name": "brotli", + "download-url-method": "pre-packaged-source", + "configure-options": [] + } +} 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 |
