From 707458ebf0c4aa5ad6b70c547a43d23a82f3340a4a70de5c7186b8b82d232e82 Mon Sep 17 00:00:00 2001 From: Oliver Kurz Date: Thu, 13 Jul 2017 19:41:19 +0000 Subject: [PATCH] Add LICENSE and README.rst OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydenticon?expand=0&rev=2 --- python-pydenticon.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/python-pydenticon.spec b/python-pydenticon.spec index 3bbe743..af5621a 100644 --- a/python-pydenticon.spec +++ b/python-pydenticon.spec @@ -13,6 +13,7 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -20,14 +21,14 @@ Name: python-%{modname} Version: 0.3 Release: 0 -License: BSD-3-Clause Summary: Library for generating identicons -Url: https://github.com/azaghal/%{modname} +License: BSD-3-Clause Group: Development/Languages/Python +Url: https://github.com/azaghal/%{modname} Source: https://pypi.io/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module Pillow} BuildRequires: %{python_module base} BuildRequires: %{python_module setuptools} -BuildRequires: %{python_module Pillow} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -59,10 +60,11 @@ original Sigil implementation, like: %install %python_install -%fdupes %{buildroot}%{_prefix} +%python_expand %fdupes %{buildroot}%{$python_sitelib}/%{modname} %files %{python_files} %defattr(-,root,root,-) +%doc README.rst LICENSE %{python_sitelib}/* %changelog