summaryrefslogtreecommitdiffstats
path: root/php-pecl-translit.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-07-02 11:19:08 +0200
committerRemi Collet <remi@php.net>2025-07-02 11:19:08 +0200
commit4c4bc845006d4f0fcb2d0135ddcf4acf80c384f2 (patch)
tree3cccb6db8a5009153a643705c0bb6a8ea301cdcd /php-pecl-translit.spec
parent7b02a07d7c64b9b31a21854c92b5830ee2117ea4 (diff)
update to 0.7.2HEADmaster
re-license spec file to CECILL-2.1
Diffstat (limited to 'php-pecl-translit.spec')
-rw-r--r--php-pecl-translit.spec53
1 files changed, 20 insertions, 33 deletions
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 <remi@remirepo.net> - 0.7.2-1
+- update to 0.7.2
+- re-license spec file to CECILL-2.1
+
* Mon Sep 4 2023 Remi Collet <remi@remirepo.net> - 0.7.1-2
- build out of sources tree