diff --git a/.gitignore b/.gitignore index 9b03e0b..6418f8b 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,8 @@ /php-composer-ca-bundle-1.1.2-46afded.tgz /php-composer-ca-bundle-1.1.3-8afa52c.tgz /php-composer-ca-bundle-1.1.4-558f321.tgz +/php-composer-ca-bundle-1.2.3-f26a67e.tgz +/php-composer-ca-bundle-1.2.4-10bb965.tgz +/php-composer-ca-bundle-1.2.5-62e8fc2.tgz +/php-composer-ca-bundle-1.2.6-47fe531.tgz +/php-composer-ca-bundle-1.2.7-95c63ab.tgz diff --git a/php-composer-ca-bundle-rpm.patch b/php-composer-ca-bundle-rpm.patch index 54f656d..7ae8760 100644 --- a/php-composer-ca-bundle-rpm.patch +++ b/php-composer-ca-bundle-rpm.patch @@ -10,3 +10,15 @@ diff -up src/CaBundle.php.rpm src/CaBundle.php // cURL does not understand 'phar://' paths // see https://github.com/composer/ca-bundle/issues/10 +diff -up tests/CaBundleTest.php.rpm tests/CaBundleTest.php +--- tests/CaBundleTest.php.rpm 2019-08-01 11:14:21.577672699 +0200 ++++ tests/CaBundleTest.php 2019-08-01 11:14:31.322744408 +0200 +@@ -104,7 +104,7 @@ class CaBundleTest extends TestCase + public function testOpenBaseDir() + { + $oldValue = ini_get('open_basedir'); +- ini_set('open_basedir', realpath(__DIR__ . '/../')); ++ ini_set('open_basedir', '/usr/share/php:' . realpath(__DIR__ . '/../')); + $certFilePath = CaBundle::getSystemCaRootBundlePath(); + $validResult = CaBundle::validateCaFile($certFilePath, null); + $this->assertTrue($validResult); diff --git a/php-composer-ca-bundle.spec b/php-composer-ca-bundle.spec index 9e9d454..9e8fe0b 100644 --- a/php-composer-ca-bundle.spec +++ b/php-composer-ca-bundle.spec @@ -6,7 +6,7 @@ # # Please, preserve the changelog entries # -%global gh_commit 558f321c52faeb4828c03e7dc0cfe39a09e09a2d +%global gh_commit 95c63ab2117a72f48f5a55da9740a3273d45b7fd %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner composer %global gh_project ca-bundle @@ -14,8 +14,8 @@ %global with_tests 0%{!?_without_tests:1} Name: php-composer-ca-bundle -Version: 1.1.4 -Release: 2%{?dist} +Version: 1.2.7 +Release: 1%{?dist} Summary: Lets you find a path to the system CA License: MIT @@ -34,14 +34,14 @@ BuildRequires: php-openssl BuildRequires: php-pcre BuildRequires: php-cli # From composer.json, "require": { -# "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5", +# "phpunit/phpunit": "^4.8.35 || ^5.7 || 6.5 - 8", # "psr/log": "^1.0", -# "symfony/process": "^2.5 || ^3.0 || ^4.0" +# "symfony/process": "^2.5 || ^3.0 || ^4.0 || ^5.0" %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: phpunit6 -%global phpunit %{_bindir}/phpunit6 +%global phpunit %{_bindir}/phpunit8 BuildRequires: (php-composer(psr/log) >= 1.0 with php-composer(psr/log) < 2) -BuildRequires: (php-composer(symfony/process) >= 2.5 with php-composer(symfony/process) < 5) +BuildRequires: (php-composer(symfony/process) >= 2.5 with php-composer(symfony/process) < 6) %else BuildRequires: phpunit %global phpunit %{_bindir}/phpunit @@ -57,7 +57,7 @@ BuildRequires: %{_sysconfdir}/pki/tls/certs/ca-bundle.crt # From composer.json, "require": { # "ext-openssl": "*", # "ext-pcre": "*", -# "php": "^5.3.2 || ^7.0" +# "php": "^5.3.2 || ^7.0 || ^8.0" Requires: php(language) >= 5.3.2 Requires: php-openssl Requires: php-pcre @@ -111,6 +111,7 @@ cat << 'EOF' | tee vendor/autoload.php require_once '%{buildroot}%{php_home}/Composer/CaBundle/autoload.php'; \Fedora\Autoloader\Dependencies::required(array( array( + '%{php_home}/Symfony5/Component/Process/autoload.php', '%{php_home}/Symfony4/Component/Process/autoload.php', '%{php_home}/Symfony3/Component/Process/autoload.php', '%{php_home}/Symfony/Component/Process/autoload.php', @@ -120,10 +121,10 @@ require_once '%{buildroot}%{php_home}/Composer/CaBundle/autoload.php'; EOF ret=0 -for cmdarg in "php %{phpunit}" "php56 %{_bindir}/phpunit" php70 php71 php72 php73; do +for cmdarg in "php %{phpunit}" "php56 %{_bindir}/phpunit" "php70 %{_bindir}/phpunit6" "php71 %{_bindir}/phpunit7" php72 php73 php74; do if which $cmdarg; then set $cmdarg - $1 ${2:-%{_bindir}/phpunit6} --verbose || ret=1 + $1 ${2:-%{_bindir}/phpunit8} --verbose || ret=1 fi done exit $ret @@ -142,6 +143,15 @@ exit $ret %changelog +* Wed Apr 8 2020 Remi Collet - 1.2.7-1 +- update to 1.2.7 + +* Tue Jan 14 2020 Remi Collet - 1.2.6-1 +- update to 1.2.6 + +* Sat Aug 3 2019 Remi Collet - 1.2.3-1 +- update to 1.2.3 + * Sat Feb 02 2019 Fedora Release Engineering - 1.1.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index b3f1e03..1524e67 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (php-composer-ca-bundle-1.1.4-558f321.tgz) = 6192f3940105930bc6876f1b212684d47185816dcc328cf96c7d43cca68dfafad6a2c02fdea2c70334a571e690469d1f6a964096c68772512ed8639fbdde44f1 +SHA512 (php-composer-ca-bundle-1.2.7-95c63ab.tgz) = 13d6de73d3a9370e8b5b478b1ab7dbfafc29ef2f2d1a0e705d74cdf6af3f979288805b0a98136db84c8131c993bf3baca91d875cb0d0c5a6181d548ee48ac3a9