From 4b91532fcb07fb501c3950feabb51490c85ab00129eba5ea08ba758c6174ffdf Mon Sep 17 00:00:00 2001 From: Jan Matejek Date: Mon, 19 Jun 2017 11:44:12 +0000 Subject: [PATCH] Accepting request 504524 from home:okurz:matrix-synapse Initial submission, dependency for matrix-synapse OBS-URL: https://build.opensuse.org/request/show/504524 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydenticon?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + pydenticon-0.3.tar.gz | 3 ++ python-pydenticon.changes | 10 ++++++ python-pydenticon.spec | 68 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 105 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pydenticon-0.3.tar.gz create mode 100644 python-pydenticon.changes create mode 100644 python-pydenticon.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/pydenticon-0.3.tar.gz b/pydenticon-0.3.tar.gz new file mode 100644 index 0000000..869cfe3 --- /dev/null +++ b/pydenticon-0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02041c589e629c330e420ded65192c79980b3a68fa91aee6179f46af6ad4e298 +size 26045 diff --git a/python-pydenticon.changes b/python-pydenticon.changes new file mode 100644 index 0000000..f006709 --- /dev/null +++ b/python-pydenticon.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Sun Jun 18 19:44:24 UTC 2017 - okurz@suse.com + +- Convert to singlespec + +------------------------------------------------------------------- +Mon Feb 27 13:49:57 UTC 2017 - okurz@suse.com + +- Initial submission + diff --git a/python-pydenticon.spec b/python-pydenticon.spec new file mode 100644 index 0000000..3bbe743 --- /dev/null +++ b/python-pydenticon.spec @@ -0,0 +1,68 @@ +# +# spec file for package python-pydenticon +# +# 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-%{**}} +%define modname pydenticon +Name: python-%{modname} +Version: 0.3 +Release: 0 +License: BSD-3-Clause +Summary: Library for generating identicons +Url: https://github.com/azaghal/%{modname} +Group: Development/Languages/Python +Source: https://pypi.io/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module base} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module Pillow} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +Requires: python-Pillow + +%python_subpackages + +%description +Pydenticon is a small utility library that can be used for deterministically +generating identicons based on the hash of provided data. + +The implementation is a port of the Sigil identicon implementation from: + +* https://github.com/cupcake/sigil/ + +Pydenticon provides a couple of extensions of its own when compared to the +original Sigil implementation, like: + +* Ability to supply custom digest algorithms (allowing for larger identicons if + digest provides enough entropy). +* Ability to specify a rectangle for identicon size.. + +%prep +%setup -q -n %{modname}-%{version} + +%build +%python_build + +%install +%python_install +%fdupes %{buildroot}%{_prefix} + +%files %{python_files} +%defattr(-,root,root,-) +%{python_sitelib}/* + +%changelog