From ca7b505366be1066ad180f57ea0e7bb19eaaeb0d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 10 Nov 2016 17:28:29 +0100 Subject: php-http-interop-http-middleware: 0.2.0 (New package) --- Makefile | 4 ++ composer.json | 35 +++++++++++ php-http-interop-http-middleware.spec | 107 ++++++++++++++++++++++++++++++++++ 3 files changed, 146 insertions(+) create mode 100644 Makefile create mode 100644 composer.json create mode 100644 php-http-interop-http-middleware.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..91b0fd5 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../common/Makefile + diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..b28542e --- /dev/null +++ b/composer.json @@ -0,0 +1,35 @@ +{ + "name": "http-interop/http-middleware", + "description": "Common interface for HTTP middleware", + "keywords": [ + "psr", + "psr-7", + "psr-17", + "http", + "factory", + "middleware", + "request", + "response" + ], + "license": "MIT", + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "require": { + "php": ">=5.3.0", + "psr/http-message": "^1.0" + }, + "autoload": { + "psr-4": { + "Interop\\Http\\Middleware\\": "src/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + } +} diff --git a/php-http-interop-http-middleware.spec b/php-http-interop-http-middleware.spec new file mode 100644 index 0000000..744b354 --- /dev/null +++ b/php-http-interop-http-middleware.spec @@ -0,0 +1,107 @@ +# remirepo/fedora spec file for php-http-interop-http-middleware +# +# Copyright (c) 2016 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# + +%global gh_commit ff545c87e97bf4d88f0cb7eb3e89f99aaa53d7a9 +%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.2.0 +Release: 1%{?dist} +Summary: Common interface for HTTP middleware + +Group: Development/Libraries +License: MIT +URL: https://github.com/%{gh_owner}/%{gh_project} +Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +BuildRequires: php-cli +BuildRequires: php-composer(psr/http-message) >= 1.0 +BuildRequires: php-composer(fedora/autoloader) + +# From composer.json, "require": { +# "php": ">=5.3.0", +# "psr/http-message": "^1.0" +Requires: php(language) > 5.3 +Requires: php-composer(psr/http-message) >= 1.0 +Requires: php-composer(psr/http-message) < 2 +# 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.2.0-1 +- initial package -- cgit