From 9faae599b63c5af22f166f748ff99e073c39a5da36acc288733f4748557dac99 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 4 Dec 2018 13:32:45 +0000 Subject: [PATCH 1/2] Remove superfluous devel dependency for noarch package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanize?expand=0&rev=7 --- python-humanize.changes | 5 +++++ python-humanize.spec | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/python-humanize.changes b/python-humanize.changes index 896394a..1b39727 100644 --- a/python-humanize.changes +++ b/python-humanize.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +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..6df41c5 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,7 +12,7 @@ # 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/ # @@ -27,7 +27,6 @@ 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} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros From ff48e71f21c1416bcaced650b2f6508d7defecadad846e1181653b5e7b4c9b3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 10 Dec 2018 12:38:04 +0000 Subject: [PATCH 2/2] - Fix fdupes call - Fix Source url OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-humanize?expand=0&rev=8 --- python-humanize.changes | 6 ++++++ python-humanize.spec | 20 ++++++-------------- 2 files changed, 12 insertions(+), 14 deletions(-) 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/*