2017-06-19 11:44:12 +00:00
|
|
|
#
|
|
|
|
# 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/
|
2017-07-13 19:41:19 +00:00
|
|
|
#
|
2017-06-19 11:44:12 +00:00
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%define modname pydenticon
|
|
|
|
Name: python-%{modname}
|
|
|
|
Version: 0.3
|
|
|
|
Release: 0
|
|
|
|
Summary: Library for generating identicons
|
2017-07-13 19:41:19 +00:00
|
|
|
License: BSD-3-Clause
|
2017-06-19 11:44:12 +00:00
|
|
|
Group: Development/Languages/Python
|
2017-07-13 19:41:19 +00:00
|
|
|
Url: https://github.com/azaghal/%{modname}
|
2017-06-19 11:44:12 +00:00
|
|
|
Source: https://pypi.io/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
|
2017-07-13 19:41:19 +00:00
|
|
|
BuildRequires: %{python_module Pillow}
|
2017-06-19 11:44:12 +00:00
|
|
|
BuildRequires: %{python_module base}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
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
|
2017-07-13 19:41:19 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname}
|
2017-06-19 11:44:12 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%defattr(-,root,root,-)
|
2017-07-13 19:41:19 +00:00
|
|
|
%doc README.rst LICENSE
|
2017-06-19 11:44:12 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|