diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-08-07 06:39:59 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-08-07 06:39:59 +0200 |
commit | 2df25c18d350ec881d7adbd86c5dc93dbf536529 (patch) | |
tree | fdb428523c7e98e08854635d56b647670150acb0 /php-psr-cache.spec | |
parent | 26084ea3435306ed8142263a995653b7d11fca49 (diff) |
php-psr-cache: 1.0.1
Diffstat (limited to 'php-psr-cache.spec')
-rw-r--r-- | php-psr-cache.spec | 20 |
1 files changed, 16 insertions, 4 deletions
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 <remi@remirepo.net> - 1.0.0-1 +* Sun Aug 7 2016 Remi Collet <remi@remirepo.net> - 1.0.1-1 +- update to 1.0.1 (only comments) +- add check for autoloader + +* Mon Jan 4 2016 Remi Collet <remi@remirepo.net> - 1.0.0-1 - backport for #remirepo * Sun Jan 03 2016 Shawn Iwinski <shawn@iwin.ski> - 1.0.0-1 |