From eaaa45f9318d35c0d72f0e22753381e66bf3d865 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 27 Feb 2017 06:35:13 +0100 Subject: php-psr-container: 1.0.0 - New package --- Makefile | 4 ++ composer.json | 27 +++++++++++++ php-psr-container.spec | 106 +++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 137 insertions(+) create mode 100644 Makefile create mode 100644 composer.json create mode 100644 php-psr-container.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..b8ee012 --- /dev/null +++ b/composer.json @@ -0,0 +1,27 @@ +{ + "name": "psr/container", + "type": "library", + "description": "Common Container Interface (PHP FIG PSR-11)", + "keywords": ["psr", "psr-11", "container", "container-interop", "container-interface"], + "homepage": "https://github.com/php-fig/container", + "license": "MIT", + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "require": { + "php": ">=5.3.0" + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + } +} diff --git a/php-psr-container.spec b/php-psr-container.spec new file mode 100644 index 0000000..206a3ff --- /dev/null +++ b/php-psr-container.spec @@ -0,0 +1,106 @@ +# remirepo/fedora spec file for php-psr-container +# +# Copyright (c) 2017 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# + +%global gh_commit b7ce3b176482dbbc1245ebf52b181af44c2cf55f +%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) +%global gh_owner php-fig +%global gh_project container + +%global pk_vendor psr +%global pk_project container + +%{!?phpdir: %global phpdir %{_datadir}/php} + +Name: php-%{pk_vendor}-%{pk_project} +Version: 1.0.0 +Release: 1%{?dist} +Summary: Common Container Interface + +Group: Development/Libraries +License: MIT +URL: https://github.com/%{gh_owner}/%{gh_project} +Source0: %{url}/archive/%{gh_commit}/%{name}-%{version}-%{gh_commit}.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildArch: noarch +# For tests +BuildRequires: php(language) >= 5.3.0 +BuildRequires: php-cli +BuildRequires: php-composer(fedora/autoloader) + +# From composer.json, "require": { +# "php": ">=5.3.0" +Requires: php(language) >= 5.3.0 +# phpcompatinfo (computed from version 1.0.0) +# +# Autoloader +Requires: php-composer(fedora/autoloader) + +# Composer +Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version} + + +%description +This repository holds all interfaces/classes/traits related to PSR-11. + +Note that this is not a container implementation of its own. + +Autoloader: %{_datadir}/php/Psr/Container/autoload.php + + +%prep +%setup -qn %{gh_project}-%{gh_commit} + +: Create autoloader +cat <<'AUTOLOAD' | tee src/autoload.php + - 1.0.0-1 +- Initial package, version 1.0.0 + -- cgit