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