summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore8
-rw-r--r--Makefile4
-rw-r--r--composer.json74
-rw-r--r--php-oneup-flysystem-bundle.spec203
4 files changed, 289 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..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..1406f1a
--- /dev/null
+++ b/composer.json
@@ -0,0 +1,74 @@
+{
+ "name": "oneup/flysystem-bundle",
+ "type": "symfony-bundle",
+ "description": "Integrates Flysystem filesystem abstraction library to your Symfony2 project.",
+ "keywords": ["symfony2", "flysystem", "filesystem", "abstraction"],
+ "homepage": "http://1up.io",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Jim Schmid",
+ "email": "js@1up.io",
+ "homepage": "http://1up.io",
+ "role": "Developer"
+ },
+ {
+ "name": "David Greminger",
+ "email": "dg@1up.io",
+ "homepage": "http://1up.io",
+ "role": "Developer"
+ }
+ ],
+
+ "require": {
+ "php": "^7.0",
+ "symfony/framework-bundle": "^3.3|^4.0",
+ "league/flysystem": "^1.0.26"
+ },
+
+ "require-dev": {
+ "phpunit/phpunit": "^4.4",
+ "symfony/finder": "^3.3|^4.0",
+ "symfony/browser-kit": "^3.3|^4.0",
+ "symfony/asset": "^3.3|^4.0",
+ "symfony/templating": "^3.3|^4.0",
+ "symfony/translation": "^3.3|^4.0",
+ "league/flysystem-aws-s3-v2": "^1.0",
+ "league/flysystem-cached-adapter": "^1.0",
+ "spatie/flysystem-dropbox": "^1.0",
+ "league/flysystem-gridfs": "^1.0",
+ "league/flysystem-memory": "^1.0",
+ "league/flysystem-rackspace": "^1.0",
+ "league/flysystem-sftp": "^1.0",
+ "league/flysystem-webdav": "^1.0",
+ "league/flysystem-ziparchive": "^1.0",
+ "twistor/flysystem-stream-wrapper": "^1.0",
+ "litipk/flysystem-fallback-adapter": "^0.1",
+ "jenko/flysystem-gaufrette": "^1.0",
+ "superbalist/flysystem-google-storage": "^4.0",
+ "league/flysystem-replicate-adapter": "^1.0"
+ },
+
+ "suggest": {
+ "ext-fileinfo": "Required for MimeType",
+ "ext-ftp": "Required for FTP and SFTP",
+ "league/flysystem-aws-s3-v2": "Use S3 storage with AWS SDK v2",
+ "league/flysystem-aws-s3-v3": "Use S3 storage with AWS SDK v3",
+ "league/flysystem-cached-adapter": "Flysystem adapter decorator for metadata caching",
+ "spatie/flysystem-dropbox": "Use Dropbox storage",
+ "league/flysystem-gridfs": "Allows you to use GridFS adapter",
+ "league/flysystem-rackspace": "Allows you to use Rackspace Cloud Files",
+ "league/flysystem-sftp": "Allows SFTP server storage via phpseclib",
+ "league/flysystem-webdav": "Allows you to use WebDAV storage",
+ "league/flysystem-ziparchive": "Allows you to use ZipArchive adapter",
+ "league/flysystem-replicate-adapter": "Allows you to use the Replicate adapter from Flysystem",
+ "twistor/flysystem-stream-wrapper": "Allows you to use stream wrapper",
+ "litipk/flysystem-fallback-adapter": "Allows you to use a fallback filesystem",
+ "jenko/flysystem-gaufrette": "Allows you to use gaufrette adapter",
+ "superbalist/flysystem-google-storage": "Allows you to use Google Cloud Storage buckets"
+ },
+
+ "autoload": {
+ "psr-4": { "Oneup\\FlysystemBundle\\": "" }
+ }
+}
diff --git a/php-oneup-flysystem-bundle.spec b/php-oneup-flysystem-bundle.spec
new file mode 100644
index 0000000..38cbd63
--- /dev/null
+++ b/php-oneup-flysystem-bundle.spec
@@ -0,0 +1,203 @@
+# remirepo/fedora spec file for php-oneup-flysystem-bundle
+#
+# Copyright (c) 2018 Remi Collet
+# License: CC-BY-SA
+# http://creativecommons.org/licenses/by-sa/4.0/
+#
+# Please, preserve the changelog entries
+#
+# tag + 1 commit to have the Symfony4 fix
+%global gh_commit d0117d2f265e9378a4226e9c652e1b9aa357c409
+%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
+%global gh_owner 1up-lab
+%global gh_project OneupFlysystemBundle
+# Packagist
+%global pk_vendor oneup
+%global pk_project flysystem-bundle
+# Namespace
+%global ns_vendor Oneup
+%global ns_project FlysystemBundle
+%global php_home %{_datadir}/php
+%global with_tests 0%{!?_without_tests:1}
+
+Name: php-%{pk_vendor}-%{pk_project}
+Version: 3.0.2
+Release: 1%{?gh_date:.%{gh_date}git%{gh_short}}%{?dist}
+Summary: Conversion of unicode, HTML and shortcode emoji
+
+License: MIT
+URL: https://github.com/%{gh_owner}/%{gh_project}
+Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{?gh_short}.tar.gz
+
+BuildArch: noarch
+%if %{with_tests}
+# For tests
+BuildRequires: php(language) >= 7.0
+BuildRequires: php-reflection
+BuildRequires: php-simplexml
+BuildRequires: php-ftp
+BuildRequires: php-spl
+%if 0%{?fedora} >= 27 || 0%{?rhel} >=8
+BuildRequires: (php-composer(symfony/framework-bundle) >= 3.3 with php-composer(symfony/framework-bundle) < 5)
+BuildRequires: (php-composer(league/flysystem) >= 1.0.26 with php-composer(league/flysystem) < 2)
+%else
+BuildRequires: php-symfony3-framework-bundle >= 3.3
+BuildRequires: php-league-flysystem >= 1.0.26
+%endif
+# From composer.json, "require-dev": {
+# "require-dev": {
+# "phpunit/phpunit": "^4.4",
+# "symfony/finder": "^3.3|^4.0",
+# "symfony/browser-kit": "^3.3|^4.0",
+# "symfony/asset": "^3.3|^4.0",
+# "symfony/templating": "^3.3|^4.0",
+# "symfony/translation": "^3.3|^4.0",
+# "league/flysystem-aws-s3-v2": "^1.0",
+# "league/flysystem-cached-adapter": "^1.0",
+# "spatie/flysystem-dropbox": "^1.0",
+# "league/flysystem-gridfs": "^1.0",
+# "league/flysystem-memory": "^1.0",
+# "league/flysystem-rackspace": "^1.0",
+# "league/flysystem-sftp": "^1.0",
+# "league/flysystem-webdav": "^1.0",
+# "league/flysystem-ziparchive": "^1.0",
+# "twistor/flysystem-stream-wrapper": "^1.0",
+# "litipk/flysystem-fallback-adapter": "^0.1",
+# "jenko/flysystem-gaufrette": "^1.0",
+# "superbalist/flysystem-google-storage": "^4.0",
+# "league/flysystem-replicate-adapter": "^1.0"
+%global phpunit %{_bindir}/phpunit
+%if 0%{?fedora} >= 27 || 0%{?rhel} >=8
+BuildRequires: (php-composer(symfony/finder) >= 3.3 with php-composer(symfony/finder) < 5)
+BuildRequires: (php-composer(symfony/browser-kit) >= 3.3 with php-composer(symfony/browser-kit) < 5)
+BuildRequires: (php-composer(symfony/asset) >= 3.3 with php-composer(symfony/asset) < 5)
+BuildRequires: (php-composer(symfony/templating) >= 3.3 with php-composer(symfony/templating) < 5)
+BuildRequires: (php-composer(symfony/translation) >= 3.3 with php-composer(symfony/translation) < 5)
+%else
+BuildRequires: php-symfony3-finder >= 3.3
+BuildRequires: php-symfony3-browser-kit >= 3.3
+BuildRequires: php-symfony3-asset >= 3.3
+BuildRequires: php-symfony3-templating >= 3.3
+BuildRequires: php-symfony3-translation >= 3.3
+%endif
+BuildRequires: %{phpunit}
+# Autoloader
+BuildRequires: php-composer(fedora/autoloader)
+%endif
+
+# From composer.json, "require": {
+# "php": "^7.0",
+# "symfony/framework-bundle": "^3.3|^4.0",
+# "league/flysystem": "^1.0.26"
+Requires: php(language) >= 7.0
+%if 0%{?fedora} >= 27 || 0%{?rhel} >=8
+Requires: (php-composer(symfony/framework-bundle) >= 3.3 with php-composer(symfony/framework-bundle) < 5)
+Requires: (php-composer(league/flysystem) >= 1.0.26 with php-composer(league/flysystem) < 2)
+%else
+Requires: php-symfony3-framework-bundle >= 3.3
+Requires: php-league-flysystem >= 1.0.26
+%endif
+# From phpcompatinfo report for version 3.0.2
+Requires: php-reflection
+Requires: php-simplexml
+Requires: php-ftp
+Requires: php-spl
+# Autoloader
+Requires: php-composer(fedora/autoloader)
+
+Provides: php-composer(%{pk_vendor}/%{pk_project}) = %{version}
+
+
+%description
+A PHP library simplifying the conversion of unicode, HTML and shortcode emoji.
+
+Autoloader: %{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php
+
+
+%prep
+%setup -q -n %{gh_project}-%{gh_commit}
+
+
+%build
+: Create autoloader
+cat <<'AUTOLOAD' | tee autoload.php
+<?php
+/* Autoloader for %{name} and its dependencies */
+require_once '%{_datadir}/php/Fedora/Autoloader/autoload.php';
+
+\Fedora\Autoloader\Autoload::addPsr4('%{ns_vendor}\\%{ns_project}\\', __DIR__);
+\Fedora\Autoloader\Dependencies::required([
+ [
+ '%{_datadir}/php/Symfony4/Bundle/FrameworkBundle/autoload.php',
+ '%{_datadir}/php/Symfony3/Bundle/FrameworkBundle/autoload.php',
+ ],
+ '%{_datadir}/php/League/Flysystem/autoload.php',
+]);
+AUTOLOAD
+
+
+%install
+mkdir -p %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}
+cp -p *php %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/
+cp -pr DependencyInjection %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/DependencyInjection
+cp -pr StreamWrapper %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/StreamWrapper
+cp -pr Resources %{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/Resources
+
+
+%check
+%if %{with_tests}
+cat << 'EOF' | tee Tests/bootstrap.php
+<?php
+require_once '%{buildroot}%{_datadir}/php/%{ns_vendor}/%{ns_project}/autoload.php';
+\Fedora\Autoloader\Autoload::addPsr4('%{ns_vendor}\\%{ns_project}\\', dirname(__DIR__));
+\Fedora\Autoloader\Dependencies::required([
+ [
+ '%{_datadir}/php/Symfony4/Component/Finder/autoload.php',
+ '%{_datadir}/php/Symfony3/Component/Finder/autoload.php',
+ ], [
+ '%{_datadir}/php/Symfony4/Component/BrowserKit/autoload.php',
+ '%{_datadir}/php/Symfony3/Component/BrowserKit/autoload.php',
+ ], [
+ '%{_datadir}/php/Symfony4/Component/Asset/autoload.php',
+ '%{_datadir}/php/Symfony3/Component/Asset/autoload.php',
+ ], [
+ '%{_datadir}/php/Symfony4/Component/Templating/autoload.php',
+ '%{_datadir}/php/Symfony3/Component/Templating/autoload.php',
+ ], [
+ '%{_datadir}/php/Symfony4/Component/Translation/autoload.php',
+ '%{_datadir}/php/Symfony3/Component/Translation/autoload.php',
+ ],
+]);
+EOF
+
+ret=0
+for cmd in php php71 php72 php73; do
+ rm -rf Tests/App/cache
+ if which $cmd; then
+ $cmd %{phpunit} \
+ --no-coverage \
+ --verbose
+ fi
+done
+exit $ret
+%else
+: Test suite disabled
+%endif
+
+
+%files
+%{!?_licensedir:%global license %%doc}
+%license Resources/meta/LICENSE
+%doc composer.json
+%doc *.md
+%doc Resources/doc
+%dir %{php_home}/%{ns_vendor}/
+ %{php_home}/%{ns_vendor}/%{ns_project}
+%exclude %{php_home}/%{ns_vendor}/%{ns_project}/Resources/doc
+%exclude %{php_home}/%{ns_vendor}/%{ns_project}/Resources/meta
+
+
+%changelog
+* Wed Nov 28 2018 Remi Collet <remi@remirepo.net> - 3.0.2-1
+- initial package, version 3.0.2
+- add upstream patch for Symfony4