From 4e4b659bd779adec0e825ef1dcffa07dbcffc78b3207d0a6920b5a01b52b4d78 Mon Sep 17 00:00:00 2001 From: Antonio Larrosa Date: Thu, 3 May 2018 11:05:17 +0000 Subject: [PATCH] Accepting request 603629 from devel:languages:python:misc Move back the package to d:l:p to try to submit it to Factory again OBS-URL: https://build.opensuse.org/request/show/603629 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanhash3?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + UNLICENSE | 24 +++++++++++++++++ convert-to-ascii.patch | 21 +++++++++++++++ humanhash3-0.0.6.tar.gz | 3 +++ python-humanhash3.changes | 11 ++++++++ python-humanhash3.spec | 57 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 140 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 UNLICENSE create mode 100644 convert-to-ascii.patch create mode 100644 humanhash3-0.0.6.tar.gz create mode 100644 python-humanhash3.changes create mode 100644 python-humanhash3.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/UNLICENSE b/UNLICENSE new file mode 100644 index 0000000..3adc6a4 --- /dev/null +++ b/UNLICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/convert-to-ascii.patch b/convert-to-ascii.patch new file mode 100644 index 0000000..7ac96c9 --- /dev/null +++ b/convert-to-ascii.patch @@ -0,0 +1,21 @@ +Index: humanhash3-0.0.6/README.rst +=================================================================== +--- humanhash3-0.0.6.orig/README.rst ++++ humanhash3-0.0.6/README.rst +@@ -37,14 +37,14 @@ Example + Caveats + ------- + +-Don’t store the humanhash output, as its statistical uniqueness is only ++Don't store the humanhash output, as its statistical uniqueness is only + around 1 in 4.3 billion. Its intended use is as a human-readable (and, + most importantly, **memorable**) representation of a longer digest, + unique enough for display in a user interface, where a user may need to + remember or verbally communicate the identity of a hash, without having + to remember a 40-character hexadecimal sequence. Nevertheless, you + should keep original digests around, then pass them through +-``humanize()`` only as you’re displaying them. ++``humanize()`` only as you're displaying them. + + How It Works + ------------ diff --git a/humanhash3-0.0.6.tar.gz b/humanhash3-0.0.6.tar.gz new file mode 100644 index 0000000..0d88eb2 --- /dev/null +++ b/humanhash3-0.0.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89ae15f6034bdb07e53ac2b2e246cc7131940766d2b2b70b7398dd27c640b1ab +size 5401 diff --git a/python-humanhash3.changes b/python-humanhash3.changes new file mode 100644 index 0000000..7837e5d --- /dev/null +++ b/python-humanhash3.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Thu May 3 06:50:18 UTC 2018 - alarrosa@suse.com + +- Fix UNLICENSE link to point to the raw version of the file + +------------------------------------------------------------------- +Tue Feb 27 12:26:46 UTC 2018 - alarrosa@suse.com + +- Initial release of python-humanhash3 +- Add convert-to-ascii.patch to convert the README file to ascii so + python3 doesn't complain when reading it in setup.py diff --git a/python-humanhash3.spec b/python-humanhash3.spec new file mode 100644 index 0000000..ef24440 --- /dev/null +++ b/python-humanhash3.spec @@ -0,0 +1,57 @@ +# +# spec file for package python-humanhash3 +# +# Copyright (c) 2018 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-%{**}} +Name: python-humanhash3 +Version: 0.0.6 +Release: 0 +License: Unlicense +Summary: Human-readable representations of digests +Url: https://github.com/blag/humanhash +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/h/humanhash3/humanhash3-%{version}.tar.gz +Source99: https://raw.githubusercontent.com/blag/humanhash/master/UNLICENSE +Patch0: convert-to-ascii.patch +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildArch: noarch + +%python_subpackages + +%description +humanhash provides human-readable representations of digests. + +%prep +%setup -q -n humanhash3-%{version} +%patch0 -p1 +cp %{SOURCE99} . + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%files %{python_files} +%doc README.rst +%license UNLICENSE +%{python_sitelib}/* + +%changelog