From efbdb36dae3237255489a95652d398c0cd9bfef1 Mon Sep 17 00:00:00 2001 From: Hyunjee Kim Date: Fri, 10 Apr 2020 13:52:07 +0900 Subject: [PATCH] Remove packaging files for python3 Change-Id: I8075c9595366962f09bd78dd5c2a135f24828689 Signed-off-by: Hyunjee Kim --- packaging/python3-setuptools.manifest | 5 --- packaging/python3-setuptools.spec | 80 ----------------------------------- 2 files changed, 85 deletions(-) delete mode 100644 packaging/python3-setuptools.manifest delete mode 100644 packaging/python3-setuptools.spec diff --git a/packaging/python3-setuptools.manifest b/packaging/python3-setuptools.manifest deleted file mode 100644 index 017d22d..0000000 --- a/packaging/python3-setuptools.manifest +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/packaging/python3-setuptools.spec b/packaging/python3-setuptools.spec deleted file mode 100644 index 61bfab3..0000000 --- a/packaging/python3-setuptools.spec +++ /dev/null @@ -1,80 +0,0 @@ -# -# spec file for package python3-setuptools -# -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - -Name: python3-setuptools -Version: 40.6.3 -Release: 1 -Summary: Easily download, build, install, upgrade, and uninstall Python packages -License: MIT -Group: Development/Languages/Python -Source: https://pypi.io/packages/source/s/setuptools/setuptools-%{version}.zip -Source1001: %{name}.manifest - -BuildRequires: python3-devel -BuildRequires: python3-xml -BuildRequires: unzip - -# needed for SLE -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 setuptools-%{version} -find . -type f -name "*.orig" -delete - -# 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 -cp %{SOURCE1001} . -%{_bindir}/python3 setup.py build - -%install -%{_bindir}/python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} - -%files -%manifest %{name}.manifest -%defattr(-,root,root,-) -%license LICENSE -%{_bindir}/easy_install* -%{python3_sitelib}/setuptools -%{python3_sitelib}/setuptools-%{version}-py%{python3_version}.egg-info -%{python3_sitelib}/easy_install.py* -%{python3_sitelib}/pkg_resources -%{python3_sitelib}/__pycache__/easy_install.cpython-*.pyc - -%changelog - -- 2.7.4