From ff97d1fd76fd980bbdaa2ca92c52e5560df8bf3f49db5580ab53b43de198e68f Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Wed, 26 Aug 2015 15:47:37 +0000 Subject: [PATCH] Accepting request 326630 from home:ocfreitag:branches:devel:languages:python Installed doc files properly, thanks for consideration :) OBS-URL: https://build.opensuse.org/request/show/326630 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hpack?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + hpack-1.1.0.tar.gz | 3 +++ python-hpack.changes | 10 +++++++ python-hpack.spec | 64 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 hpack-1.1.0.tar.gz create mode 100644 python-hpack.changes create mode 100644 python-hpack.spec 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/hpack-1.1.0.tar.gz b/hpack-1.1.0.tar.gz new file mode 100644 index 0000000..3146fa2 --- /dev/null +++ b/hpack-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a4832961ac0acb0d124d9db0bcb5ab44d61c8d8466c9a3b59d49aceeca91d11 +size 18013 diff --git a/python-hpack.changes b/python-hpack.changes new file mode 100644 index 0000000..e773890 --- /dev/null +++ b/python-hpack.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Tue Aug 25 12:39:56 UTC 2015 - freitag@owncloud.com + +- Add forgotten doc files to filelist + +------------------------------------------------------------------- +Mon Aug 24 18:33:25 UTC 2015 - freitag@opensuse.org + +- Initial package version 1.1.0 + diff --git a/python-hpack.spec b/python-hpack.spec new file mode 100644 index 0000000..a8bc8be --- /dev/null +++ b/python-hpack.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-hpack +# +# Copyright (c) 2015 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/ +# + + +Name: python-hpack +Version: 1.1.0 +Release: 0 +Summary: Pure-Python HPACK header compression +License: MIT +Group: Development/Languages/Python +Url: https://pypi.python.org/pypi/hpack +Source: https://pypi.python.org/packages/source/h/hpack/hpack-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: fdupes +BuildRequires: python-devel +BuildRequires: python-setuptools + +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch +%endif + +%description +This module contains a pure-Python HTTP/2 header encoding (HPACK) logic for use in +Python programs that implement HTTP/2. It also contains a compatibility layer that +automatically enables the use of nghttp2 if it’s available. + +%prep +%setup -q -n hpack-%{version} + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root %{buildroot} + +# cleanup +rm -rf %{buildroot}%{python_sitelib}/test +rm -rf %{buildroot}%{python_sitelib}/hpack/__pycache__ + +%fdupes %{buildroot} + +%files +%defattr(-,root,root,-) +%{python_sitelib}/hpack +%{python_sitelib}/hpack-%{version}*egg* +%doc LICENSE HISTORY.rst CONTRIBUTORS.rst README.rst + +%changelog