diff --git a/python-humanize.changes b/python-humanize.changes index 1b39727..7e57a15 100644 --- a/python-humanize.changes +++ b/python-humanize.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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 diff --git a/python-humanize.spec b/python-humanize.spec index 6df41c5..98ef554 100644 --- a/python-humanize.spec +++ b/python-humanize.spec @@ -17,26 +17,19 @@ %{?!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 +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 @@ -52,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/*