From 0ad20e6701bb76fb8ea4d5819d8f58e3f9a8b7be Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sun, 30 Apr 2017 07:13:22 +0200 Subject: import from Fedora --- php-cache-tag-interop.spec | 113 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 php-cache-tag-interop.spec diff --git a/php-cache-tag-interop.spec b/php-cache-tag-interop.spec new file mode 100644 index 0000000..63046e1 --- /dev/null +++ b/php-cache-tag-interop.spec @@ -0,0 +1,113 @@ +# +# Fedora spec file for php-cache-tag-interop +# +# Copyright (c) 2017 Shawn Iwinski +# +# License: MIT +# http://opensource.org/licenses/MIT +# +# Please preserve changelog entries +# + +%global github_owner php-cache +%global github_name tag-interop +%global github_version 1.0.0 +%global github_commit c7496dd81530f538af27b4f2713cde97bc292832 + +%global composer_vendor cache +%global composer_project tag-interop + +# "php": "^5.5 || ^7.0" +%global php_min_ver 5.5 +# "psr/cache": "^1.0" +%global psr_cache_min_ver 1.0 +%global psr_cache_max_ver 2.0 + +%{!?phpdir: %global phpdir %{_datadir}/php} + +Name: php-%{composer_vendor}-%{composer_project} +Version: %{github_version} +Release: 1%{?github_release}%{?dist} +Summary: Framework interoperable interfaces for tags + +Group: Development/Libraries +License: MIT +URL: http://www.php-cache.com +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 +## composer.json +BuildRequires: php(language) >= %{php_min_ver} +BuildRequires: php-composer(psr/cache) >= %{psr_cache_min_ver} +BuildRequires: php-composer(psr/cache) < %{psr_cache_max_ver} +## Autoloader +BuildRequires: php-composer(fedora/autoloader) + +# composer.json +Requires: php(language) >= %{php_min_ver} +Requires: php-composer(psr/cache) >= %{psr_cache_min_ver} +Requires: php-composer(psr/cache) < %{psr_cache_max_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 two interfaces for tagging. These interfaces will make +their way into PHP Fig. Representatives from Symfony, PHP-cache and Drupal has +worked together to agree on these interfaces. + +Autoloader: %{phpdir}/Cache/TagInterop/autoload.php + + +%prep +%setup -qn %{github_name}-%{github_commit} + + +%build +: Create autoloader +cat <<'AUTOLOAD' | tee autoload.php + - 1.0.0-1 +- Initial package -- cgit