-
Notifications
You must be signed in to change notification settings - Fork 696
Expand file tree
/
Copy pathpython3-setuptools.spec
More file actions
84 lines (66 loc) · 2.73 KB
/
python3-setuptools.spec
File metadata and controls
84 lines (66 loc) · 2.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
%global build_if %{photon_subrelease} <= 91
%define srcname setuptools
Summary: Extensions to the standard Python datetime module
Name: python3-setuptools
# if you make any security fix in this package, package the whl files
# python3.spec without miss
Version: 69.0.3
Release: 8.2%{?dist}
Group: Development/Languages/Python
Vendor: VMware, Inc.
Distribution: Photon
Url: https://pypi.org/project/setuptools
Source0: https://files.pythonhosted.org/packages/5f/36/7374297692bb9dbd7569a0f84887c7e5e314c41d5d9518cb76fbb130620d/%{srcname}-%{version}.tar.gz
Source1: license.txt
%include %{SOURCE1}
Patch0: CVE-2024-6345.patch
Patch1: CVE-2025-47273.patch
BuildRequires: python3-devel
BuildRequires: python3-xml
Requires: python3
Requires: python3-xml
Requires(post): findutils
BuildArch: noarch
Provides: python%{python3_version}dist(setuptools)
%description
Setuptools is a fully-featured, actively-maintained, and stable library
designed to facilitate packaging Python projects.
It helps developers to easily share reusable code (in the form of a library) and programs
(e.g., CLI/GUI tools implemented in Python), that can be installed with pip and uploaded to PyPI.
%prep
%autosetup -p1 -n %{srcname}-%{version}
%build
%py3_build
%install
%py3_install
find %{buildroot}%{python3_sitelib} -name '*.exe' -delete
%check
%{py3_test}
%post
find %{python3_sitelib}/%{srcname}-* -type d -empty -delete
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,755)
%{python3_sitelib}/*
%changelog
* Sat Mar 28 2026 Factory AI Bot <factory-droid[bot]@users.noreply.github.com> 69.0.3-8.2
- Remove erroneously introduced wheel subpackage and ExtraBuildRequires
* Wed Mar 18 2026 Prashant S Chauhan <prashant.singh-chauhan@broadcom.com> 69.0.3-8.1
- Bump after moving to SPECS/91
* Wed May 28 2025 Prashant S Chauhan <prashant.singh-chauhan@broadcom.com> 69.0.3-8
- Fix CVE-2025-47273
* Fri Jan 17 2025 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 69.0.3-7
- Add findutils to post requires
* Wed Dec 11 2024 Prashant S Chauhan <prashant.singh-chauhan@broadcom.com> 69.0.3-6
- Release bump for SRP compliance
* Tue Nov 05 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 69.0.3-5
- Release bump for SRP compliance
* Tue Jul 23 2024 Prashant S Chauhan <prashant.singhj-chauhan@broadcom.com> 69.0.3-4
- Fix CVE-2024-6345
* Thu May 02 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 69.0.3-3
- Remove leftover empty setuptools dirs from install location
* Wed Mar 06 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 69.0.3-2
- Remove wheel dependency
* Wed Feb 28 2024 Shreenidhi Shedi <shreenidhi.shedi@broadcom.com> 69.0.3-1
- Initial addition. Seperated from python3 spec.