forked from pool/python-humanhash3
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
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -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
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
24
UNLICENSE
Normal file
24
UNLICENSE
Normal file
@@ -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 <http://unlicense.org/>
|
||||
21
convert-to-ascii.patch
Normal file
21
convert-to-ascii.patch
Normal file
@@ -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
|
||||
------------
|
||||
3
humanhash3-0.0.6.tar.gz
Normal file
3
humanhash3-0.0.6.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:89ae15f6034bdb07e53ac2b2e246cc7131940766d2b2b70b7398dd27c640b1ab
|
||||
size 5401
|
||||
11
python-humanhash3.changes
Normal file
11
python-humanhash3.changes
Normal file
@@ -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
|
||||
57
python-humanhash3.spec
Normal file
57
python-humanhash3.spec
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user