2012-07-23 11:23:05 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-humanize
|
|
|
|
#
|
2018-12-04 13:32:45 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
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
|
|
|
|
|
|
|
|
2017-07-04 05:22:13 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
%global modname humanize
|
2018-12-10 12:38:04 +00:00
|
|
|
Name: python-humanize
|
2016-01-02 19:13:26 +00:00
|
|
|
Version: 0.5.1
|
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
|
2018-12-10 12:38:04 +00:00
|
|
|
URL: http://github.com/jmoiron/humanize
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/h/humanize/%{modname}-%{version}.tar.gz
|
2017-07-04 05:22:13 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2012-07-23 11:23:05 +00:00
|
|
|
BuildArch: noarch
|
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
|
2017-07-04 05:22:13 +00:00
|
|
|
%python_build
|
2012-07-23 11:23:05 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-04 05:22:13 +00:00
|
|
|
%python_install
|
2018-12-10 12:38:04 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2012-07-23 11:23:05 +00:00
|
|
|
|
2017-07-04 05:22:13 +00:00
|
|
|
%files %{python_files}
|
2018-12-10 12:38:04 +00:00
|
|
|
%license LICENCE
|
|
|
|
%doc README.rst
|
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
|