diff options
| author | Remi Collet <remi@remirepo.net> | 2026-03-12 09:37:55 +0100 |
|---|---|---|
| committer | Remi Collet <remi@php.net> | 2026-03-12 09:37:55 +0100 |
| commit | 26f34da76adec793dfcd0507ad24055ac01b2af6 (patch) | |
| tree | dd049480efd3b0898cdb396bf6bd2f4eb3f8928c | |
| parent | 7631462e5a14c12c7ea830d9cac42b79c9c9466f (diff) | |
sources from github
| -rw-r--r-- | php-pecl-msgpack.spec | 48 |
1 files changed, 23 insertions, 25 deletions
diff --git a/php-pecl-msgpack.spec b/php-pecl-msgpack.spec index c21eea9..2472d37 100644 --- a/php-pecl-msgpack.spec +++ b/php-pecl-msgpack.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-msgpack # -# 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 # @@ -23,10 +23,18 @@ %global upstream_version 3.0.0 #global upstream_prever RC1 -%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} +%global sources %{archivename} %global _configure ../%{sources}/configure -# to use system library +# Github forge +%global gh_vend msgpack +%global gh_proj msgpack-php +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag msgpack-%{upstream_version}%{?upstream_prever} +# for EL-8 to avoid TAG usage +%global archivename %{gh_proj}-msgpack-%{upstream_version}%{?upstream_prever} + +# to use system library (only 3.1.0 in Fedora) %bcond_with msgpack # to disable test suite @@ -36,14 +44,14 @@ Summary: API for communicating with MessagePack serialization Name: %{?scl_prefix}php-pecl-msgpack License: BSD-3-Clause Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -URL: https://pecl.php.net/package/msgpack -Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} -Source: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz +%forgemeta +Release: 5%{?dist} +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.0 -BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-pecl-apcu-devel %if %{with msgpack} BuildRequires: msgpack-devel @@ -95,8 +103,6 @@ These are the files needed to compile programs using MessagePack serializer. %prep %setup -qc -sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml - cd %{sources} %if %{with msgpack} # use system library @@ -163,19 +169,6 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -: Install the package XML file -install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - -: install Test and Documentation -cd %{sources} -for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//') -do [ -f tests/$i ] && install -Dpm 644 tests/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/tests/$i - [ -f $i ] && install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i -done -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} @@ -215,8 +208,9 @@ TEST_PHP_ARGS="-n -d extension=apcu.so -d extension=%{buildroot}%{php_extdir}/%{ %files %license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml +#doc %%{sources}/composer.json +%doc %{sources}/README.md +%doc %{sources}/CREDITS %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -228,7 +222,7 @@ TEST_PHP_ARGS="-n -d extension=apcu.so -d extension=%{buildroot}%{php_extdir}/%{ %files devel -%doc %{pecl_testdir}/%{pecl_name} +%doc %{sources}/tests %{php_incldir}/ext/%{pecl_name} %if %{with_zts} @@ -237,6 +231,10 @@ TEST_PHP_ARGS="-n -d extension=apcu.so -d extension=%{buildroot}%{php_extdir}/%{ %changelog +* Thu Mar 12 2026 Remi Collet <remi@remirepo.net> - 3.0.0-5 +- drop pear/pecl dependency +- sources from github + * Tue Oct 7 2025 Remi Collet <remi@remirepo.net> - 3.0.0-4 - rebuild for PHP 8.5.0RC2 - re-enable full test suite |
