python-tqdm/python-tqdm.spec
starlet-dx 6b52f7a4dc Fix CVE-2024-34062
(cherry picked from commit 80fbe07ff159941e115868af7eacb977ea0c08c4)
2024-05-06 10:18:33 +08:00

74 lines
2.1 KiB
RPMSpec

%global debug_package %{nil}
Name: python-tqdm
Version: 4.56.0
Release: 4
Summary: A Fast and Extensible Progress Bar for Python and CLI
License: MPLv2.0 and MIT
URL: https://github.com/tqdm/tqdm
Source0: https://files.pythonhosted.org/packages/69/50/9f29874d835945b845812799edc732ba30c41e9d20431f9f69c8ffb9c670/tqdm-%{version}.tar.gz
# https://github.com/tqdm/tqdm/commit/b53348c73080b4edeb30b4823d1fa0d8d2c06721
Patch0: CVE-2024-34062.patch
BuildRequires: python3-devel python3-setuptools gcc python3-toml python3-setuptools_scm
%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/
%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
* Mon May 06 2024 yaoxin <yao_xin001@hoperun.com> - 4.56.0-4
- Fix CVE-2024-34062
* Mon Nov 14 2022 xu_ping <xuping33@h-partners.com> - 4.56.0-3
- change source path
* Thu Jun 24 2021 hanhui <hanhui15@huawei.com> - 4.56.0-2
- add BuildRequires:gcc python3-toml python3-setuptools_scm
* Mon Feb 1 2021 chengguipeng <chengguiopeng1@huawei.com> - 4.56.0-1
- Update to 4.56.0
* Thu May 28 2020 huanghaitao <huanghaitao8@huawei.com> - 4.28.1-2
- Remove tests
* Wed Mar 4 2020 hexiujun <hexiujun1@huawei.com> - 4.28.1-1
- Package init