2012-07-23 11:23:05 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-humanize
|
|
|
|
#
|
2023-01-04 20:04:44 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-07-23 11:23:05 +00: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 13:32:45 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-10-24 11:06:44 +00:00
|
|
|
#
|
2012-07-23 11:23:05 +00:00
|
|
|
|
|
|
|
|
2023-09-13 08:19:20 +00:00
|
|
|
%{?sle15_python_module_pythons}
|
2017-07-04 05:22:13 +00:00
|
|
|
%global modname humanize
|
2018-12-10 12:38:04 +00:00
|
|
|
Name: python-humanize
|
2023-11-27 19:02:38 +00:00
|
|
|
Version: 4.9.0
|
2012-07-23 11:23:05 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python humanize utilities
|
2013-10-24 11:06:44 +00:00
|
|
|
License: MIT
|
2012-07-23 11:23:05 +00:00
|
|
|
Group: Development/Languages/Python
|
2023-01-04 20:04:44 +00:00
|
|
|
URL: https://github.com/python-humanize/humanize
|
2020-03-31 05:52:58 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/h/humanize/humanize-%{version}.tar.gz
|
2023-09-13 08:19:20 +00:00
|
|
|
BuildRequires: %{python_module base >= 3.8}
|
|
|
|
BuildRequires: %{python_module hatch_vcs}
|
|
|
|
BuildRequires: %{python_module pip}
|
|
|
|
BuildRequires: %{python_module wheel}
|
2017-07-04 05:22:13 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-10-13 07:20:15 +00:00
|
|
|
BuildArch: noarch
|
2019-06-05 10:22:41 +00:00
|
|
|
# SECTION test requirements
|
2020-03-31 05:52:58 +00:00
|
|
|
BuildRequires: %{python_module freezegun}
|
|
|
|
BuildRequires: %{python_module pytest}
|
2019-06-05 10:22:41 +00:00
|
|
|
# /SECTION
|
2017-07-04 05:22:13 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
2012-07-23 11:23:05 +00: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 05:22:13 +00:00
|
|
|
%setup -q -n %{modname}-%{version}
|
2012-07-23 11:23:05 +00:00
|
|
|
|
|
|
|
%build
|
2023-09-13 08:19:20 +00:00
|
|
|
%pyproject_wheel
|
2012-07-23 11:23:05 +00:00
|
|
|
|
|
|
|
%install
|
2023-09-13 08:19:20 +00:00
|
|
|
%pyproject_install
|
2018-12-10 12:38:04 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-07-23 11:23:05 +00:00
|
|
|
|
2019-06-05 10:22:41 +00:00
|
|
|
%check
|
2020-06-04 06:45:33 +00:00
|
|
|
%pytest
|
2019-06-05 10:22:41 +00:00
|
|
|
|
2017-07-04 05:22:13 +00:00
|
|
|
%files %{python_files}
|
2018-12-10 12:38:04 +00:00
|
|
|
%license LICENCE
|
2020-03-31 05:52:58 +00:00
|
|
|
%doc README.md
|
2012-07-23 11:23:05 +00:00
|
|
|
%{python_sitelib}/*
|
2016-01-02 19:13:26 +00:00
|
|
|
%{python_sitelib}/humanize/locale/*
|
2012-07-23 11:23:05 +00:00
|
|
|
|
|
|
|
%changelog
|