forked from pool/python-numpydoc
		
	Accepting request 307083 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/307083 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpydoc?expand=0&rev=4
This commit is contained in:
		
				
					committed by
					
						
						Git OBS Bridge
					
				
			
			
				
	
			
			
			
						parent
						
							f6f790c93f
						
					
				
				
					commit
					3d594bc873
				
			@@ -1,3 +0,0 @@
 | 
			
		||||
version https://git-lfs.github.com/spec/v1
 | 
			
		||||
oid sha256:20e07c60766a7a044f228de5bdcc0d10b84a9f0b460e0c09422a4f60ef21ff8f
 | 
			
		||||
size 28972
 | 
			
		||||
							
								
								
									
										3
									
								
								numpydoc-0.5.tar.gz
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								numpydoc-0.5.tar.gz
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
version https://git-lfs.github.com/spec/v1
 | 
			
		||||
oid sha256:93f050bceb52489d92f85c346981f1962c867c01f233d3252894ceae5cb48d34
 | 
			
		||||
size 32051
 | 
			
		||||
@@ -1,3 +1,15 @@
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Thu May  7 18:52:25 UTC 2015 - benoit.monin@gmx.fr
 | 
			
		||||
 | 
			
		||||
- update to version 0.5:
 | 
			
		||||
  * no changelog available
 | 
			
		||||
- update project URL
 | 
			
		||||
- add python-matplotlib and python-nose as test requirements
 | 
			
		||||
- remove all update-alternatives logic since autosummary_generate
 | 
			
		||||
  is not provided anymore
 | 
			
		||||
- pass -q to test to avoid spamming the build log
 | 
			
		||||
- rename README.txt to README.rst: changed upstream
 | 
			
		||||
 | 
			
		||||
-------------------------------------------------------------------
 | 
			
		||||
Sat Nov 08 20:43:00 UTC 2014 - Led <ledest@gmail.com>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,7 @@
 | 
			
		||||
#
 | 
			
		||||
# spec file for package python-numpydoc
 | 
			
		||||
#
 | 
			
		||||
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 | 
			
		||||
# Copyright (c) 2015 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
 | 
			
		||||
@@ -17,20 +17,20 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Name:           python-numpydoc
 | 
			
		||||
Version:        0.4
 | 
			
		||||
Version:        0.5
 | 
			
		||||
Release:        0
 | 
			
		||||
Summary:        Sphinx extension to support docstrings in Numpy format
 | 
			
		||||
License:        BSD-3-Clause
 | 
			
		||||
Group:          Development/Languages/Python
 | 
			
		||||
Url:            http://github.com/numpy/numpy/tree/master/doc/sphinxext
 | 
			
		||||
Url:            https://github.com/numpy/numpydoc
 | 
			
		||||
Source:         https://pypi.python.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
 | 
			
		||||
BuildRequires:  python-devel
 | 
			
		||||
BuildRequires:  python-setuptools
 | 
			
		||||
# Test requirements
 | 
			
		||||
BuildRequires:  python-Sphinx >= 1.0.1
 | 
			
		||||
BuildRequires:  python-matplotlib
 | 
			
		||||
BuildRequires:  python-nose
 | 
			
		||||
Requires:       python-Sphinx >= 1.0.1
 | 
			
		||||
Requires(post): update-alternatives
 | 
			
		||||
Requires(postun): update-alternatives
 | 
			
		||||
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 | 
			
		||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
 | 
			
		||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 | 
			
		||||
@@ -45,38 +45,19 @@ of them in third-party projects.
 | 
			
		||||
 | 
			
		||||
%prep
 | 
			
		||||
%setup -q -n numpydoc-%{version}
 | 
			
		||||
# NOTE(saschpe): Suffix entry point with interpreter version to allow for update-alternatives later on:
 | 
			
		||||
sed -i "s|autosummary_generate =|autosummary_generate-%{py_ver} =|" setup.py
 | 
			
		||||
 | 
			
		||||
%build
 | 
			
		||||
python setup.py build
 | 
			
		||||
 | 
			
		||||
%install
 | 
			
		||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 | 
			
		||||
ln -s %{_bindir}/autosummary_generate-%{py_ver} %{buildroot}%{_bindir}/autosummary_generate
 | 
			
		||||
 | 
			
		||||
%check
 | 
			
		||||
python setup.py test
 | 
			
		||||
 | 
			
		||||
%pre
 | 
			
		||||
# Since /usr/bin/autosummary_generate became ghosted to be used with update-alternatives, we have
 | 
			
		||||
# to get rid of the old binary resulting from the non-update-alternativies-ified package:
 | 
			
		||||
[ -h %{_bindir}/autosummary_generate ] || rm -f %{_bindir}/autosummary_generate
 | 
			
		||||
 | 
			
		||||
%post
 | 
			
		||||
update-alternatives \
 | 
			
		||||
    --install %{_bindir}/autosummary_generate autosummary_generate %{_bindir}/autosummary_generate-%{py_ver} 20
 | 
			
		||||
 | 
			
		||||
%preun
 | 
			
		||||
if [ $1 -eq 0 ] ; then
 | 
			
		||||
    update-alternatives --remove autosummary_generate %{_bindir}/autosummary_generate-%{py_ver}
 | 
			
		||||
fi
 | 
			
		||||
python setup.py -q test
 | 
			
		||||
 | 
			
		||||
%files
 | 
			
		||||
%defattr(-,root,root,-)
 | 
			
		||||
%doc LICENSE.txt README.txt
 | 
			
		||||
%ghost %attr(0755,root,root) %{_bindir}/autosummary_generate
 | 
			
		||||
%{_bindir}/autosummary_generate-%{py_ver}
 | 
			
		||||
%doc LICENSE.txt README.rst
 | 
			
		||||
%{python_sitelib}/numpydoc/
 | 
			
		||||
%{python_sitelib}/numpydoc-%{version}-py*.egg-info
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user