diff --git a/click-8.1.7.tar.gz b/click-8.1.7.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d70eb3d747c69a127ca19959e3e56ae5cab20e64 Binary files /dev/null and b/click-8.1.7.tar.gz differ diff --git a/click-8.2.1.tar.gz b/click-8.2.1.tar.gz deleted file mode 100644 index 408b1186a2569e9b2807bcf76fcf54c08da5a1f4..0000000000000000000000000000000000000000 Binary files a/click-8.2.1.tar.gz and /dev/null differ diff --git a/python-click.spec b/python-click.spec index de493386895e1557199607158d75432ad19c0a9e..e4f7d6df04751a0c21dad5a099a478ba8496c5b9 100644 --- a/python-click.spec +++ b/python-click.spec @@ -1,6 +1,6 @@ %global _empty_manifest_terminate_build 0 Name: python-click -Version: 8.2.1 +Version: 8.1.7 Release: 1 Summary: Composable command line interface toolkit License: BSD @@ -22,7 +22,6 @@ BuildRequires: python3-setuptools BuildRequires: python3-pbr BuildRequires: python3-pip BuildRequires: python3-wheel -BuildRequires: python3-flit python3-hatchling python3-hatch-vcs python-pytest # General requires BuildRequires: python3-colorama # General requires @@ -55,21 +54,39 @@ install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . %check -%pytest +%{__python3} setup.py test -%files -n python3-click -%{python3_sitelib}/* +%files -n python3-click -f filelist.lst +%dir %{python3_sitelib}/* %{python3_sitelib}/click/__pycache__/* -%files help +%files help -f doclist.lst %{_docdir}/* %changelog -* Tue Jun 17 2025 shichao - 8.2.1-1 -- Upgrade package python3-click to version 8.2.1 - * Tue Dec 26 2023 liyanan - 8.1.7-1 - Upgrade package python3-click to version 8.1.7