Accepting request 184924 from devel:languages:python

- Run testsuite
- Build and package HTML documentation

OBS-URL: https://build.opensuse.org/request/show/184924
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-six?expand=0&rev=8
This commit is contained in:
Stephan Kulow 2013-07-31 15:24:50 +00:00 committed by Git OBS Bridge
commit 93a44a0137
2 changed files with 21 additions and 6 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jul 30 07:41:52 UTC 2013 - speilicke@suse.com
- Run testsuite
- Build and package HTML documentation
-------------------------------------------------------------------
Mon Apr 29 11:14:05 UTC 2013 - dmueller@suse.com

View File

@ -17,16 +17,21 @@
%define modname six
Name: python-%{modname}
Name: python-six
Version: 1.3.0
Release: 0
Url: http://pypi.python.org/pypi/six/
Summary: Python 2 and 3 compatibility utilities
License: MIT
Group: Development/Libraries/Python
Source: http://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.tar.gz
Source: http://pypi.python.org/packages/source/s/six/six-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
# Documentation requirements:
BuildRequires: python-Sphinx
# Test requirements:
BuildRequires: python-py
BuildRequires: python-pytest
%if 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%else
@ -42,18 +47,22 @@ both Python versions. See the documentation for more information on
what is provided.
%prep
%setup -q -n %{modname}-%{version}
%setup -q -n six-%{version}
%build
python setup.py build
cd documentation && make html && rm _build/html/.buildinfo
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%check
python test_six.py
%files
%defattr(-,root,root)
%doc LICENSE README
%{python_sitelib}/%{modname}.py*
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
%doc LICENSE README documentation/_build/html
%{python_sitelib}/six.py*
%{python_sitelib}/six-%{version}-py%{py_ver}.egg-info
%changelog