From 3757753802e3074d6c59ca9e36e955abebe82120 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 30 Apr 2017 07:17:19 +0200 Subject: import fro Fedora --- Makefile | 4 ++ php-psr-simple-cache.spec | 113 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 117 insertions(+) create mode 100644 Makefile create mode 100644 php-psr-simple-cache.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/php-psr-simple-cache.spec b/php-psr-simple-cache.spec new file mode 100644 index 0000000..488383b --- /dev/null +++ b/php-psr-simple-cache.spec @@ -0,0 +1,113 @@ +# remirepo spec file for php-psr-simple-cache, from: +# +# Fedora spec file for php-psr-simple-cache +# +# Copyright (c) 2017 Shawn Iwinski +# +# License: MIT +# http://opensource.org/licenses/MIT +# +# Please preserve changelog entries +# + +%global github_owner php-fig +%global github_name simple-cache +%global github_version 1.0.0 +%global github_commit 753fa598e8f3b9966c886fe13f370baa45ef0e24 + +%global composer_vendor psr +%global composer_project simple-cache + +# "php": ">=5.3.0" +%global php_min_ver 5.3.0 + +%{!?phpdir: %global phpdir %{_datadir}/php} + +Name: php-%{composer_vendor}-%{composer_project} +Version: %{github_version} +Release: 1%{?github_release}%{?dist} +Summary: Common interfaces for simple caching (PSR-16) + +Group: Development/Libraries +License: MIT +URL: http://www.php-fig.org/psr/psr-16/ +Source0: https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz + +BuildArch: noarch +# Minimal autoloader test +BuildRequires: php-cli >= %{php_min_ver} +# Autoloader +BuildRequires: php-composer(fedora/autoloader) + +# composer.json +Requires: php(language) >= %{php_min_ver} +# phpcompatinfo (computed from version 1.0.0) +# +# Autoloader +Requires: php-composer(fedora/autoloader) + +# Composer +Provides: php-composer(%{composer_vendor}/%{composer_project}) = %{version} + +%description +This repository holds all interfaces related to PSR-16. + +Note that this is not a cache implementation of its own. It is merely an +interface that describes a cache implementation. See the specification [1] +for more details. + +You can find implementations of the specification by looking for packages +providing the psr/simple-cache-implementation [2] virtual package. + +Autoloader: %{phpdir}/Psr/SimpleCache/autoload.php + +[1] https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-16-simple-cache.md +[2] https://packagist.org/providers/psr/simple-cache-implementation + + +%prep +%setup -qn %{github_name}-%{github_commit} + + +%build +: Create autoloader +cat <<'AUTOLOAD' | tee src/autoload.php + - 1.0.0-1 +- add backport stuff + +* Fri Apr 14 2017 Shawn Iwinski - 1.0.0-1 +- Initial package -- cgit