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
This commit is contained in:
Thomas Bechtold 2017-07-07 12:56:37 +00:00 committed by Git OBS Bridge
parent 8160c56707
commit 901c8dd03f
4 changed files with 43 additions and 45 deletions

View File

@ -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 Wed Mar 1 16:38:44 UTC 2017 - toddrme2178@gmail.com

View File

@ -16,34 +16,34 @@
# #
%define oldpython python
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-tqdm Name: python-tqdm
Version: 4.11.2 Version: 4.14.0
Release: 0 Release: 0
Summary: A Fast, Extensible Progress Meter Summary: A Fast, Extensible Progress Meter
License: MIT License: MPL-2.0 and MIT
Group: Development/Languages/Python Group: Development/Languages/Python
Url: https://github.com/tqdm/tqdm Url: https://github.com/tqdm/tqdm
Source: https://files.pythonhosted.org/packages/source/t/tqdm/tqdm-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/t/tqdm/tqdm-%{version}.tar.gz
BuildRequires: python-devel BuildRequires: %{python_module devel}
BuildRequires: python-docopt BuildRequires: %{python_module rpm-macros}
BuildRequires: python-setuptools BuildRequires: %{python_module setuptools}
# Test requirements BuildRequires: python-rpm-macros
BuildRequires: python-coverage # SECTION test requirements
BuildRequires: python-Cython %if %{with test}
BuildRequires: python-flake8 BuildRequires: %{python_module nose}
BuildRequires: python-mccabe BuildRequires: %{python_module numpy}
BuildRequires: python-nose BuildRequires: %{python_module pandas}
BuildRequires: python-numpy-devel %endif
BuildRequires: python-pandas # /SECTION
Requires: python-docopt
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(postun): update-alternatives Requires(postun): update-alternatives
BuildRoot: %{_tmppath}/%{name}-%{version}-build 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 BuildArch: noarch
%endif
%python_subpackages
%description %description
Instantly make your loops show a smart progress meter - just wrap any 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 %prep
%setup -q -n tqdm-%{version} %setup -q -n tqdm-%{version}
if [ -e LICENCE ] ; then mv LICENCE LICENSE; fi
%build %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
mkdir -p %{buildroot}%{_sysconfdir}/alternatives %python_clone -a %{buildroot}%{_bindir}/tqdm
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
%post %post
"%_sbindir/update-alternatives" \ %python_install_alternative tqdm
--install %{_bindir}/tqdm tqdm %{_bindir}/tqdm-%{py_ver} 30
%postun %postun
if [ $1 -eq 0 ] ; then %python_uninstall_alternative tqdm
"%_sbindir/update-alternatives" --remove tqdm %{_bindir}/tqdm-%{py_ver}
fi
%if %{with test}
%check %check
nosetests --ignore-files="tests_perf\.py" %python_exec %{_bindir}/nosetests --ignore-files="tests_perf\.py"
%endif
%files %files %{python_files}
%defattr(-,root,root,-) %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}/* %{python_sitelib}/*
%{_bindir}/tqdm %python_alternative %{_bindir}/tqdm
%{_bindir}/tqdm-%{py_ver}
%ghost %{_sysconfdir}/alternatives/tqdm
%changelog %changelog

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:14baa7a9ea7723d46f60de5f8c6f20e840baa7e3e193bf0d9ec5fe9103a15254
size 100161

3
tqdm-4.14.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:284b7cb57c135f41122580df8a818ffffd85449a61365dfb41907d2bf115e88e
size 101524