2015-04-18 12:34:54 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-six-doc
|
|
|
|
#
|
2018-08-10 15:08:40 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-04-18 12:34:54 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-02-24 15:34:14 +01:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-04-18 12:34:54 +02:00
|
|
|
Name: python-six-doc
|
2017-09-28 08:01:51 +02:00
|
|
|
Version: 1.11.0
|
2015-04-18 12:34:54 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Python 2 and 3 compatibility utilities
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/Python
|
2018-08-10 15:08:40 +02:00
|
|
|
URL: http://pypi.python.org/pypi/six/
|
2017-09-28 09:48:29 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/six/six-%{version}.tar.gz
|
2016-01-19 10:29:45 +01:00
|
|
|
# Test requirements:
|
2017-02-17 16:47:03 +01:00
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module py}
|
2018-08-10 15:08:40 +02:00
|
|
|
BuildRequires: %{python_module six}
|
2017-02-17 16:47:03 +01:00
|
|
|
BuildRequires: python-rpm-macros
|
2018-08-10 15:08:40 +02:00
|
|
|
# require only one version of Sphinx
|
|
|
|
BuildRequires: python3-Sphinx
|
2017-02-24 15:34:14 +01:00
|
|
|
Provides: %{python_module six-doc = %{version}}
|
2018-08-10 15:08:40 +02:00
|
|
|
BuildArch: noarch
|
2015-04-18 12:34:54 +02:00
|
|
|
|
|
|
|
%description
|
2017-09-28 08:01:51 +02:00
|
|
|
Six is a Python 2 and 3 compatibility library. It provides utility
|
|
|
|
functions for smoothing over the differences between the Python
|
|
|
|
versions with the goal of writing Python code that is compatible on
|
|
|
|
both Python versions. See the documentation for more information on
|
2015-04-18 12:34:54 +02:00
|
|
|
what is provided.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n six-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
# due to cyclic requirements between Sphinx and six,
|
|
|
|
# documentation is build in its own package <hpj@urpla.net>
|
|
|
|
cd documentation && make html && rm _build/html/.buildinfo
|
|
|
|
|
|
|
|
%install
|
2018-08-10 15:08:40 +02:00
|
|
|
:
|
2016-01-19 10:29:45 +01:00
|
|
|
|
|
|
|
# Run tests here to avoid dependency loop
|
|
|
|
%check
|
|
|
|
mkdir test
|
|
|
|
cp test_six.py test
|
|
|
|
pushd test
|
2017-02-17 16:47:03 +01:00
|
|
|
%python_exec %{_bindir}/py.test test_six.py
|
2016-01-19 10:29:45 +01:00
|
|
|
popd
|
|
|
|
rm -rf test
|
2015-04-18 12:34:54 +02:00
|
|
|
|
|
|
|
%files
|
2018-08-10 15:08:40 +02:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.rst CHANGES documentation/_build/html
|
2015-04-18 12:34:54 +02:00
|
|
|
|
|
|
|
%changelog
|