diff options
Diffstat (limited to 'php-ast.spec')
-rw-r--r-- | php-ast.spec | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/php-ast.spec b/php-ast.spec index 9945621..7f730a9 100644 --- a/php-ast.spec +++ b/php-ast.spec @@ -1,12 +1,12 @@ # remirepo spec file for php-ast # -# Copyright (c) 2015-2023 Remi Collet +# Copyright (c) 2015-2024 Remi Collet # License: CC-BY-SA-4.0 # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # -%{?scl: %scl_package php-ast} +%{?scl:%scl_package php-ast} %global pecl_name ast %global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} @@ -17,7 +17,7 @@ Summary: Abstract Syntax Tree Name: %{?scl_prefix}php-ast -Version: 1.1.1 +Version: 1.1.2 Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: BSD-3-Clause URL: https://pecl.php.net/package/ast @@ -32,7 +32,6 @@ BuildRequires: %{?scl_prefix}php-tokenizer Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} Requires: %{?scl_prefix}php(api) = %{php_core_api} Requires: %{?scl_prefix}php-tokenizer%{?_isa} -%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} # PECL Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} @@ -52,7 +51,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO # Don't install/register tests sed -e 's/role="test"/role="src"/' \ - %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ + -e '/LICENSE/s/role="doc"/role="src"/' \ -i package.xml cd %{sources} @@ -149,28 +148,8 @@ TEST_PHP_ARGS="-n -d extension=tokenizer.so -d extension=%{buildroot}%{php_ztsex %endif -%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 - - %files -%{?_licensedir:%license %{sources}/LICENSE} +%license %{sources}/LICENSE %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -184,6 +163,9 @@ fi %changelog +* Mon Aug 12 2024 Remi Collet <remi@remirepo.net> - 1.1.2-1 +- update to 1.1.2 + * Mon Nov 13 2023 Remi Collet <remi@remirepo.net> - 1.1.1-1 - update to 1.1.1 |