diff --git a/python-argcomplete.changes b/python-argcomplete.changes index c55e685..23cbb03 100644 --- a/python-argcomplete.changes +++ b/python-argcomplete.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Thu May 2 14:04:51 UTC 2013 - speilicke@suse.com + +- Fix SLE builds +- Add LICENSE.rst and README.rst +- Run testsuite + ------------------------------------------------------------------- Mon Apr 29 11:10:08 UTC 2013 - darin@darins.net diff --git a/python-argcomplete.spec b/python-argcomplete.spec index 021142c..e480333 100644 --- a/python-argcomplete.spec +++ b/python-argcomplete.spec @@ -2,6 +2,18 @@ # spec file for package python-argcomplete # # Copyright (c) 2013 Darin Perusich. +# Copyright (c) 2012 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: python-argcomplete @@ -13,9 +25,15 @@ License: Apache-2.0 Group: Development/Languages/Python Source: http://pypi.python.org/packages/source/a/argcomplete/argcomplete-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildArch: noarch BuildRequires: python-devel BuildRequires: python-distribute +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +BuildRequires: python-argparse +Requires: python-argparse +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch +%endif %description argcomplete - Bash completion for argparse @@ -37,21 +55,20 @@ resources over the network). %setup -q -n argcomplete-%{version} %build -export CFLAGS="%{optflags}" python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%clean -rm -rf %{buildroot} +%check +python setup.py test %files %defattr(-,root,root,-) -# You may have to add additional files here (documentation and binaries mostly) -%{python_sitelib}/* +%doc LICENSE.rst README.rst %{_bindir}/activate-global-python-argcomplete %{_bindir}/python-argcomplete-check-easy-install-script %{_bindir}/register-python-argcomplete +%{python_sitelib}/* %changelog