From 2df25c18d350ec881d7adbd86c5dc93dbf536529 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 7 Aug 2016 06:39:59 +0200 Subject: php-psr-cache: 1.0.1 --- composer.json | 25 +++++++++++++++++++++++++ php-psr-cache.spec | 20 ++++++++++++++++---- 2 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 composer.json diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..e828fec --- /dev/null +++ b/composer.json @@ -0,0 +1,25 @@ +{ + "name": "psr/cache", + "description": "Common interface for caching libraries", + "keywords": ["psr", "psr-6", "cache"], + "license": "MIT", + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "require": { + "php": ">=5.3.0" + }, + "autoload": { + "psr-4": { + "Psr\\Cache\\": "src/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + } +} diff --git a/php-psr-cache.spec b/php-psr-cache.spec index e5a7995..ccb913c 100644 --- a/php-psr-cache.spec +++ b/php-psr-cache.spec @@ -12,8 +12,8 @@ %global github_owner php-fig %global github_name cache -%global github_version 1.0.0 -%global github_commit 9e66031f41fbbdda45ee11e93c45d480ccba3eb3 +%global github_version 1.0.1 +%global github_commit d11b50ad223250cf17b86e38383413f5a6764bf8 %global composer_vendor psr %global composer_project cache @@ -35,6 +35,9 @@ Source0: %{url}/archive/%{github_commit}/%{name}-%{github_version}-%{github_co BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch +# For tests +BuildRequires: php-cli +BuildRequires: php-composer(symfony/class-loader) # composer.json Requires: php(language) >= %{php_min_ver} @@ -46,6 +49,7 @@ Requires: php-composer(symfony/class-loader) # Composer Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version} + %description This package holds all interfaces defined by PSR-6 [1]. @@ -97,7 +101,11 @@ cp -rp src/* %{buildroot}%{phpdir}/Psr/Cache/ %check -: No tests provided upstream +: Test autoloader +php -r ' +require "%{buildroot}%{phpdir}/Psr/Cache/autoload.php"; +exit (interface_exists("Psr\\Cache\\CacheItemInterface") ? 0 : 1); +' %clean @@ -115,7 +123,11 @@ rm -rf %{buildroot} %changelog -* Mon Jan 04 2016 Remi Collet - 1.0.0-1 +* Sun Aug 7 2016 Remi Collet - 1.0.1-1 +- update to 1.0.1 (only comments) +- add check for autoloader + +* Mon Jan 4 2016 Remi Collet - 1.0.0-1 - backport for #remirepo * Sun Jan 03 2016 Shawn Iwinski - 1.0.0-1 -- cgit