Compare commits

...

No commits in common. "c8-stream-7.4" and "stream-php-7.2-rhel-8.9.0" have entirely different histories.

11 changed files with 52 additions and 36 deletions

12
.gitignore vendored
View File

@ -1,6 +1,6 @@
SOURCES/Archive_Tar-1.4.14.tgz
SOURCES/Console_Getopt-1.4.3.tgz
SOURCES/PEAR-1.10.13.tgz
SOURCES/PEAR_Manpages-1.10.0.tgz
SOURCES/Structures_Graph-1.1.1.tgz
SOURCES/XML_Util-1.4.5.tgz
/Archive_Tar-1.4.3.tgz
/Console_Getopt-1.4.1.tgz
/PEAR-1.10.5.tgz
/PEAR_Manpages-1.10.0.tgz
/Structures_Graph-1.1.1.tgz
/XML_Util-1.4.3.tgz

View File

@ -1,6 +0,0 @@
ef023e94c632e80ef78ddfee19e4af6abc54eed4 SOURCES/Archive_Tar-1.4.14.tgz
88b7bfce2f71cd99b922fa5eff5247bd754a3bc1 SOURCES/Console_Getopt-1.4.3.tgz
f1ea5eae354f7a302c62edaa06d8b057de1b8be5 SOURCES/PEAR-1.10.13.tgz
50e7d88cafe27d02389b351ec4633a1219bf3603 SOURCES/PEAR_Manpages-1.10.0.tgz
2a9e5999e035aa3a6789011238b0a9a54806124a SOURCES/Structures_Graph-1.1.1.tgz
c9fe1448ae7af4522f2cdfd741e14b1ef3998309 SOURCES/XML_Util-1.4.5.tgz

23
71.patch Normal file
View File

@ -0,0 +1,23 @@
From c5f321f171783c1b088490dcaf39b0aad5eb5c13 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Thu, 12 Oct 2017 09:35:57 +0200
Subject: [PATCH] fix Warning: count(): Parameter must be an array or an
object that implements Countable in PEAR/RunTest.php on line 346
---
PEAR/RunTest.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/PEAR/RunTest.php b/PEAR/RunTest.php
index 8eabac3c3..482beccb3 100644
--- a/PEAR/RunTest.php
+++ b/PEAR/RunTest.php
@@ -343,7 +343,7 @@ function run($file, $ini_settings = array(), $test_number = 1)
// Check if test should be skipped.
$res = $this->_runSkipIf($section_text, $temp_skipif, $tested, $ini_settings);
- if (count($res) != 2) {
+ if ($res == 'SKIPPED' || count($res) != 2) {
return $res;
}
$info = $res['info'];

View File

@ -8,12 +8,12 @@
%global peardir %{_datadir}/pear
%global metadir %{_localstatedir}/lib/pear
%global getoptver 1.4.3
%global arctarver 1.4.14
%global getoptver 1.4.1
%global arctarver 1.4.3
# https://pear.php.net/bugs/bug.php?id=19367
# Structures_Graph 1.0.4 - incorrect FSF address
%global structver 1.1.1
%global xmlutil 1.4.5
%global xmlutil 1.4.3
%global manpages 1.10.0
# Tests are only run with rpmbuild --with tests
@ -26,12 +26,13 @@
Summary: PHP Extension and Application Repository framework
Name: php-pear
Version: 1.10.13
Release: 1%{?dist}
Version: 1.10.5
Release: 9%{?dist}
Epoch: 1
# PEAR, PEAR_Manpages, Archive_Tar, XML_Util, Console_Getopt are BSD
# Structures_Graph is LGPLv3+
License: BSD and LGPLv3+
Group: Development/Languages
URL: http://pear.php.net/package/PEAR
Source0: http://download.pear.php.net/package/PEAR-%{version}%{?pearprever}.tgz
# wget https://raw.githubusercontent.com/pear/pear-core/stable/install-pear.php
@ -47,6 +48,9 @@ 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
# https://github.com/pear/pear-core/pull/71
Patch0: https://patch-diff.githubusercontent.com/raw/pear/pear-core/pull/71.patch
BuildArch: noarch
BuildRequires: php(language) > 5.4
BuildRequires: php-cli
@ -104,7 +108,7 @@ Requires: php-bz2
# for /var/www/html ownership
Requires: httpd-filesystem
%if 0%{?fedora}
Recommends: php-composer(fedora/autoloader)
Requires: php-composer(fedora/autoloader)
%endif
@ -219,7 +223,7 @@ install -m 644 -D macros.pear \
# apply patches on installed PEAR tree
pushd %{buildroot}%{peardir}
: no patch
patch --no-backup --fuzz 0 -p1 < %{PATCH0}
popd
# Why this file here ?
@ -258,9 +262,10 @@ phpunit \
AllTests || ret=1
cd %{buildroot}%{_datadir}/tests/pear/XML_Util/tests
phpunit \
--bootstrap=/usr/share/pear/XML/Util/autoload.php \
--test-suffix .php . || ret=1
%{_bindir}/php \
%{buildroot}/usr/share/pear/pearcmd.php \
run-tests \
| tee $LOG
cd %{buildroot}%{_datadir}/tests/pear/Console_Getopt/tests
%{_bindir}/php \
@ -332,20 +337,8 @@ fi
%changelog
* Tue Dec 14 2021 Remi Collet <rcollet@redhat.com> - 1:1.10.13-1
- update PEAR to 1.10.13
- update Archive_Tar to 1.4.14
* Thu May 14 2020 Remi Collet <rcollet@redhat.com> - 1:1.10.12-1
- update PEAR to 1.10.12
- update Archive_Tar to 1.4.9
- update Console_Getopt to 1.4.3
- update XML_Util to 1.4.5
* Tue May 7 2019 Remi Collet <rcollet@redhat.com> - 1:1.10.9-1
- update PEAR to 1.10.9
- update Archive_Tar to 1.4.7
- update Console_Getopt to 1.4.2
* Wed May 15 2019 Joe Orton <jorton@redhat.com> - 1:1.10.5-9
- rebuild
* Wed Apr 11 2018 Remi Collet <remi@remirepo.net> - 1:1.10.5-8
- require /usr/bin/gpg instead of gnupg

6
sources Normal file
View File

@ -0,0 +1,6 @@
SHA512 (Archive_Tar-1.4.3.tgz) = 62e60d59266c5d19b131f769f4d71d4cee6bf8964b0c6610c4f1381500ced582865bff26c608479b2678dda1e7407ba39a7ec84b31fed13e3875f1947ce5bd6c
SHA512 (Console_Getopt-1.4.1.tgz) = cbf12a72b33424935f019b17ae8fa55289eae77d3845dcfcbbc1c47b71111992d2c0eb837b0f262ce644809c3cc06ad0c2bb04aa1b6ec89a1e3122f327114dbd
SHA512 (PEAR-1.10.5.tgz) = c310fa8ec72ba201313dc03953ec1eba82daa137b27eac880fd5388dce72d38e6aa40737da43c3ad41db4df0d6717c7d77cf477d64b29245854ae95d2a94c364
SHA512 (PEAR_Manpages-1.10.0.tgz) = 41bb2397c381d6315a355d01554c3c0e1ce38f30c25a56044fa8e0955baac04a39cea2bf1b0398a47c56c381c5373d78864862086ebf6958aed693521f822833
SHA512 (Structures_Graph-1.1.1.tgz) = cd4feb265e1aa05de348645dfc0b8e336486cb02c553dd8fcacb0a1eab452bf54108e07864395d55e0c92f4ffd338a5ae846b2dc28804bb23f03c91864ef0284
SHA512 (XML_Util-1.4.3.tgz) = c21a7cef90743e124c4bc8e0453b634de8f6a6b0aac060acc1a17f481a2eb8757d322b05c69151280b7651cea927b2c64b7d49b9fd815dcdc606d0472d967310