From aa3cde80a8b18a7c026a865f05fa0995187e9979 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 6 Mar 2017 14:28:37 +0100 Subject: php-composer-ca-bundle: 1.0.7 --- composer.json | 6 ++++++ php-composer-ca-bundle.spec | 49 +++++++++++++++++++++++++++++---------------- 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/composer.json b/composer.json index 5163594..7f41acd 100644 --- a/composer.json +++ b/composer.json @@ -27,6 +27,7 @@ "php": "^5.3.2 || ^7.0" }, "require-dev": { + "phpunit/phpunit": "^4.5", "psr/log": "^1.0", "symfony/process": "^2.5 || ^3.0" }, @@ -47,5 +48,10 @@ "branch-alias": { "dev-master": "1.x-dev" } + }, + "config": { + "platform": { + "php": "5.3.9" + } } } diff --git a/php-composer-ca-bundle.spec b/php-composer-ca-bundle.spec index 9a1c9db..f581783 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 a795611394b3c05164fd0eb291b492b39339cba4 +%global gh_commit b17e6153cb7f33c7e44eb59578dc12eee5dc8e12 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner composer %global gh_project ca-bundle @@ -14,7 +14,7 @@ %global with_tests 0%{!?_without_tests:1} Name: php-composer-ca-bundle -Version: 1.0.6 +Version: 1.0.7 Release: 1%{?dist} Summary: Lets you find a path to the system CA @@ -32,11 +32,19 @@ Patch0: %{name}-rpm.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %if %{with_tests} -# For tests BuildRequires: php(language) >= 5.3.2 BuildRequires: php-openssl BuildRequires: php-pcre BuildRequires: php-cli +# From composer.json, "require": { +# "phpunit/phpunit": "^4.5", +# "psr/log": "^1.0", +# "symfony/process": "^2.5 || ^3.0" +BuildRequires: phpunit +BuildRequires: php-composer(psr/log) < 2 +BuildRequires: php-composer(psr/log) >= 1.0 +BuildRequires: php-composer(symfony/process) < 3 +BuildRequires: php-composer(symfony/process) >= 2.5 # Autoloader BuildRequires: php-composer(fedora/autoloader) # ca-certificates @@ -63,6 +71,8 @@ Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version} %description Small utility library that lets you find a path to the system CA bundle. +Autoloader: %{php_home}/Composer/CaBundle/autoload.php + %prep %setup -q -n %{gh_project}-%{gh_commit} @@ -87,20 +97,21 @@ cp -pr src %{buildroot}%{php_home}/Composer/CaBundle %check %if %{with_tests} -php -r ' -use Composer\CaBundle\CaBundle as CA; -require "%{buildroot}%{php_home}/Composer/CaBundle/autoload.php"; -$file = CA::getSystemCaRootBundlePath(); -if ($file != "/etc/pki/tls/certs/ca-bundle.crt") { - echo "Unexpected $file\n"; - exit(1); -} -if (!CA::validateCaFile($file)) { - echo "Cannot validate $file\n"; - exit(1); -} -echo "OK\n"; -' +mkdir vendor +cat << 'EOF' | tee vendor/autoload.php + - 1.0.7-1 +- Update to 1.0.7 +- run upstream test suite + * Thu Nov 3 2016 Remi Collet - 1.0.6-1 - update to 1.0.6 (no change) -- cgit