1
0

Accepting request 656826 from devel:languages:python

- Fix fdupes call
- Fix Source url

- Remove superfluous devel dependency for noarch package

OBS-URL: https://build.opensuse.org/request/show/656826
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-humanize?expand=0&rev=2
This commit is contained in:
Dominique Leuenberger 2019-01-03 17:06:21 +00:00 committed by Git OBS Bridge
commit 9526cd7ad0
2 changed files with 19 additions and 17 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
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>
- Remove superfluous devel dependency for noarch package
-------------------------------------------------------------------
Sat Jul 1 14:54:14 UTC 2017 - okurz@suse.com

View File

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