1
0

Accepting request 261624 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/261624
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-numpydoc?expand=0&rev=3
This commit is contained in:
2014-11-18 21:45:05 +00:00
committed by Git OBS Bridge
parent 4a389322ef
commit f6f790c93f
2 changed files with 10 additions and 6 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 08 20:43:00 UTC 2014 - Led <ledest@gmail.com>
- fix bashism in pre script
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 31 12:25:04 UTC 2013 - toddrme2178@gmail.com Thu Oct 31 12:25:04 UTC 2013 - toddrme2178@gmail.com

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-numpydoc # spec file for package python-numpydoc
# #
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -13,15 +13,16 @@
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-numpydoc Name: python-numpydoc
Version: 0.4 Version: 0.4
Release: 0 Release: 0
License: BSD-3-Clause
Summary: Sphinx extension to support docstrings in Numpy format Summary: Sphinx extension to support docstrings in Numpy format
Url: http://github.com/numpy/numpy/tree/master/doc/sphinxext License: BSD-3-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://github.com/numpy/numpy/tree/master/doc/sphinxext
Source: https://pypi.python.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz Source: https://pypi.python.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
BuildRequires: python-devel BuildRequires: python-devel
BuildRequires: python-setuptools BuildRequires: python-setuptools
@@ -60,8 +61,7 @@ python setup.py test
%pre %pre
# Since /usr/bin/autosummary_generate became ghosted to be used with update-alternatives, we have # 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: # to get rid of the old binary resulting from the non-update-alternativies-ified package:
[[ ! -L %{_bindir}/autosummary_generate ]] && rm -f %{_bindir}/autosummary_generate [ -h %{_bindir}/autosummary_generate ] || rm -f %{_bindir}/autosummary_generate
exit 0
%post %post
update-alternatives \ update-alternatives \
@@ -72,7 +72,6 @@ if [ $1 -eq 0 ] ; then
update-alternatives --remove autosummary_generate %{_bindir}/autosummary_generate-%{py_ver} update-alternatives --remove autosummary_generate %{_bindir}/autosummary_generate-%{py_ver}
fi fi
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc LICENSE.txt README.txt %doc LICENSE.txt README.txt