Bump to python-setuptools 34.3.3 29/124429/1 accepted/tizen/base/20170413.144013 submit/tizen_base/20170413.013811
authorDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 11 Apr 2017 08:47:41 +0000 (17:47 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Tue, 11 Apr 2017 08:48:22 +0000 (17:48 +0900)
[Model] ALL
[BinType] AP
[Customer] OPEN

[Issue#] N/A
[Request] N/A
[Occurrence Version] N/A

[Problem] Bump to python-setuptools 34.3.3
[Cause & Measure] Bump to python-setuptools 34.3.3
[Checking Method] N/A

[Team] Open Source Management and Setting Part
[Developer] dh0128.kwak
[Solution company] Samsung
[Change Type] N/A

Change-Id: I44e9f86853c023cdc5cf49a1838323a700769330
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/python-setuptools.manifest [new file with mode: 0644]
packaging/python-setuptools.spec [new file with mode: 0644]

diff --git a/packaging/python-setuptools.manifest b/packaging/python-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/python-setuptools.spec b/packaging/python-setuptools.spec
new file mode 100644 (file)
index 0000000..d153019
--- /dev/null
@@ -0,0 +1,82 @@
+#
+# spec file for package python-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:           python-setuptools
+Version:        34.3.3
+Release:        0
+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:  python-devel
+BuildRequires:  python-appdirs
+BuildRequires:  python-packaging
+BuildRequires:  python-six
+BuildRequires:  python-xml
+BuildRequires:  unzip
+
+# needed for SLE
+Requires:       python
+Requires:       python-appdirs
+Requires:       python-packaging
+Requires:       python-six
+Requires:       python-xml
+
+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} .
+python setup.py build
+
+%install
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%license LICENSE
+%{_bindir}/easy_install*
+%{python_sitelib}/setuptools
+%{python_sitelib}/setuptools-%{version}-py%{python_version}.egg-info
+%{python_sitelib}/easy_install.py*
+%{python_sitelib}/pkg_resources
+
+%changelog
+