SHA256
1
0
forked from pool/python-six

Accepting request 460248 from devel:languages:python

first batch of singlespec packages

OBS-URL: https://build.opensuse.org/request/show/460248
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-six?expand=0&rev=25
This commit is contained in:
Dominique Leuenberger 2017-02-27 17:28:30 +00:00 committed by Git OBS Bridge
commit 9fa5bd80f3
4 changed files with 37 additions and 24 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Feb 23 14:47:06 UTC 2017 - jmatejek@suse.com
- update for singlespec
- only use python3 version of Sphinx to build docs
- provide $flavor-doc for all pythons
-------------------------------------------------------------------
Tue Jan 19 09:07:19 UTC 2016 - toddrme2178@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package python-six-doc
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-six-doc
Version: 1.10.0
Release: 0
@ -25,13 +26,17 @@ License: MIT
Group: Development/Libraries/Python
Source: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-six
# Documentation requirements:
BuildRequires: python-Sphinx
BuildRequires: %{python_module six}
# require old python 2 explicitly to get the ssl module
BuildRequires: python
# require only one version of Sphinx for now
BuildRequires: python3-Sphinx
# Test requirements:
BuildRequires: python-py
BuildRequires: python-pytest
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module py}
BuildRequires: python-rpm-macros
BuildArch: noarch
Provides: %{python_module six-doc = %{version}}
%description
Six is a Python 2 and 3 compatibility library. It provides utility
@ -56,7 +61,7 @@ cd documentation && make html && rm _build/html/.buildinfo
mkdir test
cp test_six.py test
pushd test
py.test test_six.py
%python_exec %{_bindir}/py.test test_six.py
popd
rm -rf test

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Oct 5 14:33:14 UTC 2016 - jmatejek@suse.com
- update for multipython build
-------------------------------------------------------------------
Tue Feb 9 07:45:20 UTC 2016 - olaf@aepfle.de

View File

@ -1,7 +1,7 @@
#
# spec file for package python-six
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@ -16,6 +16,7 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-six
Version: 1.10.0
Release: 0
@ -25,16 +26,17 @@ License: MIT
Group: Development/Libraries/Python
Source: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
%if 0%{?suse_version} <= 1110
BuildRequires: python-argparse
Requires: python-argparse
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%endif
BuildRequires: %{python_module base}
BuildRequires: python-rpm-macros
%if 0%{?suse_version} > 1110
BuildArch: noarch
%else
BuildRequires: python-argparse
Requires: python-argparse
%endif
%python_subpackages
%description
Six is a Python 2 and 3 compatibility library. It provides utility
functions for smoothing over the differences between the Python
@ -46,28 +48,22 @@ what is provided.
%setup -q -n six-%{version}
%build
python setup.py build
%python_build
# due to cyclic requirements between Sphinx and six,
# documentation is build in its own package <hpj@urpla.net>
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%python_install
# Run tests in -doc package to avoid dependency loop
# %check
# python test_six.py
%pre
# previous versions of the package installed .egg-info as a directory,
# the new update now installs it as a file. Clean out the directory, should it exist.
if [ -d %{python_sitelib}/six-%{version}-py%{py_ver}.egg-info ]; then
rm -rf %{python_sitelib}/six-%{version}-py%{py_ver}.egg-info
fi
%files
%files %python_files
%defattr(-,root,root)
%doc LICENSE README
%{python_sitelib}/six.py*
%pycache_only %{python3_sitelib}/__pycache__/*
%{python_sitelib}/six-%{version}-py*.egg-info
%changelog