1
0

- Fix fdupes call

- Fix Source url

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanize?expand=0&rev=8
This commit is contained in:
Tomáš Chvátal 2018-12-10 12:38:04 +00:00 committed by Git OBS Bridge
parent 9faae599b6
commit ff48e71f21
2 changed files with 12 additions and 14 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Dec 10 12:37:51 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Fix fdupes call
- Fix Source url
-------------------------------------------------------------------
Tue Dec 4 12:49:01 UTC 2018 - Matej Cepl <mcepl@suse.com>

View File

@ -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/*