Hello community,
here is the log from the commit of package python-argcomplete for
openSUSE:Factory checked in at 2016-11-14 20:14:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-argcomplete (Old)
and /work/SRC/openSUSE:Factory/.python-argcomplete.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-argcomplete"
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-argcomplete/python-argcomplete.changes
2016-01-01 19:50:20.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python-argcomplete.new/python-argcomplete.changes
2016-11-14 20:14:35.000000000 +0100
@@ -1,0 +2,6 @@
+Tue Nov 02 20:50:53 UTC 2016 - [email protected]
+
+- ported back from python3 package including
+ introduced update-alternatives to coexist with corresponding python3 package
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-argcomplete.spec ++++++
--- /var/tmp/diff_new_pack.7uZ9R7/_old 2016-11-14 20:14:36.000000000 +0100
+++ /var/tmp/diff_new_pack.7uZ9R7/_new 2016-11-14 20:14:36.000000000 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-argcomplete
#
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Darin Perusich.
#
# All modifications and additions to the file contributed by third parties
@@ -28,14 +28,7 @@
BuildRequires: python-devel
BuildRequires: python-setuptools
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()")}
-BuildRequires: python-argparse
-Requires: python-argparse
-%else
BuildArch: noarch
-%endif
%description
argcomplete - Bash completion for argparse
@@ -62,20 +55,34 @@
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -rf %{buildroot}%{python_sitelib}/test
+rm %{buildroot}/usr/bin/activate-global-python-argcomplete
+rm %{buildroot}/usr/bin/register-python-argcomplete
+mv %{buildroot}/usr/bin/python-argcomplete-check-easy-install-script \
+ %{buildroot}/usr/bin/python-argcomplete-check-easy-install-script-%{py_ver}
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/
-install -p -m0644
%{buildroot}%{python_sitelib}/argcomplete/bash_completion.d/python-argcomplete.sh
%{buildroot}%{_sysconfdir}/bash_completion.d/
+ln -sf %{_sysconfdir}/alternatives/python-argcomplete.sh
%{buildroot}%{_sysconfdir}/bash_completion.d/
+ln -sf
%{_sysconfdir}/alternatives/python-argcomplete-check-easy-install-script
%{buildroot}%{_bindir}/python-argcomplete-check-easy-install-script
%check
python setup.py test
+%post
+update-alternatives \
+ --install %{_sysconfdir}/bash_completion.d/python-argcomplete.sh
python-argcomplete.sh \
+
%{python_sitelib}/argcomplete/bash_completion.d/python-argcomplete.sh 20 \
+ --slave %{_bindir}/python-argcomplete-check-easy-install-script \
+ python-argcomplete-check-easy-install-script \
+ %{_bindir}/python-argcomplete-check-easy-install-script-%{py_ver}
+
%files
%defattr(-,root,root,-)
%doc LICENSE.rst README.rst
-%{_bindir}/activate-global-python-argcomplete
-%{_bindir}/python-argcomplete-check-easy-install-script
-%{_bindir}/register-python-argcomplete
+%ghost %{_bindir}/python-argcomplete-check-easy-install-script
+%{_bindir}/python-argcomplete-check-easy-install-script-%{py_ver}
%{python_sitelib}/argcomplete-%{version}-py%{py_ver}.egg-info
%{python_sitelib}/argcomplete
-%config %{_sysconfdir}/bash_completion.d/python-argcomplete.sh
+%{_sysconfdir}/bash_completion.d/python-argcomplete.sh
+%ghost %{_sysconfdir}/alternatives/python-argcomplete.sh
+%ghost %{_sysconfdir}/alternatives/python-argcomplete-check-easy-install-script
%changelog