From 07d30b59d2f660670aefac6c979c5ce6e3a45800 Mon Sep 17 00:00:00 2001 From: caodongxia <315816521@qq.com> Date: Wed, 26 Apr 2023 10:33:10 +0800 Subject: [PATCH] Adapting to the pyproject.toml compilation mode --- 0001-add-setup.py.patch | 25 ------------------------- python-importlib-resources.spec | 12 ++++++++---- 2 files changed, 8 insertions(+), 29 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 7ad928d..0000000 --- a/0001-add-setup.py.patch +++ /dev/null @@ -1,25 +0,0 @@ -From 442decd2a4c9b754e8c674044b85016d4fa99a7d Mon Sep 17 00:00:00 2001 -From: Gzx1999 -Date: Sat, 24 Sep 2022 19:45:06 +0800 -Subject: [PATCH] add setup.py - ---- - setup.py | 6 ++++++ - 1 file changed, 6 insertions(+) - create mode 100644 setup.py - -diff --git a/setup.py b/setup.py -new file mode 100644 -index 0000000..bac24a4 ---- /dev/null -+++ b/setup.py -@@ -0,0 +1,6 @@ -+#!/usr/bin/env python -+ -+import setuptools -+ -+if __name__ == "__main__": -+ setuptools.setup() --- -2.25.1 - diff --git a/python-importlib-resources.spec b/python-importlib-resources.spec index 5640d26..020d82e 100644 --- a/python-importlib-resources.spec +++ b/python-importlib-resources.spec @@ -1,14 +1,14 @@ %global _empty_manifest_terminate_build 0 Name: python-importlib-resources Version: 5.12.0 -Release: 1 +Release: 2 Summary: Read resources from Python packages License: Apache-2.0 URL: https://github.com/python/importlib_resources Source0: https://files.pythonhosted.org/packages/4e/a2/3cab1de83f95dd15297c15bdc04d50902391d707247cada1f021bbfe2149/importlib_resources-5.12.0.tar.gz -Patch0: 0001-add-setup.py.patch BuildArch: noarch + %description Importlib_resources is a backport of Python standard library. @@ -38,10 +38,10 @@ Importlib_resources is a backport of Python standard library. %autosetup -n importlib_resources-%{version} -p1 %build -%py3_build +%pyproject_build %install -%py3_install +%pyproject_install importlib_resources==%{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 @@ -73,11 +73,15 @@ mv %{buildroot}/doclist.lst . %files -n python3-importlib-resources -f filelist.lst %dir %{python3_sitelib}/* +%{python3_sitelib}/importlib_resources %files help -f doclist.lst %{_docdir}/* %changelog +* Tue Apr 25 2023 caodongxia - 5.12.0-2 +- Adapting to the pyproject.toml compilation mode + * Tue Mar 28 2023 wubijie - 5.12.0-1 - Update package to version 5.12.0