From 625099f44b7bb021b119b7c61d8ae91116242b34 Mon Sep 17 00:00:00 2001 From: Wangjunqi123 Date: Wed, 26 Apr 2023 10:55:02 +0800 Subject: [PATCH] update version to 3.15.0 --- 0001-add-setup.py.patch | 12 ------------ python-zipp.spec | 36 +++++++++--------------------------- 2 files changed, 9 insertions(+), 39 deletions(-) delete mode 100644 0001-add-setup.py.patch diff --git a/0001-add-setup.py.patch b/0001-add-setup.py.patch deleted file mode 100644 index 245b298..0000000 --- a/0001-add-setup.py.patch +++ /dev/null @@ -1,12 +0,0 @@ ---- a/setup.py 1970-01-01 08:00:00.000000000 +0800 -+++ b/setup.py 2022-10-19 09:38:57.746598491 +0800 -@@ -0,0 +1,9 @@ -+#!/usr/bin/env python -+ -+from setuptools import setup -+ -+if __name__ == "__main__": -+ setup( -+ name = "zipp", -+ version = "3.15.0", -+ ) diff --git a/python-zipp.spec b/python-zipp.spec index 092d8b5..10bc0df 100644 --- a/python-zipp.spec +++ b/python-zipp.spec @@ -1,12 +1,11 @@ %global _empty_manifest_terminate_build 0 Name: python-zipp Version: 3.15.0 -Release: 1 +Release: 2 Summary: Backport of pathlib-compatible object wrapper for zip files License: MIT URL: https://github.com/jaraco/zipp Source0: https://files.pythonhosted.org/packages/00/27/f0ac6b846684cecce1ee93d32450c45ab607f65c2e0255f0092032d91f07/zipp-3.15.0.tar.gz -Patch0: 0001-add-setup.py.patch BuildArch: noarch %description @@ -42,10 +41,10 @@ sed -i "/import jaraco.itertools/d" tests/test_zipp.py sed -i "/func_timeout/d" tests/test_zipp.py %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install zipp==%{version} 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 @@ -54,39 +53,22 @@ if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi if [ -f README.rst ]; then cp -af README.rst %{buildroot}/%{_pkgdocdir}; fi if [ -f README.md ]; then cp -af README.md %{buildroot}/%{_pkgdocdir}; fi if [ -f README.txt ]; then cp -af README.txt %{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 -k "not test_joinpath_constant_time" -%files -n python3-zipp -f filelist.lst +%files -n python3-zipp %defattr(-,root,root) -%dir %{python3_sitelib}/* +%{python3_sitelib}/* %license LICENSE -%files help -f doclist.lst +%files help %{_docdir}/* %changelog +* Wed Apr 26 2023 wangjunqi - 3.15.0-2 +- apply pyproject.toml + * Fri Mar 17 2023 wangjunqi - 3.15.0-1 - Update package to version 3.15.0 -- Gitee