forked from pool/python-six
		
	- 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:
		
				
					committed by
					
						
						Git OBS Bridge
					
				
			
			
				
	
			
			
			
						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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user