From 901c8dd03fa4ed57cd5559c01dddfb7502abb146f395d99c269aba88f62eaf1a Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Fri, 7 Jul 2017 12:56:37 +0000 Subject: [PATCH] Accepting request 508508 from home:sebix:branches:devel:languages:python - upgrade specfile to singlespec - upgrade to 4.14.0 OBS-URL: https://build.opensuse.org/request/show/508508 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tqdm?expand=0&rev=4 --- python-tqdm.changes | 6 ++++ python-tqdm.spec | 76 ++++++++++++++++++++------------------------- tqdm-4.11.2.tar.gz | 3 -- tqdm-4.14.0.tar.gz | 3 ++ 4 files changed, 43 insertions(+), 45 deletions(-) delete mode 100644 tqdm-4.11.2.tar.gz create mode 100644 tqdm-4.14.0.tar.gz diff --git a/python-tqdm.changes b/python-tqdm.changes index 10a9e7d..661f133 100644 --- a/python-tqdm.changes +++ b/python-tqdm.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jul 5 19:34:27 UTC 2017 - sebix+novell.com@sebix.at + +- upgrade specfile to singlespec +- upgrade to 4.14.0 + ------------------------------------------------------------------- Wed Mar 1 16:38:44 UTC 2017 - toddrme2178@gmail.com diff --git a/python-tqdm.spec b/python-tqdm.spec index 3b36017..06c206a 100644 --- a/python-tqdm.spec +++ b/python-tqdm.spec @@ -16,34 +16,34 @@ # +%define oldpython python +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-tqdm -Version: 4.11.2 +Version: 4.14.0 Release: 0 Summary: A Fast, Extensible Progress Meter -License: MIT +License: MPL-2.0 and MIT Group: Development/Languages/Python Url: https://github.com/tqdm/tqdm Source: https://files.pythonhosted.org/packages/source/t/tqdm/tqdm-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-docopt -BuildRequires: python-setuptools -# Test requirements -BuildRequires: python-coverage -BuildRequires: python-Cython -BuildRequires: python-flake8 -BuildRequires: python-mccabe -BuildRequires: python-nose -BuildRequires: python-numpy-devel -BuildRequires: python-pandas -Requires: python-docopt +BuildRequires: %{python_module devel} +BuildRequires: %{python_module rpm-macros} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros +# SECTION test requirements +%if %{with test} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module numpy} +BuildRequires: %{python_module pandas} +%endif +# /SECTION Requires(post): update-alternatives Requires(postun): update-alternatives 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 Instantly make your loops show a smart progress meter - just wrap any @@ -51,42 +51,34 @@ iterable with "tqdm(iterable)", and you're done! %prep %setup -q -n tqdm-%{version} -if [ -e LICENCE ] ; then mv LICENCE LICENSE; fi %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -for p in tqdm ; do - mv %{buildroot}%{_bindir}/$p %{buildroot}%{_bindir}/$p-%{py_ver} - ln -s -f %{_sysconfdir}/alternatives/$p %{buildroot}%{_bindir}/$p - # create a dummy target for /etc/alternatives/$p - touch %{buildroot}%{_sysconfdir}/alternatives/$p - -done +%python_install +%python_clone -a %{buildroot}%{_bindir}/tqdm %post -"%_sbindir/update-alternatives" \ - --install %{_bindir}/tqdm tqdm %{_bindir}/tqdm-%{py_ver} 30 - +%python_install_alternative tqdm %postun -if [ $1 -eq 0 ] ; then - "%_sbindir/update-alternatives" --remove tqdm %{_bindir}/tqdm-%{py_ver} -fi - +%python_uninstall_alternative tqdm +%if %{with test} %check -nosetests --ignore-files="tests_perf\.py" +%python_exec %{_bindir}/nosetests --ignore-files="tests_perf\.py" +%endif -%files +%files %{python_files} %defattr(-,root,root,-) -%doc LICENSE README.rst +%doc README.rst logo.png examples +%if 0%{?leap_version} >= 420200 || 0%{?suse_version} > 1320 +%license LICENCE +%else +%doc LICENCE +%endif %{python_sitelib}/* -%{_bindir}/tqdm -%{_bindir}/tqdm-%{py_ver} -%ghost %{_sysconfdir}/alternatives/tqdm +%python_alternative %{_bindir}/tqdm %changelog diff --git a/tqdm-4.11.2.tar.gz b/tqdm-4.11.2.tar.gz deleted file mode 100644 index 1790734..0000000 --- a/tqdm-4.11.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:14baa7a9ea7723d46f60de5f8c6f20e840baa7e3e193bf0d9ec5fe9103a15254 -size 100161 diff --git a/tqdm-4.14.0.tar.gz b/tqdm-4.14.0.tar.gz new file mode 100644 index 0000000..a959edf --- /dev/null +++ b/tqdm-4.14.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:284b7cb57c135f41122580df8a818ffffd85449a61365dfb41907d2bf115e88e +size 101524