2012-07-23 13:23:05 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-humanize
|
|
|
|
#
|
2020-03-31 07:52:58 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2012-07-23 13:23:05 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-12-04 14:32:45 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-24 13:06:44 +02:00
|
|
|
#
|
2012-07-23 13:23:05 +02:00
|
|
|
|
|
|
|
|
2017-07-04 07:22:13 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2020-03-31 07:52:58 +02:00
|
|
|
%define skip_python2 1
|
2017-07-04 07:22:13 +02:00
|
|
|
%global modname humanize
|
2018-12-10 13:38:04 +01:00
|
|
|
Name: python-humanize
|
2020-09-28 13:52:32 +02:00
|
|
|
Version: 2.6.0
|
2012-07-23 13:23:05 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python humanize utilities
|
2013-10-24 13:06:44 +02:00
|
|
|
License: MIT
|
2012-07-23 13:23:05 +02:00
|
|
|
Group: Development/Languages/Python
|
2018-12-10 13:38:04 +01:00
|
|
|
URL: http://github.com/jmoiron/humanize
|
2020-03-31 07:52:58 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/h/humanize/humanize-%{version}.tar.gz
|
|
|
|
BuildRequires: %{python_module setuptools_scm}
|
2017-07-04 07:22:13 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2019-06-05 12:22:41 +02:00
|
|
|
# SECTION test requirements
|
2020-03-31 07:52:58 +02:00
|
|
|
BuildRequires: %{python_module freezegun}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2019-06-05 12:22:41 +02:00
|
|
|
# /SECTION
|
2012-07-23 13:23:05 +02:00
|
|
|
BuildArch: noarch
|
2017-07-04 07:22:13 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
2012-07-23 13:23:05 +02:00
|
|
|
%description
|
|
|
|
This modest package contains various common humanization utilities, like turning
|
|
|
|
a number into a fuzzy human readable duration ('3 minutes ago') or into a human
|
|
|
|
readable size or throughput.
|
|
|
|
|
|
|
|
%prep
|
2017-07-04 07:22:13 +02:00
|
|
|
%setup -q -n %{modname}-%{version}
|
2012-07-23 13:23:05 +02:00
|
|
|
|
|
|
|
%build
|
2017-07-04 07:22:13 +02:00
|
|
|
%python_build
|
2012-07-23 13:23:05 +02:00
|
|
|
|
|
|
|
%install
|
2017-07-04 07:22:13 +02:00
|
|
|
%python_install
|
2018-12-10 13:38:04 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-07-23 13:23:05 +02:00
|
|
|
|
2019-06-05 12:22:41 +02:00
|
|
|
%check
|
2020-06-04 08:45:33 +02:00
|
|
|
%pytest
|
2019-06-05 12:22:41 +02:00
|
|
|
|
2017-07-04 07:22:13 +02:00
|
|
|
%files %{python_files}
|
2018-12-10 13:38:04 +01:00
|
|
|
%license LICENCE
|
2020-03-31 07:52:58 +02:00
|
|
|
%doc README.md
|
2012-07-23 13:23:05 +02:00
|
|
|
%{python_sitelib}/*
|
2016-01-02 20:13:26 +01:00
|
|
|
%{python_sitelib}/humanize/locale/*
|
2012-07-23 13:23:05 +02:00
|
|
|
|
|
|
|
%changelog
|