diff options
Diffstat (limited to 'php-pecl-uuid.spec')
| -rw-r--r-- | php-pecl-uuid.spec | 47 |
1 files changed, 23 insertions, 24 deletions
diff --git a/php-pecl-uuid.spec b/php-pecl-uuid.spec index 71a33b8..d61b34d 100644 --- a/php-pecl-uuid.spec +++ b/php-pecl-uuid.spec @@ -3,7 +3,7 @@ # # Fedora spec file for php-pecl-uuid # -# 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 # @@ -20,21 +20,29 @@ %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} %global ini_name 40-%{pecl_name}.ini #global prever RC1 -%global sources %{pecl_name}-%{version}%{?prever} +%global sources %{archivename} %global _configure ../%{sources}/configure -Summary: Universally Unique Identifier extension for PHP +# Github forge +%global gh_vend php +%global gh_proj pecl-networking-uuid +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag v%{version} +# for EL-8 to avoid TAG usage +%global archivename %{gh_proj}-%{version} + Name: %{?scl_prefix}php-pecl-uuid -Version: 1.3.0 -Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Summary: Universally Unique Identifier extension for PHP License: LGPL-2.1-or-later -URL: https://pecl.php.net/package/uuid -Source: https://pecl.php.net/get/%{sources}.tgz +Version: 1.3.0 +Release: 4%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: make BuildRequires: %{?dtsprefix}gcc BuildRequires: %{?scl_prefix}php-devel >= 7.0 -BuildRequires: %{?scl_prefix}php-pear BuildRequires: libuuid-devel Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} @@ -62,11 +70,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -q -c -# Don't install/register tests -sed -e 's/role="test"/role="src"/' \ - -e '/LICENSE/s/role="doc"/role="src"/' \ - -i package.xml - cd %{sources} # Sanity check, really often broken extver=$(sed -n '/#define PHP_UUID_VERSION/{s/.* "//;s/".*$//;p}' php_uuid.h) @@ -127,15 +130,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 - -# 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} @@ -163,8 +157,9 @@ REPORT_EXIT_STATUS=1 \ %files %license %{sources}/LICENSE -%doc %{pecl_docdir}/%{pecl_name} -%{pecl_xmldir}/%{name}.xml +%doc %{sources}/composer.json +%doc %{sources}/CREDITS +%doc %{sources}/*.md %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -176,6 +171,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Tue Mar 17 2026 Remi Collet <remi@remirepo.net> - 1.3.0-4 +- drop pear/pecl dependency +- sources from github + * Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 1.3.0-3 - rebuild for PHP 8.5.0RC1 |
