From f0623850123e26b91c6e4593018a82f4f56a33cbdc411986c41eaf4f707e8da1 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 8 Sep 2017 17:17:49 +0000 Subject: [PATCH] Accepting request 522384 from home:TheBlackCat:branches:devel:languages:python singlespec version of python3-zipstream OBS-URL: https://build.opensuse.org/request/show/522384 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zipstream?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + python-zipstream.changes | 4 +++ python-zipstream.spec | 61 ++++++++++++++++++++++++++++++++++++++++ zipstream-1.1.4.tar.gz | 3 ++ 5 files changed, 92 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-zipstream.changes create mode 100644 python-zipstream.spec create mode 100644 zipstream-1.1.4.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-zipstream.changes b/python-zipstream.changes new file mode 100644 index 0000000..876b31b --- /dev/null +++ b/python-zipstream.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Sep 7 22:43:04 UTC 2017 - toddrme2178@gmail.com + +- initial version diff --git a/python-zipstream.spec b/python-zipstream.spec new file mode 100644 index 0000000..4f3a5c3 --- /dev/null +++ b/python-zipstream.spec @@ -0,0 +1,61 @@ +# +# spec file for package python-zipstream +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test +Name: python-zipstream +Version: 1.1.4 +Release: 0 +License: GPL-3.0+ +Summary: Zipfile generator +Url: https://github.com/allanlei/python-zipstream +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/z/zipstream/zipstream-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +%if %{with test} +BuildRequires: %{python_module nose} +%endif +BuildArch: noarch + +%python_subpackages + +%description +zipstream.py is a zip archive generator based on python 3.3's zipfile.py. +It was created to generate a zip file generator for streaming (ie web apps). +This is beneficial for when you want to provide a downloadable archive of a +large collection of regular files, which would be infeasible to generate the +archive prior to downloading or of a very large file that you do not want +to store entirely on disk or on memory. + +%prep +%setup -q -n zipstream-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%defattr(-,root,root,-) +%{python_sitelib}/* + +%changelog diff --git a/zipstream-1.1.4.tar.gz b/zipstream-1.1.4.tar.gz new file mode 100644 index 0000000..e9b29fe --- /dev/null +++ b/zipstream-1.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ef24b9150c93429b172750c4890b5ab28c1317892e11727afeff986ad2a3506 +size 5785