# remirepo/Fedora spec file for php-laminas-zendframework-bridge # # Copyright (c) 2020 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %global bootstrap 0 %global gh_commit bfbbdb6c998d50dbf69d2187cb78a5f1fa36e1e9 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner laminas %global gh_project laminas-zendframework-bridge %global php_home %{_datadir}/php %global namespace Laminas %global library ZendFrameworkBridge %if %{bootstrap} %global with_tests 0%{?_with_tests:1} %else %global with_tests 0%{!?_without_tests:1} %endif Name: php-%{gh_project} Version: 1.0.3 Release: 1%{?dist} Summary: Alias legacy ZF class names to Laminas Project equivalents License: BSD URL: https://github.com/%{gh_owner}/%{gh_project} Source0: %{gh_commit}/%{name}-%{version}-%{gh_short}.tgz Source1: makesrc.sh # Adapt for Fedora autoloader and RPM layout Patch0: %{name}-rpm.patch BuildArch: noarch # Tests %if %{with_tests} BuildRequires: php(language) >= 5.6 BuildRequires: php-spl # From composer, "require-dev": { # "phpunit/phpunit": "^5.7 || ^6.5 || ^7.5 || ^8.1", # "squizlabs/php_codesniffer": "^3.5" %global phpunit %{_bindir}/phpunit8 BuildRequires: phpunit8 >= 8.1 # Autoloader BuildRequires: php-fedora-autoloader-devel >= 1.0.1 %endif # From composer, "require": { # "php": "^5.6 || ^7.0" Requires: php(language) >= 5.6 # From phpcompatinfo report for version 1.0.0 Requires: php-spl # Autoloader Requires: php-composer(fedora/autoloader) >= 1.0.1 Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version} Provides: php-autoloader(%{gh_owner}/%{gh_project}) = %{version} # no replacement (for now) Obsoletes: php-zendframework < 3.0.1 Obsoletes: php-zendframework-zend-debug < 3 Obsoletes: php-zendframework-zend-expressive < 2 Obsoletes: php-zendframework-zend-expressive-aurarouter < 3 Obsoletes: php-zendframework-zend-expressive-fastroute < 3 Obsoletes: php-zendframework-zend-expressive-helpers < 4 Obsoletes: php-zendframework-zend-expressive-platesrenderer < 2 Obsoletes: php-zendframework-zend-expressive-router < 3 Obsoletes: php-zendframework-zend-expressive-template < 2 Obsoletes: php-zendframework-zend-expressive-twigrenderer < 2 Obsoletes: php-zendframework-zend-expressive-zendrouter < 3 Obsoletes: php-zendframework-zend-expressive-zendviewrenderer < 2 %description This library provides a custom autoloader that aliases legacy Zend Framework, Apigility, and Expressive classes to their replacements under the Laminas Project. Documentation: https://docs.laminas.dev/%{gh_project}/ %prep %setup -q -n %{gh_project}-%{gh_commit} %patch0 -p0 -b .rpm find . -name \*.rpm -delete mv LICENSE.md LICENSE %build mv src/autoload.php upstream.php phpab --template fedora --output src/autoload.php src grep -v '^ - 1.0.3-1 - update to 1.0.3 * Fri Mar 27 2020 Remi Collet - 1.0.2-1 - update to 1.0.2 * Thu Feb 13 2020 Remi Collet - 1.0.1-5 - raise dependency on fedora/autoloader 1.0.1 - clean autoloader * Thu Jan 16 2020 Remi Collet - 1.0.1-3 - add full framework autoloader * Fri Jan 10 2020 Remi Collet - 1.0.1-2 - obsolete dropped packages * Wed Jan 8 2020 Remi Collet - 1.0.1-1 - update to 1.0.1 * Mon Jan 6 2020 Remi Collet - 1.0.0-1 - initial package