2016-01-20 20:40:49 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-tqdm
|
|
|
|
#
|
2018-03-05 18:21:00 +00:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2016-01-20 20:40:49 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2018-07-14 09:02:23 +00:00
|
|
|
|
2017-07-07 12:56:37 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2018-05-17 19:38:43 +00:00
|
|
|
%define oldpython python
|
2016-01-20 20:40:49 +00:00
|
|
|
Name: python-tqdm
|
2018-07-14 09:02:23 +00:00
|
|
|
Version: 4.23.4
|
2016-01-20 20:40:49 +00:00
|
|
|
Release: 0
|
2017-10-06 14:49:40 +00:00
|
|
|
Summary: An extensible progress meter
|
2018-03-05 18:21:00 +00:00
|
|
|
License: MPL-2.0 AND MIT
|
2016-01-20 20:40:49 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-07-14 09:02:23 +00:00
|
|
|
URL: https://github.com/tqdm/tqdm
|
2016-09-22 20:54:41 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/t/tqdm/tqdm-%{version}.tar.gz
|
2017-07-07 12:56:37 +00:00
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module rpm-macros}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-10-11 06:59:36 +00:00
|
|
|
BuildRequires: fdupes
|
2017-07-07 12:56:37 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-07-14 09:02:23 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
|
|
|
BuildArch: noarch
|
2017-07-07 12:56:37 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module nose}
|
|
|
|
BuildRequires: %{python_module numpy}
|
|
|
|
BuildRequires: %{python_module pandas}
|
|
|
|
# /SECTION
|
|
|
|
%python_subpackages
|
2016-01-20 20:40:49 +00:00
|
|
|
|
|
|
|
%description
|
2017-10-06 14:49:40 +00:00
|
|
|
tqdm lets you output a progress meter from within loops by wrapping
|
|
|
|
any iterable with "tqdm(iterable)".
|
|
|
|
tqdm's overhead is one order of magnitude less than python-progressbar
|
|
|
|
and does not require ncurses.
|
2016-01-20 20:40:49 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n tqdm-%{version}
|
2017-10-11 06:59:36 +00:00
|
|
|
# fix installation directory for man pages
|
|
|
|
sed -i 's#man/man1#share/man/man1#' setup.py
|
2016-01-20 20:40:49 +00:00
|
|
|
|
|
|
|
%build
|
2017-07-07 12:56:37 +00:00
|
|
|
%python_build
|
2016-01-20 20:40:49 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-07 12:56:37 +00:00
|
|
|
%python_install
|
|
|
|
%python_clone -a %{buildroot}%{_bindir}/tqdm
|
2017-10-11 06:59:36 +00:00
|
|
|
%python_clone -a %{buildroot}%{_mandir}/man1/tqdm.1
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2016-09-22 20:54:41 +00:00
|
|
|
|
|
|
|
%post
|
2017-10-11 06:59:36 +00:00
|
|
|
%{python_install_alternative tqdm tqdm.1}
|
2016-09-22 20:54:41 +00:00
|
|
|
|
|
|
|
%postun
|
2017-07-07 12:56:37 +00:00
|
|
|
%python_uninstall_alternative tqdm
|
2016-01-20 20:40:49 +00:00
|
|
|
|
|
|
|
%check
|
2018-05-17 19:38:43 +00:00
|
|
|
%{python_expand export PATH="$PATH:%{buildroot}%{_bindir}"
|
|
|
|
nosetests-%{$python_bin_suffix} --ignore-files="tests_perf\.py" --ignore-files="tests_synchronisation\.py" tqdm/
|
|
|
|
}
|
2016-01-20 20:40:49 +00:00
|
|
|
|
2017-07-07 12:56:37 +00:00
|
|
|
%files %{python_files}
|
2018-05-17 19:38:43 +00:00
|
|
|
%doc README.rst logo.png
|
|
|
|
%doc examples/
|
2017-07-07 12:56:37 +00:00
|
|
|
%license LICENCE
|
2016-01-20 20:40:49 +00:00
|
|
|
%{python_sitelib}/*
|
2017-07-07 12:56:37 +00:00
|
|
|
%python_alternative %{_bindir}/tqdm
|
2017-10-11 06:59:36 +00:00
|
|
|
%python_alternative %{_mandir}/man1/tqdm.1
|
2016-01-20 20:40:49 +00:00
|
|
|
|
|
|
|
%changelog
|