diff options
| -rw-r--r-- | composer.json | 31 | ||||
| -rw-r--r-- | php-pecl-igbinary.spec | 49 |
2 files changed, 55 insertions, 25 deletions
diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..110cba0 --- /dev/null +++ b/composer.json @@ -0,0 +1,31 @@ +{ + "name": "igbinary/igbinary", + "type": "php-ext", + "homepage": "https://github.com/igbinary/igbinary", + "php-ext": { + "extension-name": "igbinary" + }, + "license": "BSD-3-Clause", + "description": "Igbinary is a drop in replacement for the standard php serializer. Instead of the time and space consuming textual representation used by PHP's serialize(), igbinary stores php data structures in a compact binary form. Savings are significant when using memcached or similar memory based storages for serialized data.", + "authors": [ + { + "name": "Oleg Grenrus", + "email": "oleg.grenrus@iki.fi" + }, + { + "name": "Pierre Joye", + "email": "pierre@php.net" + }, + { + "name": "Teddy Grenman", + "email": "teddy.pecl@luuseri.com" + }, + { + "name": "Tyson Andre", + "email": "tandre@php.net" + } + ], + "require": { + "php": ">= 7.0.0" + } +} diff --git a/php-pecl-igbinary.spec b/php-pecl-igbinary.spec index 9f34153..c4b1ed1 100644 --- a/php-pecl-igbinary.spec +++ b/php-pecl-igbinary.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-igbinary # -# SPDX-FileCopyrightText: Copyright 2010-2025 Remi Collet +# SPDX-FileCopyrightText: Copyright 2010-2026 Remi Collet # SPDX-License-Identifier: CECILL-2.1 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # Please, preserve the changelog entries @@ -23,20 +23,26 @@ %global upstream_version 3.2.17 %global upstream_prever RC1 -%global sources %{pecl_name}-%{upstream_version}%{?upstream_prever} +%global sources %{gh_proj}-%{upstream_version}%{?upstream_prever} %global _configure ../%{sources}/configure +# Github forge +%global gh_vend igbinary +%global gh_proj igbinary +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag %{upstream_version}%{?upstream_prever} + Summary: Replacement for the standard PHP serializer Name: %{?scl_prefix}php-pecl-igbinary -Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} -Release: 1%{?dist} License: BSD-3-Clause -URL: https://pecl.php.net/package/igbinary -Source0: https://pecl.php.net/get/%{sources}.tgz +Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}} +Release: 2%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc -BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-devel >= 7.0 BuildRequires: %{?scl_prefix}php-pecl-apcu-devel BuildRequires: %{?scl_prefix}php-json @@ -85,8 +91,6 @@ These are the files needed to compile programs using Igbinary %prep %setup -q -c -sed -e '/COPYING/s/role="doc"/role="src"/' -i package.xml - pushd %{sources} # Check version subdir=php7 @@ -142,8 +146,6 @@ cd ../ZTS %make_install -C NTS -install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} # Install the ZTS stuff @@ -152,16 +154,6 @@ install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} install -D -m 644 %{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}/%{pecl_name}/$i - [ -f tests/$i ] && install -Dpm 644 tests/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/tests/$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} @@ -206,11 +198,13 @@ REPORT_EXIT_STATUS=1 \ %files %license %{sources}/COPYING -%doc %{pecl_docdir}/%{pecl_name} -%config(noreplace) %{php_inidir}/%{ini_name} +%doc %{sources}/composer.json +%doc %{sources}/CREDITS +%doc %{sources}/NEWS +%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} @@ -219,7 +213,8 @@ REPORT_EXIT_STATUS=1 \ %files devel -%doc %{pecl_testdir}/%{pecl_name} +%doc %{sources}/tests + %{php_incldir}/ext/%{pecl_name} %if %{with_zts} @@ -228,6 +223,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Fri Mar 13 2026 Remi Collet <remi@remirepo.net> - 3.2.17~RC1-2 +- drop pear/pecl dependency +- sources from github + * Thu Nov 27 2025 Remi Collet <remi@remirepo.net> - 3.2.17~RC1-1 - update to 3.2.17RC1 - add pie virtual provides |
