diff options
| -rw-r--r-- | REFLECTION | 36 | ||||
| -rw-r--r-- | composer.json | 13 | ||||
| -rw-r--r-- | php-pecl-uuid.spec | 47 |
3 files changed, 54 insertions, 42 deletions
@@ -1,23 +1,23 @@ -Extension [ <persistent> extension #115 uuid version 1.3.0 ] { +Extension [ <persistent> extension #124 uuid version 1.3.0 ] { - Constants [17] { - Constant [ int UUID_VARIANT_NCS ] { 0 } - Constant [ int UUID_VARIANT_DCE ] { 1 } - Constant [ int UUID_VARIANT_MICROSOFT ] { 2 } - Constant [ int UUID_VARIANT_OTHER ] { 3 } - Constant [ int UUID_TYPE_DEFAULT ] { 0 } - Constant [ int UUID_TYPE_DCE ] { 4 } - Constant [ int UUID_TYPE_NAME ] { 1 } - Constant [ int UUID_TYPE_TIME ] { 1 } - Constant [ int UUID_TYPE_TIME_V6 ] { 6 } - Constant [ int UUID_TYPE_TIME_V7 ] { 7 } - Constant [ int UUID_TYPE_VENDOR ] { 8 } - Constant [ int UUID_TYPE_SECURITY ] { 2 } - Constant [ int UUID_TYPE_MD5 ] { 3 } - Constant [ int UUID_TYPE_RANDOM ] { 4 } - Constant [ int UUID_TYPE_SHA1 ] { 5 } - Constant [ int UUID_TYPE_NULL ] { -1 } - Constant [ int UUID_TYPE_INVALID ] { -42 } + Constant [ <persistent> int UUID_VARIANT_NCS ] { 0 } + Constant [ <persistent> int UUID_VARIANT_DCE ] { 1 } + Constant [ <persistent> int UUID_VARIANT_MICROSOFT ] { 2 } + Constant [ <persistent> int UUID_VARIANT_OTHER ] { 3 } + Constant [ <persistent> int UUID_TYPE_DEFAULT ] { 0 } + Constant [ <persistent, deprecated> int UUID_TYPE_DCE ] { 4 } + Constant [ <persistent, deprecated> int UUID_TYPE_NAME ] { 1 } + Constant [ <persistent> int UUID_TYPE_TIME ] { 1 } + Constant [ <persistent> int UUID_TYPE_TIME_V6 ] { 6 } + Constant [ <persistent> int UUID_TYPE_TIME_V7 ] { 7 } + Constant [ <persistent> int UUID_TYPE_VENDOR ] { 8 } + Constant [ <persistent> int UUID_TYPE_SECURITY ] { 2 } + Constant [ <persistent> int UUID_TYPE_MD5 ] { 3 } + Constant [ <persistent> int UUID_TYPE_RANDOM ] { 4 } + Constant [ <persistent> int UUID_TYPE_SHA1 ] { 5 } + Constant [ <persistent> int UUID_TYPE_NULL ] { -1 } + Constant [ <persistent> int UUID_TYPE_INVALID ] { -42 } } - Functions { diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..60737a8 --- /dev/null +++ b/composer.json @@ -0,0 +1,13 @@ +{ + "name": "pecl/uuid", + "type": "php-ext", + "license": "LGPL-2.1-or-later", + "description": "UUID extension", + "require": { + "php": ">= 7.0.0" + }, + "php-ext": { + "extension-name": "uuid", + "configure-options": [] + } +} 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 |
