summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-01-16 12:00:58 +0100
committerRemi Collet <remi@remirepo.net>2020-01-16 12:00:58 +0100
commit0c5582c4fb6f24a22a7f9f992d65fdc7d4a21023 (patch)
treeef407917bf61908da01d0606fbd50da006f7ec65
duplicate ZF
-rw-r--r--.gitignore8
-rw-r--r--Makefile3
-rw-r--r--composer.json32
-rw-r--r--php-laminas-mvc-plugins.spec110
4 files changed, 153 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..fc9aa8c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+clog
+package-*.xml
+*.tgz
+*.tar.gz
+*.tar.xz
+*.tar.xz.asc
+*.src.rpm
+*/*rpm
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..a2cd659
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,3 @@
+SRCDIR := $(shell pwd)
+NAME := $(shell basename $(SRCDIR))
+include ../../../common/Makefile
diff --git a/composer.json b/composer.json
new file mode 100644
index 0000000..ce9b624
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,32 @@
+{
+ "name": "zendframework/zend-mvc-plugins",
+ "description": "Collection of all stable zend-mvc plugins served via separate packages.",
+ "type": "metapackage",
+ "license": "BSD-3-Clause",
+ "keywords": [
+ "zf2",
+ "mvc",
+ "plugins"
+ ],
+ "homepage": "https://github.com/zendframework/zend-mvc-plugins",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0-dev"
+ },
+ "zf": {
+ "component": [
+ "Zend\\Mvc\\Plugin\\FilePrg",
+ "Zend\\Mvc\\Plugin\\FlashMessenger",
+ "Zend\\Mvc\\Plugin\\Identity",
+ "Zend\\Mvc\\Plugin\\Prg"
+ ]
+ }
+ },
+ "require": {
+ "php": "^5.6 || ^7.0",
+ "zendframework/zend-mvc-plugin-fileprg": "^1.0",
+ "zendframework/zend-mvc-plugin-flashmessenger": "^1.0",
+ "zendframework/zend-mvc-plugin-identity": "^1.0",
+ "zendframework/zend-mvc-plugin-prg": "^1.0"
+ }
+}
diff --git a/php-laminas-mvc-plugins.spec b/php-laminas-mvc-plugins.spec
new file mode 100644
index 0000000..5bf1432
--- /dev/null
+++ b/php-laminas-mvc-plugins.spec
@@ -0,0 +1,110 @@
+# remirepo/Fedora spec file for php-zendframework-zend-mvc-plugins
+#
+# Copyright (c) 2016-2018 Remi Collet
+# License: CC-BY-SA
+# http://creativecommons.org/licenses/by-sa/4.0/
+#
+# Please, preserve the changelog entries
+#
+%global gh_commit b00cda46b0a95cbd32ea0743d6d7dc3fd2263f1b
+%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
+%global gh_owner zendframework
+%global gh_project zend-mvc-plugins
+%global php_home %{_datadir}/php
+%global library Plugin
+
+Name: php-%{gh_owner}-%{gh_project}
+Version: 1.0.1
+Release: 5%{?dist}
+Summary: Zend Framework Mvc-Plugins component
+
+License: BSD
+URL: https://framework.zend.com/
+Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz
+
+BuildArch: noarch
+# For test
+BuildRequires: php-cli
+BuildRequires: php-autoloader(%{gh_owner}/zend-mvc-plugin-fileprg) >= 1.0
+BuildRequires: php-autoloader(%{gh_owner}/zend-mvc-plugin-flashmessenger) >= 1.0
+BuildRequires: php-autoloader(%{gh_owner}/zend-mvc-plugin-identity) >= 1.0
+BuildRequires: php-autoloader(%{gh_owner}/zend-mvc-plugin-prg) >= 1.0
+
+# From composer, "require": {
+# "php": "^5.6 || ^7.0",
+# "zendframework/zend-mvc-plugin-fileprg": "^1.0",
+# "zendframework/zend-mvc-plugin-flashmessenger": "^1.0",
+# "zendframework/zend-mvc-plugin-identity": "^1.0",
+# "zendframework/zend-mvc-plugin-prg": "^1.0"
+Requires: php(language) >= 5.6
+Requires: php-autoloader(%{gh_owner}/zend-mvc-plugin-fileprg) >= 1.0
+Requires: php-autoloader(%{gh_owner}/zend-mvc-plugin-fileprg) < 2
+Requires: php-autoloader(%{gh_owner}/zend-mvc-plugin-flashmessenger) >= 1.0
+Requires: php-autoloader(%{gh_owner}/zend-mvc-plugin-flashmessenger) < 2
+Requires: php-autoloader(%{gh_owner}/zend-mvc-plugin-identity) >= 1.0
+Requires: php-autoloader(%{gh_owner}/zend-mvc-plugin-identity) < 2
+Requires: php-autoloader(%{gh_owner}/zend-mvc-plugin-prg) >= 1.0
+Requires: php-autoloader(%{gh_owner}/zend-mvc-plugin-prg) < 2
+
+Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version}
+Provides: php-autoloader(%{gh_owner}/%{gh_project}) = %{version}
+
+
+%description
+zend-mvc-plugins is a metapackage that provides a single package for
+installing all official zend-mvc plugins shipped as separate packages
+under the zendframework organization. Currently, these include:
+
+* zendframework/zend-mvc-plugin-fileprg
+* zendframework/zend-mvc-plugin-flashmessenger
+* zendframework/zend-mvc-plugin-identity
+* zendframework/zend-mvc-plugin-prg
+
+
+%prep
+%setup -q -n %{gh_project}-%{gh_commit}
+
+mv LICENSE.md LICENSE
+
+
+%build
+: Create autoloader
+cat << 'EOF' | tee autoload.php
+<?php
+require_once '/usr/share/php/Fedora/Autoloader/autoload.php';
+\Fedora\Autoloader\Dependencies::required([
+ '%{php_home}/Zend/Mvc/Plugin/FilePrg/autoload.php',
+ '%{php_home}/Zend/Mvc/Plugin/FlashMessenger/autoload.php',
+ '%{php_home}/Zend/Mvc/Plugin/Identity/autoload.php',
+ '%{php_home}/Zend/Mvc/Plugin/Prg/autoload.php',
+]);
+EOF
+
+
+%install
+install -Dpm 644 autoload.php %{buildroot}%{php_home}/Zend/Mvc/%{library}/autoload.php
+
+
+%check
+: Ensure autoloader works
+php -r 'require "%{buildroot}%{php_home}/Zend/Mvc/%{library}/autoload.php";'
+
+
+%files
+%{!?_licensedir:%global license %%doc}
+%license LICENSE
+%doc *.md
+%doc composer.json
+%{php_home}/Zend/Mvc/%{library}/autoload.php
+
+
+%changelog
+* Tue Dec 12 2017 Remi Collet <remi@remirepo.net> - 1.0.1-5
+- switch to fedora/autoloader
+
+* Tue Jul 26 2016 Remi Collet <remi@fedoraproject.org> - 1.0.1-2
+- fix summary and description
+
+* Wed Jun 29 2016 Remi Collet <remi@fedoraproject.org> - 1.0.1-1
+- initial package
+