python-tqdm/python-tqdm.spec
木得感情的openEuler机器人 f33d820e7e Workaround of build failure
2021-11-19 09:28:50 +00:00

65 lines
1.8 KiB
RPMSpec

%global debug_package %{nil}
Name: python-tqdm
Version: 4.28.1
Release: 2
Summary: A Fast and Extensible Progress Bar for Python and CLI
License: MPLv2.0 and MIT
URL: https://github.com/tqdm/tqdm
Source0: https://github.com/tqdm/tqdm/archive/v%{version}/tqdm-%{version}.tar.gz
BuildRequires: python3-devel python3-setuptools
%description
tqdm derives from the Arabic word taqaddum which can mean "progress". Instantly
make your loops show a smart progress meter - just wrap any iterable with
tqdm(interable), and you are done!
%package -n python3-tqdm
Summary: A Fast and Extensible Progress Bar for Python and CLI
%{?python_provide:%python_provide python3-tqdm}
%description -n python3-tqdm
tqdm derives from the Arabic word taqaddum which can mean "progress". Instantly
make your loops show a smart progress meter - just wrap any iterable with
tqdm(interable), and you are done!
%package_help
%prep
%autosetup -n tqdm-%{version} -p1
%build
%py3_build
%install
%py3_install
mkdir -p %{buildroot}%{_mandir}/man1/
mv -v %{buildroot}%{python3_sitelib}/tqdm/tqdm.1 %{buildroot}%{_mandir}/man1/
# tqdm requires python-coverage and python-flake8 to run self-test
# python-flake8 currently is not included in SP3, so disable self-test temporarily
#%check
#%{__python3} setup.py test
%files -n python3-tqdm
%defattr(-,root,root)
%doc README.rst examples
%license LICENCE
%{_bindir}/tqdm
%{python3_sitelib}/tqdm-*.egg-info/
%{python3_sitelib}/tqdm/
%files help
%defattr(-,root,root)
%{_mandir}/man1/tqdm.1*
%changelog
* Fri Nov 19 2021 Shinwell Hu <huxinwei@huawei.com> - 4.28.1-2
- Disable self-test due to unavailable of python-flake8 in SP3.
* Wed Mar 4 2020 hexiujun <hexiujun1@huawei.com> - 4.28.1-1
- Package init