diff --git a/python-numpydoc.changes b/python-numpydoc.changes index 54478ff..930fa9c 100644 --- a/python-numpydoc.changes +++ b/python-numpydoc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Nov 08 20:43:00 UTC 2014 - Led + +- fix bashism in pre script + ------------------------------------------------------------------- Thu Oct 31 12:25:04 UTC 2013 - toddrme2178@gmail.com diff --git a/python-numpydoc.spec b/python-numpydoc.spec index b333616..ad7a754 100644 --- a/python-numpydoc.spec +++ b/python-numpydoc.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -13,15 +13,16 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Name: python-numpydoc Version: 0.4 Release: 0 -License: BSD-3-Clause 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 +Url: http://github.com/numpy/numpy/tree/master/doc/sphinxext Source: https://pypi.python.org/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz BuildRequires: python-devel BuildRequires: python-setuptools @@ -60,8 +61,7 @@ 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: -[[ ! -L %{_bindir}/autosummary_generate ]] && rm -f %{_bindir}/autosummary_generate -exit 0 +[ -h %{_bindir}/autosummary_generate ] || rm -f %{_bindir}/autosummary_generate %post update-alternatives \ @@ -72,7 +72,6 @@ if [ $1 -eq 0 ] ; then update-alternatives --remove autosummary_generate %{_bindir}/autosummary_generate-%{py_ver} fi - %files %defattr(-,root,root,-) %doc LICENSE.txt README.txt