60 lines
1.5 KiB
RPMSpec
60 lines
1.5 KiB
RPMSpec
%global debug_package %{nil}
|
|
|
|
Name: python-tqdm
|
|
Version: 4.28.1
|
|
Release: 1
|
|
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/
|
|
|
|
%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
|
|
* Wed Mar 4 2020 hexiujun <hexiujun1@huawei.com> - 4.28.1-1
|
|
- Package init
|