Bump to python3-setuptools 63.2.0 55/278255/1 accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_8.0_base accepted/tizen_base_dev backup/python3-setuptools-63.2.0-20220915 sandbox/backup/python3-setuptools_63.2.0_20240206 sandbox/dh0128.kwak/python3-setuptools-63.2.0-20220718 tizen_7.0_base tizen_7.0_base_hotfix tizen_8.0_base accepted/tizen/7.0/base/20221116.025949 accepted/tizen/7.0/base/hotfix/20221116.055358 accepted/tizen/8.0/base/20231005.045207 accepted/tizen/base/20220725.042918 accepted/tizen/base/20221115.103823 accepted/tizen/base/dev/20230602.080912 submit/tizen_base/20220719.051715 submit/tizen_base/20220720.062709 tizen_7.0_m2_release tizen_8.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 18 Jul 2022 06:50:59 +0000 (15:50 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 18 Jul 2022 06:50:59 +0000 (15:50 +0900)
Change-Id: Ib72bfec9ca84865742aa2d86956c20273ae11643

packaging/python3-setuptools.manifest [new file with mode: 0644]
packaging/python3-setuptools.spec [new file with mode: 0644]

diff --git a/packaging/python3-setuptools.manifest b/packaging/python3-setuptools.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/python3-setuptools.spec b/packaging/python3-setuptools.spec
new file mode 100644 (file)
index 0000000..0003722
--- /dev/null
@@ -0,0 +1,62 @@
+Name:           python3-setuptools
+Version:        63.2.0
+Release:        1
+Summary:        Easily download, build, install, upgrade, and uninstall Python packages
+License:        MIT
+Group:          Development/Languages/Python
+Url:            https://github.com/pypa/setuptools
+Source:         %{name}-%{version}.tar.gz
+Source1001:     %{name}.manifest
+
+BuildRequires:  pkgconfig(python3)
+BuildRequires:  python3-xml
+BuildRequires:  unzip
+
+Requires:       python3
+Requires:       python3-xml
+
+Provides:       python3-distribute = %{version}
+Obsoletes:      python3-distribute < %{version}
+
+BuildArch:      noarch
+
+%description
+setuptools is a collection of enhancements to the Python distutils that
+allow you to more easily build and distribute Python packages,
+especially ones that have dependencies on other packages.
+
+
+%prep
+%setup -q -n %{name}-%{version}
+find . -type f -name "*.orig" -delete
+cp %{SOURCE1001} .
+
+# fix rpmlint spurious-executable-perm
+chmod -x README.rst
+
+# strip shebangs to fix rpmlint warnings
+# "explain the sed":
+# 1 = first line only
+# s@...@...@ = same as s/.../.../ except with @ instead of /
+# ^ = start; #!/ = shebang leading characters; .* = rest of line; $ = end
+# replace with nothing
+sed -r -i '1s@^#!/.*$@@' setuptools/command/easy_install.py
+
+%build
+%{_bindir}/python3 setup.py build
+
+%install
+%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+%files
+%manifest %{name}.manifest
+%license LICENSE
+%{python3_sitelib}/setuptools
+%{python3_sitelib}/setuptools-%{version}*-py%{python3_version}.egg-info
+%{python3_sitelib}/pkg_resources
+%{python3_sitelib}/distutils-precedence.pth
+%{python3_sitelib}/_distutils_hack/*.py
+%{python3_sitelib}/_distutils_hack/__pycache__/*.pyc
+
+%changelog
+