# remirepo/Fedora spec file for php-laminas-mvc-form # # Copyright (c) 2016-2021 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %global gh_commit 9e03ded7e7605a5b1e34a2f187b14d7fd4f1e44f %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner laminas %global gh_project laminas-mvc-form %global zf_name zend-mvc-form %global php_home %{_datadir}/php %global namespace Laminas %global library Mvc %global subproj Form Name: php-%{gh_project} Version: 1.2.0 Release: 1%{?dist} Summary: %{namespace} Framework %{library}/%{subproj} component License: BSD URL: https://github.com/%{gh_owner}/%{gh_project} Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz BuildArch: noarch # For test BuildRequires: php-cli # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: (php-autoloader(%{gh_owner}/laminas-code) >= 3.5.1 with php-autoloader(%{gh_owner}/laminas-code) < 4) BuildRequires: (php-autoloader(%{gh_owner}/laminas-form) >= 2.17.0 with php-autoloader(%{gh_owner}/laminas-form) < 3) BuildRequires: (php-autoloader(%{gh_owner}/laminas-i18n) >= 2.11.1 with php-autoloader(%{gh_owner}/laminas-i18n) < 3) BuildRequires: (php-autoloader(%{gh_owner}/laminas-zendframework-bridge) >= 1.2 with php-autoloader(%{gh_owner}/laminas-zendframework-bridge) < 2) # remirepo:6 %else BuildRequires: php-laminas-code BuildRequires: php-laminas-form BuildRequires: php-laminas-i18n BuildRequires: php-laminas-zendframework-bridge %endif # From composer, "require": { # "php": "^7.3 || ~8.0.0", # "laminas/laminas-code": "^3.5.1", # "laminas/laminas-form": "^2.17.0", # "laminas/laminas-i18n": "^2.11.1" Requires: php(language) >= 7.3 # remirepo:1 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 Requires: (php-autoloader(%{gh_owner}/laminas-code) >= 3.5.1 with php-autoloader(%{gh_owner}/laminas-code) < 4) Requires: (php-autoloader(%{gh_owner}/laminas-form) >= 2.17.0 with php-autoloader(%{gh_owner}/laminas-form) < 3) Requires: (php-autoloader(%{gh_owner}/laminas-i18n) >= 2.11.1 with php-autoloader(%{gh_owner}/laminas-i18n) < 3) Requires: (php-autoloader(%{gh_owner}/laminas-zendframework-bridge) >= 1.2 with php-autoloader(%{gh_owner}/laminas-zendframework-bridge) < 2) # remirepo:6 %else Requires: php-laminas-code Requires: php-laminas-form Requires: php-laminas-i18n Requires: php-laminas-zendframework-bridge %endif # Autoloader Requires: php-composer(fedora/autoloader) # Compatibily ensure by the bridge Obsoletes: php-zendframework-%{zf_name} < 1.0.1 Provides: php-zendframework-%{zf_name} = %{version} Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version} Provides: php-composer(zendframework/%{zf_name}) = %{version} Provides: php-autoloader(%{gh_owner}/%{gh_project}) = %{version} Provides: php-autoloader(zendframework/%{zf_name}) = %{version} %description %{gh_project} is a metapackage that provides a single package for installing all packages necessary to fully use laminas-form under laminas-mvc, including: * laminas/laminas-code * laminas/laminas-form * laminas/laminas-i18n i18n integration: this package only requires laminas-i18n, and not laminas-mvc-i18n. This is to allow providing the bare minimum required to use laminas-form, as its base view helper extends from the base laminas-i18n view helper. If you want to provide translations for your form elements, please install laminas-mvc-i18n as well. %prep %setup -q -n %{gh_project}-%{gh_commit} mv LICENSE.md LICENSE %build : Create autoloader cat << 'EOF' | tee autoload.php - 1.2.0-1 - update to 1.2.0 (no change) - keep compatibility using laminas-zendframework-bridge as this is only used using compat autolader * Mon May 3 2021 Remi Collet - 1.1.0-1 - update to 1.1.0 - raise dependency on PHP 7.3 - raise dependency on laminas-code 3.5 - raise dependency on laminas-form 2.16 - raise dependency on laminas-i18n 2.11 - raise dependency on laminas-zendframework-bridge 1.2 * Wed Jan 15 2020 Remi Collet - 1.0.0-1 - switch to Laminas - use range dependencies * Tue Dec 12 2017 Remi Collet - 1.0.0-5 - switch from zend-loader to fedora/autoloader * Tue Jul 26 2016 Remi Collet - 1.0.0-2 - fix summary * Wed Jun 29 2016 Remi Collet - 1.0.0-1 - initial package