From 456f0e403caa633b0647be7f0c9020e5234ab5bb Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 21 Jan 2016 07:38:44 +0100 Subject: php-mtdowling-jmespath-php: 2.3.0 (backported from Fedora) --- php-mtdowling-jmespath-php.spec | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/php-mtdowling-jmespath-php.spec b/php-mtdowling-jmespath-php.spec index 486c9bb..70235b5 100644 --- a/php-mtdowling-jmespath-php.spec +++ b/php-mtdowling-jmespath-php.spec @@ -2,7 +2,7 @@ # # Fedora spec file for php-mtdowling-jmespath-php # -# Copyright (c) 2015 Shawn Iwinski +# Copyright (c) 2015-2016 Shawn Iwinski # # License: MIT # http://opensource.org/licenses/MIT @@ -12,8 +12,8 @@ %global github_owner jmespath %global github_name jmespath.php -%global github_version 2.2.0 -%global github_commit a7d99d0c836e69d27b7bfca1d33ca2759fba3289 +%global github_version 2.3.0 +%global github_commit 192f93e43c2c97acde7694993ab171b3de284093 %global composer_vendor mtdowling %global composer_project jmespath.php @@ -41,9 +41,9 @@ BuildArch: noarch # Tests %if %{with_tests} ## composer.json -BuildRequires: %{_bindir}/phpunit BuildRequires: php(language) >= %{php_min_ver} -## phpcompatinfo (computed from version 2.2.0) +BuildRequires: php-composer(phpunit/phpunit) +## phpcompatinfo (computed from version 2.3.0) BuildRequires: php-json BuildRequires: php-spl ## Autoloader @@ -53,12 +53,14 @@ BuildRequires: php-composer(symfony/class-loader) Requires: php-cli # composer.json Requires: php(language) >= %{php_min_ver} -# phpcompatinfo (computed from version 2.1.0) +# phpcompatinfo (computed from version 2.3.0) Requires: php-json Requires: php-spl # Autoloader Requires: php-composer(symfony/class-loader) +# php-{COMPOSER_VENDOR}-{COMPOSER_PROJECT} +Provides: php-%{composer_vendor}-%{composer_project} = %{version}-%{release} # Composer Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version} @@ -72,10 +74,11 @@ in PHP applications with PHP data structures. %setup -qn %{github_name}-%{github_commit} : Create autoloader -(cat <<'AUTOLOAD' +cat <<'AUTOLOAD' | tee src/autoload.php - 2.3.0-1 +- Updated to 2.3.0 (RHBZ #1295982) +- Added "php-{COMPOSER_VENDOR}-{COMPOSER_PROJECT}" ("php-mtdowling-jmespath.php") + virtual provide + * Sun Jun 28 2015 Shawn Iwinski - 2.2.0-1 - Updated to 2.2.0 (RHBZ #1225677) - Changed autoloader from phpab to Symfony ClassLoader -- cgit