diff options
| -rw-r--r-- | PHPINFO | 2 | ||||
| -rw-r--r-- | REFLECTION | 2 | ||||
| -rw-r--r-- | composer.json | 9 | ||||
| -rw-r--r-- | php-pecl-translit.spec | 49 |
4 files changed, 37 insertions, 25 deletions
@@ -2,4 +2,4 @@ translit Transliteration support => enabled -Version => 0.7.2 +Version => 0.7.3 @@ -1,4 +1,4 @@ -Extension [ <persistent> extension #117 translit version 0.7.2 ] { +Extension [ <persistent> extension #127 translit version 0.7.3 ] { - Dependencies { Dependency [ iconv (Required) ] diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..4fbbb90 --- /dev/null +++ b/composer.json @@ -0,0 +1,9 @@ +{ + "name": "derickr/translit", + "type": "php-ext", + "license": "BSD-2-Clause", + "description": "Transliterates non-latin character sets to latin", + "require": { + "php": ">= 7.0.0" + } +} diff --git a/php-pecl-translit.spec b/php-pecl-translit.spec index ac17129..40ec224 100644 --- a/php-pecl-translit.spec +++ b/php-pecl-translit.spec @@ -1,6 +1,6 @@ # remirepo spec file for php-pecl-translit # -# SPDX-FileCopyrightText: Copyright 2015-2025 Remi Collet +# SPDX-FileCopyrightText: Copyright 2015-2026 Remi Collet # SPDX-License-Identifier: CECILL-2.1 # http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt # @@ -12,27 +12,32 @@ %bcond_without tests %global pecl_name translit -%global pie_vend derickr +%global pie_vend %{pecl_name} %global pie_proj translit %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} # After 20-iconv %global ini_name 40-%{pecl_name}.ini -%global sources %{pecl_name}-%{version} +%global sources %{gh_proj}-%{version} %global _configure ../%{sources}/configure -Summary: Transliterates non-latin character sets to latin -Name: %{?scl_prefix}php-pecl-%{pecl_name} -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} - -Source0: https://pecl.php.net/get/%{sources}.tgz +# Github forge +%global gh_vend %{pie_vend} +%global gh_proj pecl-%{pecl_name} +%global forgeurl https://github.com/%{gh_vend}/%{gh_proj} +%global tag %{version} + +Name: %{?scl_prefix}php-pecl-%{pecl_name} +Summary: Transliterates non-latin character sets to latin +License: BSD-2-Clause +Version: 0.7.3 +Release: 1%{?dist} +%forgemeta +URL: %{forgeurl} +Source0: %{forgesource} BuildRequires: %{?dtsprefix}gcc BuildRequires: make BuildRequires: %{?scl_prefix}php-devel >= 7.0 -BuildRequires: %{?scl_prefix}php-pear %if %{with tests} BuildRequires: %{?scl_prefix}php-iconv %endif @@ -40,10 +45,13 @@ BuildRequires: %{?scl_prefix}php-iconv Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} +# Extension Provides: %{?scl_prefix}php-%{pecl_name} = %{version} Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} +# PECL Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} +# PIE Provides: %{?scl_prefix}php-pie(%{pie_vend}/%{pie_proj}) = %{version} Provides: %{?scl_prefix}php-%{pie_vend}-%{pie_proj} = %{version} @@ -62,8 +70,6 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO %prep %setup -c -q -sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml - cd %{sources} # Sanity check, really often broken extver=$(sed -n '/#define PHP_TRANSLIT_VERSION/{s/.* "//;s/".*$//;p}' php_translit.h) @@ -114,19 +120,11 @@ make -C NTS install INSTALL_ROOT=%{buildroot} # Drop in the bit of configuration install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name} -# Install XML package description -install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml - %if %{with_zts} make -C ZTS install INSTALL_ROOT=%{buildroot} install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name} %endif -# Documentation -for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//') -do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i -done - %check [ -f %{php_extdir}/iconv.so ] && DEPMOD="-d extension=iconv.so" @@ -172,7 +170,7 @@ REPORT_EXIT_STATUS=1 \ %files %license %{sources}/LICENSE -%{pecl_xmldir}/%{name}.xml +%doc %{sources}/composer.json %config(noreplace) %{php_inidir}/%{ini_name} %{php_extdir}/%{pecl_name}.so @@ -184,6 +182,11 @@ REPORT_EXIT_STATUS=1 \ %changelog +* Thu Apr 2 2026 Remi Collet <remi@remirepo.net> - 0.7.3-1 +- update to 0.7.3 (no change) +- drop pear/pecl dependency +- sources from github + * Wed Jul 2 2025 Remi Collet <remi@remirepo.net> - 0.7.2-1 - update to 0.7.2 - re-license spec file to CECILL-2.1 |
