diff options
Diffstat (limited to 'php-zendframework-zend-i18n-resources.spec')
-rw-r--r-- | php-zendframework-zend-i18n-resources.spec | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/php-zendframework-zend-i18n-resources.spec b/php-zendframework-zend-i18n-resources.spec index 37e9864..11f8da8 100644 --- a/php-zendframework-zend-i18n-resources.spec +++ b/php-zendframework-zend-i18n-resources.spec @@ -21,7 +21,7 @@ Name: php-%{gh_owner}-%{gh_project} Version: 2.5.2 -Release: 1%{?dist} +Release: 5%{?dist} Summary: Zend Framework %{library} component Group: Development/Libraries @@ -35,18 +35,20 @@ BuildArch: noarch %if %{with_tests} BuildRequires: php(language) >= 5.5 BuildRequires: php-cli -BuildRequires: php-composer(%{gh_owner}/zend-loader) >= 2.5 %endif +# Autoloader +BuildRequires: php-fedora-autoloader-devel # From composer, "require": { # "php": ">=5.5" Requires: php(language) >= 5.5 # Autoloader -Requires: php-composer(%{gh_owner}/zend-loader) >= 2.5 +Requires: php-composer(fedora/autoloader) # From phpcompatinfo report for version 2.5.1 # None Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version} +Provides: php-autoloader(%{gh_owner}/%{gh_project}) = %{version} %description @@ -64,7 +66,8 @@ mv LICENSE.txt LICENSE %build -# Empty build section, nothing required +: Create autoloader +phpab --template fedora --output src/autoload.php src %install @@ -78,14 +81,9 @@ cp -pr languages %{buildroot}%{php_home}/Zend/I18n/languages mkdir vendor cat << EOF | tee vendor/autoload.php <?php -require_once '%{php_home}/Zend/Loader/AutoloaderFactory.php'; -Zend\\Loader\\AutoloaderFactory::factory(array( - 'Zend\\Loader\\StandardAutoloader' => array( - 'namespaces' => array( - 'Zend\\\\I18n' => '%{buildroot}%{php_home}/Zend/I18n' -)))); -require_once '%{php_home}/Zend/autoload.php'; +require_once '%{buildroot}%{php_home}/Zend/I18n/%{library}/autoload.php'; EOF + php -r ' require "vendor/autoload.php"; use Zend\I18n\Translator\Resources; @@ -109,9 +107,11 @@ php -r ' %changelog +* Tue Dec 5 2017 Remi Collet <remi@remirepo.net> - 2.5.2-5 +- switch from zend-loader to fedora/autoloader + * Thu Aug 6 2015 Remi Collet <remi@fedoraproject.org> - 2.5.2-1 - version 2.5.2 * Tue Aug 4 2015 Remi Collet <remi@fedoraproject.org> - 2.5.1-1 -* Tue Aug 4 2015 Remi Collet <remi@fedoraproject.org> - 2.5.1-1 - initial package |