Hello community,
here is the log from the commit of package python-optcomplete for
openSUSE:Factory checked in at 2017-08-16 16:11:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-optcomplete (Old)
and /work/SRC/openSUSE:Factory/.python-optcomplete.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-optcomplete"
Wed Aug 16 16:11:25 2017 rev:11 rq:513726 version:1.2_devel
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-optcomplete/python-optcomplete.changes
2015-01-03 22:00:54.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.python-optcomplete.new/python-optcomplete.changes
2017-08-16 16:11:31.203858419 +0200
@@ -1,0 +2,6 @@
+Fri Jul 21 10:21:22 UTC 2017 - [email protected]
+
+- clean up spec file
+- fix build in tumbleweed
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-optcomplete.spec ++++++
--- /var/tmp/diff_new_pack.xXp1sc/_old 2017-08-16 16:11:31.951753438 +0200
+++ /var/tmp/diff_new_pack.xXp1sc/_new 2017-08-16 16:11:31.963751754 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-optcomplete
#
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 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
@@ -16,26 +16,21 @@
#
+%{!?license: %global license %doc}
%define modname optcomplete
-%define _version 1.2_devel
%define unmangled_version 1.2-devel
-%define release 1
-
Name: python-optcomplete
+Version: 1.2_devel
+Release: 0
Summary: Automatic Shell Completion Support for Scripts Using Optparse
License: BSD-3-Clause
Group: Development/Libraries/Python
-Version: %{_version}
-Release: 0
+Url: http://furius.ca/optcomplete
Source0: %{modname}-%{unmangled_version}.tar.bz2
Patch1: optcomplete-1.2-devel-fix-shebang.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
-BuildArch: noarch
-%endif
-Url: http://furius.ca/optcomplete
BuildRequires: python-devel
%py_requires
+BuildArch: noarch
%description
This module provide automatic bash completion support for programs that use the
@@ -55,37 +50,30 @@
You need to activate bash completion using the shell script function that comes
with optcomplete (see http://furius.ca/optcomplete for more details).
-
%prep
-%setup -n %{modname}-%{unmangled_version}
+%setup -q -n %{modname}-%{unmangled_version}
%patch1 -p1
+sed -i '1s/^#!\/usr\/bin\/env python$/#!\/usr\/bin\/python2/' bin/*
%build
python setup.py build
%install
python setup.py install \
- --root=$RPM_BUILD_ROOT \
+ --root=%{buildroot} \
--prefix=%{_prefix} \
--record=%{name}.files
-mkdir -p $RPM_BUILD_ROOT%_sysconfdir/bash_completion.d
-
mv bin example
-chmod -x example/README
+chmod -x example/*
mkdir bash_completion
mv etc/bashrc etc/env etc/optcomplete.zsh bash_completion/
chmod -x bash_completion/optcomplete.zsh
-
-cp -v etc/optcomplete.bash \
- $RPM_BUILD_ROOT%_sysconfdir/bash_completion.d/optcomplete.sh
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+install -Dm 664 etc/optcomplete.bash
%{buildroot}%{_sysconfdir}/bash_completion.d/optcomplete.sh
%files -f %{name}.files
-%defattr(-,root,root)
-%config %_sysconfdir/bash_completion.d/*
-%doc README TODO VERSION CHANGES COPYING CREDITS
+%config %{_sysconfdir}/bash_completion.d/*
+%doc README TODO VERSION CHANGES CREDITS
+%license COPYING
%doc doc/* example bash_completion
%changelog