diff options
author | Remi Collet <fedora@famillecollet.com> | 2016-07-01 19:30:02 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2016-07-01 19:30:02 +0200 |
commit | f88bffd124381c0b05069cda8856d79621bb6fa5 (patch) | |
tree | b1ca0421a8ca9c1730e440658d9772ccdef8089a | |
parent | 42f5c5c6960d4830e708c447ee18bd7b5d7f03f1 (diff) |
php-zendframework-zend-expressive-fastroute: 1.2.0 (New package)
-rw-r--r-- | php-zendframework-zend-expressive-aurarouter.spec | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/php-zendframework-zend-expressive-aurarouter.spec b/php-zendframework-zend-expressive-aurarouter.spec index 31a031d..90a590e 100644 --- a/php-zendframework-zend-expressive-aurarouter.spec +++ b/php-zendframework-zend-expressive-aurarouter.spec @@ -39,8 +39,6 @@ BuildRequires: php(language) >= 5.5 BuildRequires: php-composer(aura/router) >= 2.3 BuildRequires: php-composer(psr/http-message) >= 1.0 BuildRequires: php-composer(%{gh_owner}/zend-expressive-router) >= 1.0 -BuildRequires: php-pcre -BuildRequires: php-spl # From composer, "require-dev": { # "phpunit/phpunit": "^4.7", # "squizlabs/php_codesniffer": "^2.3" @@ -64,17 +62,9 @@ Requires: php-composer(%{gh_owner}/zend-expressive-router) < 2 # From phpcompatinfo report for version 1.0.0 # Nothing %if ! %{bootstrap} -# From composer, "suggest": { -# "zendframework/zend-expressive-aurarouter": "^0.1 to use the Aura.Router routing adapter", -# "zendframework/zend-expressive-fastroute": "^0.1 to use the FastRoute routing adapter", -# "zendframework/zend-expressive-zendrouter": "^0.1 to use the zend-mvc routing adapter" -%if 0%{?fedora} >= 21 -Suggests: php-composer(%{gh_owner}/zend-expressive-aurarouter) -Suggests: php-composer(%{gh_owner}/zend-expressive-fastroute) -Suggests: php-composer(%{gh_owner}/zend-expressive-zendrouter) -%endif # Autoloader Requires: php-composer(%{gh_owner}/zend-loader) >= 2.5 +Requires: php-zendframework-zend-loader >= 2.5.1-3 %endif Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version} @@ -91,7 +81,12 @@ Documentation: http://zend-expressive.readthedocs.io/ mv LICENSE.md LICENSE -# psr/http-message managed by +: Create dependency autoloader +cat << 'EOF' | tee autoload.php +<?php +require_once '%{php_home}/Psr/Http/Message/autoload.php'; +require_once '%{php_home}/Aura/Router/autoload.php'; +EOF %build @@ -104,6 +99,8 @@ rm -rf %{buildroot} mkdir -p %{buildroot}%{php_home}/Zend/%{library} cp -pr src %{buildroot}%{php_home}/Zend/%{library}/%{sublib} +install -m644 autoload.php %{buildroot}%{php_home}/Zend/%{library}-%{sublib}-aura-autoload.php + %check %if %{with_tests} @@ -154,6 +151,7 @@ rm -rf %{buildroot} %doc *.md %doc composer.json %{php_home}/Zend/%{library}/%{sublib}/Aura* +%{php_home}/Zend/%{library}-%{sublib}-aura-autoload.php %changelog |