Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
python3-setuptools
python3-setuptools.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python3-setuptools.spec of Package python3-setuptools
# # spec file for package python3-setuptools # # Copyright (c) 2015 SUSE LINUX Products 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: 1.1.7 Release: 0 Url: http://pypi.python.org/pypi/setuptools Summary: Easily download, build, install, upgrade, and uninstall Python packages License: Python-2.0 or ZPL-2.0 Group: Development/Languages/Python Source: https://pypi.python.org/packages/source/s/setuptools/setuptools-%{version}.tar.gz Source1: psfl.txt Source2: zpl.txt Patch1: setuptools-0.6c9-create-sitedir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} == 1220 BuildRequires: python3 BuildRequires: python3-2to3 %endif BuildRequires: python3-devel Requires(post): update-alternatives Requires(postun): update-alternatives # NOTE(saschpe): Distribute was merged into 0.7.x, so even though distribute # obsoletes setuptools < 0.6.45, current setuptools obsoletes distribute again 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} %patch1 find . -type f -name "*.orig" -delete #TODO(saschpe): drop failing test for the time being, fix later.. rm setuptools/tests/test_sdist.py %build python3 setup.py build %install python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} rm %{buildroot}%{_bindir}/easy_install ln -s %{_bindir}/easy_install-%{py3_ver} %{buildroot}%{_bindir}/easy_install %check python3 setup.py test %pre # Since /usr/bin/easy_install became ghosted to be used with update-alternatives, # we have to get rid of the old binary: [[ ! -L %{_bindir}/easy_install ]] && rm -f %{_bindir}/easy_install exit 0 %post update-alternatives \ --install %{_bindir}/easy_install easy_install %{_bindir}/easy_install-%{py3_ver} 30 %preun if [ $1 -eq 0 ] ; then update-alternatives --remove easy_install %{_bindir}/easy_install-%{py3_ver} fi %files %defattr(-,root,root,-) %doc CHANGES.txt README.txt %ghost %{_bindir}/easy_install %{_bindir}/easy_install-%{py3_ver} %{python3_sitelib}/_markerlib %{python3_sitelib}/__pycache__ %{python3_sitelib}/easy_install.py* %{python3_sitelib}/pkg_resources.py* %{python3_sitelib}/setuptools %{python3_sitelib}/setuptools-%{version}-py%{py3_ver}.egg-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor