- Run testsuite
- Build and package HTML documentation OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-six?expand=0&rev=11
This commit is contained in:
parent
e5f764158f
commit
9f812d5766
@ -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
|
Mon Apr 29 11:14:05 UTC 2013 - dmueller@suse.com
|
||||||
|
|
||||||
|
@ -17,16 +17,21 @@
|
|||||||
|
|
||||||
|
|
||||||
%define modname six
|
%define modname six
|
||||||
Name: python-%{modname}
|
Name: python-six
|
||||||
Version: 1.3.0
|
Version: 1.3.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://pypi.python.org/pypi/six/
|
Url: http://pypi.python.org/pypi/six/
|
||||||
Summary: Python 2 and 3 compatibility utilities
|
Summary: Python 2 and 3 compatibility utilities
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Python
|
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
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
# Documentation requirements:
|
||||||
|
BuildRequires: python-Sphinx
|
||||||
|
# Test requirements:
|
||||||
|
BuildRequires: python-py
|
||||||
|
BuildRequires: python-pytest
|
||||||
%if 0%{?suse_version} <= 1110
|
%if 0%{?suse_version} <= 1110
|
||||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
|
||||||
%else
|
%else
|
||||||
@ -42,18 +47,22 @@ both Python versions. See the documentation for more information on
|
|||||||
what is provided.
|
what is provided.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n six-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
python setup.py build
|
||||||
|
cd documentation && make html && rm _build/html/.buildinfo
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
|
%check
|
||||||
|
python test_six.py
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc LICENSE README
|
%doc LICENSE README documentation/_build/html
|
||||||
%{python_sitelib}/%{modname}.py*
|
%{python_sitelib}/six.py*
|
||||||
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
|
%{python_sitelib}/six-%{version}-py%{py_ver}.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user