From 7986605337029d10123ff7f9274968e9d678e8dc Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 25 Jun 2017 07:02:33 +0200 Subject: add patch for 7.2 --- php-pecl-pcs.spec | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'php-pecl-pcs.spec') diff --git a/php-pecl-pcs.spec b/php-pecl-pcs.spec index 4f35c06..0fdc722 100644 --- a/php-pecl-pcs.spec +++ b/php-pecl-pcs.spec @@ -24,13 +24,14 @@ Summary: PHP Code Service Name: %{?sub_prefix}php-pecl-%{pecl_name} Version: 1.3.3 -Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} +Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} License: PHP Group: Development/Languages URL: http://pecl.php.net/package/%{pecl_name} Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch0: 10.patch + BuildRequires: %{?scl_prefix}php-devel > 5.3 BuildRequires: %{?scl_prefix}php-pear BuildRequires: %{?scl_prefix}php-tokenizer @@ -108,6 +109,9 @@ mv %{pecl_name}-%{version} NTS cd NTS %{?_licensedir:cp pecl-compat/LICENSE LICENSE_pecl_compat} +sed -e 's/\r//' -i tests/autoload_001.phpt +%patch0 -p1 -b .pr10 + # Sanity check, really often broken extver=$(sed -n '/#define PHP_PCS_VERSION/{s/.* "//;s/".*$//;p}' php_pcs.h) if test "x${extver}" != "x%{version}%{?prever:-%{prever}}"; then @@ -152,7 +156,6 @@ make %{?_smp_mflags} %install -rm -rf %{buildroot} %{?dtsenable} make -C NTS install INSTALL_ROOT=%{buildroot} @@ -240,12 +243,7 @@ REPORT_EXIT_STATUS=1 \ %endif -%clean -rm -rf %{buildroot} - - %files -%defattr(-,root,root,-) %{?_licensedir:%license NTS/LICENSE*} %doc %{pecl_docdir}/%{pecl_name} %{pecl_xmldir}/%{name}.xml @@ -260,7 +258,6 @@ rm -rf %{buildroot} %files devel -%defattr(-,root,root,-) %doc %{pecl_testdir}/%{pecl_name} %{php_incldir}/ext/%{pecl_name} @@ -270,6 +267,10 @@ rm -rf %{buildroot} %changelog +* Sun Jun 25 2017 Remi Collet - 1.3.3-2 +- add patch for test suite with php 7.2 from + https://github.com/flaupretre/pecl-pcs/pull/10 + * Fri Jan 20 2017 Remi Collet - 1.3.3-1 - Update to 1.3.3 (rc) -- cgit