!16 修改python-jaraco-collections的编译方式,删除对setup.py的文件适配
From: @starlet-dx Reviewed-by: @cherry530 Signed-off-by: @cherry530
This commit is contained in:
commit
8b65caf4f5
@ -1,31 +0,0 @@
|
|||||||
From c85a3a7ff77ee156fcd0f2de1ecd7a56c0f0afae Mon Sep 17 00:00:00 2001
|
|
||||||
From: starlet-dx <15929766099@163.com>
|
|
||||||
Date: Tue, 28 Feb 2023 10:32:16 +0800
|
|
||||||
Subject: [PATCH 1/1] add setup file
|
|
||||||
|
|
||||||
---
|
|
||||||
setup.py | 12 ++++++++++++
|
|
||||||
1 file changed, 12 insertions(+)
|
|
||||||
create mode 100644 setup.py
|
|
||||||
|
|
||||||
diff --git a/setup.py b/setup.py
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000..3acc149
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -0,0 +1,12 @@
|
|
||||||
+#!/usr/bin/env python
|
|
||||||
+
|
|
||||||
+from setuptools import setup
|
|
||||||
+
|
|
||||||
+entry_points = \
|
|
||||||
+ {'console_scripts': ['jaraco.collections = jaraco.collections:main']}
|
|
||||||
+
|
|
||||||
+setup(
|
|
||||||
+ name='jaraco.collections',
|
|
||||||
+ version='3.8.0',
|
|
||||||
+ py_modules=['jaraco.collections'],
|
|
||||||
+)
|
|
||||||
--
|
|
||||||
2.30.0
|
|
||||||
|
|
||||||
Binary file not shown.
@ -1,12 +1,11 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global _empty_manifest_terminate_build 0
|
||||||
Name: python-jaraco-collections
|
Name: python-jaraco-collections
|
||||||
Version: 4.1.0
|
Version: 4.1.0
|
||||||
Release: 1
|
Release: 2
|
||||||
Summary: Collection objects similar to those in stdlib by jaraco
|
Summary: Collection objects similar to those in stdlib by jaraco
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/jaraco/jaraco.collections
|
URL: https://github.com/jaraco/jaraco.collections
|
||||||
Source0: https://github.com/jaraco/jaraco.collections/archive/refs/tags/v%{version}.tar.gz#/jaraco.collections-%{version}.tar.gz
|
SOurce0: https://files.pythonhosted.org/packages/source/j/jaraco.collections/jaraco.collections-%{version}.tar.gz
|
||||||
Patch0: 0001-add-setup-file.patch
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
Requires: python3-sphinx
|
Requires: python3-sphinx
|
||||||
@ -26,6 +25,7 @@ Summary: Collection objects similar to those in stdlib by jaraco
|
|||||||
Provides: python-jaraco-collections = %{version}-%{release}
|
Provides: python-jaraco-collections = %{version}-%{release}
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-pip python3-wheel python3-hatch-vcs
|
||||||
%description -n python3-jaraco-collections
|
%description -n python3-jaraco-collections
|
||||||
A dictionary-like object that maps a range of values to a given value.
|
A dictionary-like object that maps a range of values to a given value.
|
||||||
|
|
||||||
@ -39,10 +39,10 @@ A dictionary-like object that maps a range of values to a given value.
|
|||||||
%autosetup -n jaraco.collections-%{version} -p1
|
%autosetup -n jaraco.collections-%{version} -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%pyproject_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
%pyproject_install jaraco.collections==%{version}
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
||||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
||||||
@ -70,12 +70,15 @@ mv %{buildroot}/filelist.lst .
|
|||||||
mv %{buildroot}/doclist.lst .
|
mv %{buildroot}/doclist.lst .
|
||||||
|
|
||||||
%files -n python3-jaraco-collections -f filelist.lst
|
%files -n python3-jaraco-collections -f filelist.lst
|
||||||
%dir %{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files help -f doclist.lst
|
||||||
%{_docdir}/*
|
%{_docdir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Apr 25 2023 yaoxin <yao_xin@hoperun.com> - 4.1.0-2
|
||||||
|
- Modify the package compilation method and remove the adaptation to setup.py
|
||||||
|
|
||||||
* Mon Apr 10 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 4.1.0-1
|
* Mon Apr 10 2023 jiangxinyu <jiangxinyu@kylinos.cn> - 4.1.0-1
|
||||||
- Update package to version 4.1.0
|
- Update package to version 4.1.0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user