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:
parent
8160c56707
commit
901c8dd03f
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
3
tqdm-4.14.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:284b7cb57c135f41122580df8a818ffffd85449a61365dfb41907d2bf115e88e
|
||||
size 101524
|
Loading…
x
Reference in New Issue
Block a user