!5 Update package

From: @liqiuyu123 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2022-12-08 06:56:42 +00:00 committed by Gitee
commit 25a568d21e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 36 additions and 11 deletions

25
0001-add-setup.py.patch Normal file
View File

@ -0,0 +1,25 @@
From d168176f5b942062208eb6dfd1185dfacb599dad Mon Sep 17 00:00:00 2001
From: liqiuyu123 <liqiuyu@kylinos.cn>
Date: Wed, 7 Dec 2022 16:24:54 +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.37.1.windows.1

Binary file not shown.

Binary file not shown.

View File

@ -1,13 +1,13 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-jaraco-functools Name: python-jaraco-functools
Version: 3.0.1 Version: 3.5.2
Release: 3 Release: 1
Summary: Functools like those found in stdlib Summary: Functools like those found in stdlib
License: MIT License: MIT
URL: https://pypi.org/project/jaraco.functools/ URL: https://pypi.org/project/jaraco.functools/
Source0: https://files.pythonhosted.org/packages/89/e1/773ecbf42ada8dc31459837c76316478df975cf6d9fcc171075548bd7cac/jaraco.functools-3.0.1.tar.gz Source0: https://files.pythonhosted.org/packages/b4/ea/9abca360081de9157668fcc52765989158aaf29b4826f26fcb17852d08e6/jaraco.functools-3.5.2.tar.gz
Patch0: 0001-add-setup.py.patch
BuildArch: noarch BuildArch: noarch
Recommends: %{name}-help = %{version}-%{release}
Requires: python3-more-itertools Requires: python3-more-itertools
Requires: python3-sphinx Requires: python3-sphinx
@ -23,7 +23,7 @@ Functools like those found in stdlib
%package -n python3-jaraco-functools %package -n python3-jaraco-functools
Summary: Functools like those found in stdlib Summary: Functools like those found in stdlib
Provides: python-jaraco-functools Provides: python-jaraco-functools = %{version}-%{release}
BuildRequires: python3-devel BuildRequires: python3-devel
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm BuildRequires: python3-setuptools_scm
@ -38,7 +38,8 @@ Provides: python3-jaraco-functools-doc
Documentation for jaraco-functools Documentation for jaraco-functools
%prep %prep
%autosetup -n jaraco.functools-3.0.1 %autosetup -n jaraco.functools-%{version}
%patch0
%build %build
%py3_build %py3_build
@ -72,16 +73,15 @@ mv %{buildroot}/filelist.lst .
mv %{buildroot}/doclist.lst . mv %{buildroot}/doclist.lst .
%files -n python3-jaraco-functools -f filelist.lst %files -n python3-jaraco-functools -f filelist.lst
%exclude %{python3_sitelib}/jaraco/__init__* %dir %{python3_sitelib}/*
%exclude %{python3_sitelib}/jaraco/__pycache__/__init__*
%{python3_sitelib}/jaraco/functools*
%{python3_sitelib}/jaraco/__pycache__/functools*
%{python3_sitelib}/jaraco.functools-%{version}-py%{python3_version}.egg-info
%files help -f doclist.lst %files help -f doclist.lst
%{_docdir}/* %{_docdir}/*
%changelog %changelog
* Thu Dec 01 2022 liqiuyu <liqiuyu@kylinos.cn> - 3.5.2-1
- Update package to version 3.5.2
* Sat Apr 02 2022 xigaoxinyan <xigaoxinyan@huawei.com> - 3.0.1-3 * Sat Apr 02 2022 xigaoxinyan <xigaoxinyan@huawei.com> - 3.0.1-3
- Fix build error caused by py3.10+ wildcard - Fix build error caused by py3.10+ wildcard