From 4c4bc845006d4f0fcb2d0135ddcf4acf80c384f2 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 2 Jul 2025 11:19:08 +0200 Subject: update to 0.7.2 re-license spec file to CECILL-2.1 --- PHPINFO | 2 +- REFLECTION | 2 +- php-pecl-translit.spec | 53 +++++++++++++++++++------------------------------- 3 files changed, 22 insertions(+), 35 deletions(-) diff --git a/PHPINFO b/PHPINFO index 1c887d1..51b330b 100644 --- a/PHPINFO +++ b/PHPINFO @@ -2,4 +2,4 @@ translit Transliteration support => enabled -Version => 0.7.1 +Version => 0.7.2 diff --git a/REFLECTION b/REFLECTION index bc67b0f..9898157 100644 --- a/REFLECTION +++ b/REFLECTION @@ -1,4 +1,4 @@ -Extension [ extension #125 translit version 0.7.1 ] { +Extension [ extension #117 translit version 0.7.2 ] { - Dependencies { Dependency [ iconv (Required) ] diff --git a/php-pecl-translit.spec b/php-pecl-translit.spec index f06ba35..ac17129 100644 --- a/php-pecl-translit.spec +++ b/php-pecl-translit.spec @@ -1,8 +1,8 @@ # remirepo spec file for php-pecl-translit # -# Copyright (c) 2015-2023 Remi Collet -# License: CC-BY-SA-4.0 -# http://creativecommons.org/licenses/by-sa/4.0/ +# SPDX-FileCopyrightText: Copyright 2015-2025 Remi Collet +# SPDX-License-Identifier: CECILL-2.1 +# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # # Please, preserve the changelog entries # @@ -12,6 +12,8 @@ %bcond_without tests %global pecl_name translit +%global pie_vend derickr +%global pie_proj translit %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} # After 20-iconv %global ini_name 40-%{pecl_name}.ini @@ -20,8 +22,8 @@ Summary: Transliterates non-latin character sets to latin Name: %{?scl_prefix}php-pecl-%{pecl_name} -Version: 0.7.1 -Release: 2%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} +Version: 0.7.2 +Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')} License: BSD-2-Clause URL: https://pecl.php.net/package/%{pecl_name} @@ -29,7 +31,7 @@ Source0: https://pecl.php.net/get/%{sources}.tgz BuildRequires: %{?dtsprefix}gcc BuildRequires: make -BuildRequires: %{?scl_prefix}php-devel > 7 +BuildRequires: %{?scl_prefix}php-devel >= 7.0 BuildRequires: %{?scl_prefix}php-pear %if %{with tests} BuildRequires: %{?scl_prefix}php-iconv @@ -38,10 +40,12 @@ BuildRequires: %{?scl_prefix}php-iconv Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} -Provides: %{?scl_prefix}php-%{pecl_name} = %{version} -Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} -Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} -Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +Provides: %{?scl_prefix}php-%{pecl_name} = %{version} +Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} +Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version} +Provides: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} = %{version} %description @@ -58,7 +62,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -c -q -%{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml} +sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml cd %{sources} # Sanity check, really often broken @@ -124,26 +128,6 @@ do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i done -%if 0%{?fedora} < 24 && 0%{?rhel} < 8 -# when pear installed alone, after us -%triggerin -- %{?scl_prefix}php-pear -if [ -x %{__pecl} ] ; then - %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : -fi - -# posttrans as pear can be installed after us -%posttrans -if [ -x %{__pecl} ] ; then - %{pecl_install} %{pecl_xmldir}/%{name}.xml >/dev/null || : -fi - -%postun -if [ $1 -eq 0 -a -x %{__pecl} ] ; then - %{pecl_uninstall} %{pecl_name} >/dev/null || : -fi -%endif - - %check [ -f %{php_extdir}/iconv.so ] && DEPMOD="-d extension=iconv.so" @@ -187,8 +171,7 @@ REPORT_EXIT_STATUS=1 \ %files -%{!?_licensedir:%doc %{pecl_docdir}/%{pecl_name}} -%{?_licensedir:%license %{sources}/LICENSE} +%license %{sources}/LICENSE %{pecl_xmldir}/%{name}.xml %config(noreplace) %{php_inidir}/%{ini_name} @@ -201,6 +184,10 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Wed Jul 2 2025 Remi Collet - 0.7.2-1 +- update to 0.7.2 +- re-license spec file to CECILL-2.1 + * Mon Sep 4 2023 Remi Collet - 0.7.1-2 - build out of sources tree -- cgit