summaryrefslogtreecommitdiffstats
path: root/php-pecl-parle.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-parle.spec')
-rw-r--r--php-pecl-parle.spec46
1 files changed, 13 insertions, 33 deletions
diff --git a/php-pecl-parle.spec b/php-pecl-parle.spec
index 5297907..5cb487f 100644
--- a/php-pecl-parle.spec
+++ b/php-pecl-parle.spec
@@ -1,8 +1,8 @@
# remirepo spec file for php-pecl-parle
#
-# Copyright (c) 2017-2023 Remi Collet
-# License: CC-BY-SA-4.0
-# http://creativecommons.org/licenses/by-sa/4.0/
+# SPDX-FileCopyrightText: Copyright 2017-2025 Remi Collet
+# SPDX-License-Identifier: CECILL-2.1
+# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
# Please, preserve the changelog entries
#
@@ -20,19 +20,15 @@
Summary: Parsing and lexing
Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 0.8.5
-Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 3%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
# Extension is BSD, libraries are Boost
License: BSD-2-Clause AND BSL-1.0
URL: https://pecl.php.net/package/%{pecl_name}
Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+Patch0: 59.patch
+
BuildRequires: make
-%if 0%{?rhel} == 7 && 0%{?dtsversion} == 0
-# Always use DTS as c++14 is required
-BuildRequires: devtoolset-8-toolchain
-%global dtsenable source /opt/rh/devtoolset-8/enable
-%global dtsprefix devtoolset-8-
-%endif
BuildRequires: %{?dtsprefix}gcc
BuildRequires: %{?dtsprefix}gcc-c++
BuildRequires: %{?dtsprefix}libstdc++-devel
@@ -72,14 +68,13 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
sed -e '/tests/s/role="test"/role="src"/'\
-i package.xml
-%if 0%{?_licensedir:1}
sed -e '/LICENSE/s/role="doc"/role="src"/;/licence/s/role="doc"/role="src"/' \
-i package.xml
mv %{sources}/lib/parsertl14/include/parsertl/licence_1_0.txt %{sources}/LICENSE.lexert14
mv %{sources}/lib/lexertl14/include/lexertl/licence_1_0.txt %{sources}/LICENSE.parsertl14
-%endif
cd %{sources}
+%patch -P0 -p1
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_PARLE_VERSION/{s/.* "//;s/".*$//;p}' php_parle.h)
if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then
@@ -172,28 +167,8 @@ make test "TESTS=--show-diff -q %{?_smp_mflags}"
%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
@@ -208,6 +183,11 @@ fi
######### TODO : use --enable-parle-utf32 ?
%changelog
+* Thu Jul 17 2025 Remi Collet <remi@remirepo.net> - 0.8.5-3
+- add fix for PHP 8.5.0alpha2 using patch from
+ https://github.com/weltling/parle/pull/59
+- re-license spec file to CECILL-2.1
+
* Wed Aug 30 2023 Remi Collet <remi@remirepo.net> - 0.8.5-2
- rebuild for PHP 8.3.0RC1