diff options
author | Remi Collet <remi@remirepo.net> | 2019-12-12 14:40:14 +0100 |
---|---|---|
committer | Remi Collet <remi@remirepo.net> | 2019-12-12 14:40:14 +0100 |
commit | 791eb72e0fc5ea987f89e8def58c5adb91342a9b (patch) | |
tree | d26ebb701d9794b8c4ab3b6ade8b5e5cca398452 /php-pear.spec | |
parent | 7b4222a6860c851edbe0809568a3b6ffd86fe57d (diff) |
add patch for XML_Util and PHP 7.4 from https://github.com/pear/XML_Util/pull/12
Diffstat (limited to 'php-pear.spec')
-rw-r--r-- | php-pear.spec | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/php-pear.spec b/php-pear.spec index 710979b..e8e0424 100644 --- a/php-pear.spec +++ b/php-pear.spec @@ -40,7 +40,7 @@ Summary: PHP Extension and Application Repository framework Name: %{?scl_prefix}php-pear Version: 1.10.10 -Release: 4%{?dist} +Release: 5%{?dist} Epoch: 1 # PEAR, PEAR_Manpages, Archive_Tar, XML_Util, Console_Getopt are BSD # Structures_Graph is LGPLv3+ @@ -61,6 +61,8 @@ Source23: http://pear.php.net/get/Structures_Graph-%{structver}.tgz Source24: http://pear.php.net/get/XML_Util-%{xmlutil}.tgz Source25: http://pear.php.net/get/PEAR_Manpages-%{manpages}.tgz +Patch0: https://patch-diff.githubusercontent.com/raw/pear/XML_Util/pull/12.patch + BuildArch: noarch BuildRequires: %{?scl_prefix}php(language) > 5.4 BuildRequires: %{?scl_prefix}php-cli @@ -277,7 +279,7 @@ install -m 644 -D macros.pear \ # apply patches on installed PEAR tree pushd %{buildroot}%{peardir} -: no patch +patch -p1 < %{PATCH0} popd # Why this file here ? @@ -322,10 +324,9 @@ phpunit \ AllTests || ret=1 cd %{buildroot}%{_datadir}/tests/pear/XML_Util/tests -%{_bindir}/php \ - %{buildroot}/usr/share/pear/pearcmd.php \ - run-tests \ - | tee $LOG +phpunit \ + --bootstrap=/usr/share/pear/XML/Util/autoload.php \ + --test-suffix .php . || ret=1 cd %{buildroot}%{_datadir}/tests/pear/Console_Getopt/tests %{_bindir}/php \ @@ -463,6 +464,10 @@ fi %changelog +* Thu Dec 12 2019 Remi Collet <remi@remirepo.net> - 1:1.10.10-5 +- add patch for XML_Util and PHP 7.4 from + https://github.com/pear/XML_Util/pull/12 + * Fri Dec 6 2019 Remi Collet <remi@remirepo.net> - 1:1.10.10-4 - update XML_Util to 1.4.4 - drop patch merged upstream |