summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2018-11-25 08:37:17 +0100
committerRemi Collet <remi@remirepo.net>2018-11-25 08:37:17 +0100
commitfd97a070c54bb6f9754ce2ea11fd28aded2e8e09 (patch)
tree3cc4a87f500af3dc9b3a139275a0139a8bd7beda
parent28deaf365ad42c8bd5348430a64d483606cec477 (diff)
fix autoloader for psr/cache and psr/simple-cache
-rw-r--r--php-zendframework-zend-cache.spec9
1 files changed, 8 insertions, 1 deletions
diff --git a/php-zendframework-zend-cache.spec b/php-zendframework-zend-cache.spec
index 2919f18..20056a3 100644
--- a/php-zendframework-zend-cache.spec
+++ b/php-zendframework-zend-cache.spec
@@ -21,7 +21,7 @@
Name: php-%{gh_owner}-%{gh_project}
Version: 2.8.2
-Release: 2%{?dist}
+Release: 4%{?dist}
Summary: Zend Framework %{library} component
License: BSD
@@ -172,12 +172,16 @@ mv autoload/*.php src
cat << 'EOF' | tee autoload.php
<?php
require_once __DIR__ . '/%{library}/patternPluginManagerPolyfill.php';
+require_once '%{php_home}/Psr/Cache/autoload.php';
+require_once '%{php_home}/Psr/SimpleCache/autoload.php';
EOF
: Create autoloader
phpab --template fedora --output src/autoload.php src
cat << 'EOF' | tee -a src/autoload.php
\Fedora\Autoloader\Dependencies::required([
+ '%{php_home}/Psr/Cache/autoload.php',
+ '%{php_home}/Psr/SimpleCache/autoload.php',
'%{php_home}/Zend/Stdlib/autoload.php',
'%{php_home}/Zend/ServiceManager/autoload.php',
'%{php_home}/Zend/EventManager/autoload.php',
@@ -241,6 +245,9 @@ exit $ret
%changelog
+* Sun Nov 25 2018 Remi Collet <remi@remirepo.net> - 2.8.2-4
+- fix autoloader for psr/cache and psr/simple-cache
+
* Wed May 2 2018 Remi Collet <remi@remirepo.net> - 2.8.2-2
- update to 2.8.2