diff --git a/python-humanize.changes b/python-humanize.changes index 896394a..7e57a15 100644 --- a/python-humanize.changes +++ b/python-humanize.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Mon Dec 10 12:37:51 UTC 2018 - Tomáš Chvátal + +- Fix fdupes call +- Fix Source url + +------------------------------------------------------------------- +Tue Dec 4 12:49:01 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + ------------------------------------------------------------------- Sat Jul 1 14:54:14 UTC 2017 - okurz@suse.com diff --git a/python-humanize.spec b/python-humanize.spec index 7734901..98ef554 100644 --- a/python-humanize.spec +++ b/python-humanize.spec @@ -1,7 +1,7 @@ # # spec file for package python-humanize # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -12,32 +12,24 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} - -Name: python-humanize %global modname humanize +Name: python-humanize Version: 0.5.1 Release: 0 Summary: Python humanize utilities License: MIT Group: Development/Languages/Python -Url: http://github.com/jmoiron/%{modname} -Source: https://pypi.io/packages/source/h/%{modname}/%{modname}-%{version}.tar.gz -BuildRequires: %{python_module devel} +URL: http://github.com/jmoiron/humanize +Source: https://files.pythonhosted.org/packages/source/h/humanize/%{modname}-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif - %python_subpackages %description @@ -53,12 +45,11 @@ readable size or throughput. %install %python_install -%find_lang humanize -%fdupes %{buildroot}%{_prefix} +%python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} -%defattr(-,root,root,-) -%doc LICENCE README.rst +%license LICENCE +%doc README.rst %{python_sitelib}/* %{python_sitelib}/humanize/locale/*