# remirepo/fedora spec file for php-http-interop-http-middleware # # Copyright (c) 2016-2020 Remi Collet # License: CC-BY-SA # http://creativecommons.org/licenses/by-sa/4.0/ # # Please, preserve the changelog entries # %global gh_commit b49e1f9f6c584e704317b563302e566b8ce11858 %global gh_short %(c=%{gh_commit}; echo ${c:0:7}) %global gh_owner http-interop %global gh_project http-middleware Name: php-%{gh_owner}-%{gh_project} Version: 0.5.0 Release: 1%{?dist} Summary: Common interface for HTTP middleware License: MIT 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 BuildRequires: php-cli %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 BuildRequires: (php-composer(psr/http-message) >= 1.0 with php-composer(psr/http-message) < 2) %else BuildRequires: php-psr-http-message %endif BuildRequires: php-composer(fedora/autoloader) # From composer.json, "require": { # "php": ">=5.3.0", # "psr/http-message": "^1.0" Requires: php(language) > 5.3 %if 0%{?fedora} >= 27 || 0%{?rhel} >= 8 Requires: (php-composer(psr/http-message) >= 1.0 with php-composer(psr/http-message) < 2) %else Requires: php-psr-http-message %endif # From phpcompatinfo: none # Autoloader Requires: php-composer(fedora/autoloader) Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version} %description PSR-15 interfaces for HTTP middleware. Autoloader: %{_datadir}/php/Interop/Http/Middleware/autoload.php %prep %setup -q -n %{gh_project}-%{gh_commit} %build cat << 'AUTOLOAD' | tee src/autoload.php - 0.5.0-1 - update to 0.5.0 * Thu Nov 10 2016 Remi Collet - 0.2.0-1 - initial package