# remirepo/Fedora spec file for php-laminas-zendframework-bridge # # Copyright (c) 2020-2021 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 6cccbddfcfc742eb02158d6137ca5687d92cee32 %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.2.0 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) >= 7.3 BuildRequires: php-spl # From composer, "require-dev": { # "psalm/plugin-phpunit": "^0.15.1", # "squizlabs/php_codesniffer": "^3.5", # "vimeo/psalm": "^4.6" %global phpunit %{_bindir}/phpunit9 BuildRequires: phpunit9 >= 9.3 # Autoloader BuildRequires: php-fedora-autoloader-devel >= 1.0.1 %endif # From composer, "require": { # "php": "^7.3 || ^8.0" Requires: php(language) >= 7.3 # 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.2.0-1 - update to 1.2.0 (no change) - raise dependency on PHP 7.3 * Tue Sep 15 2020 Remi Collet - 1.1.1-1 - update to 1.1.1 (no change) - switch to phpunit9 * Wed Aug 19 2020 Remi Collet - 1.1.0-1 - update to 1.1.0 (no change) * Fri May 22 2020 Remi Collet - 1.0.4-1 - update to 1.0.4 * Sat Apr 4 2020 Remi Collet - 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