Hello community,

here is the log from the commit of package python-tqdm for openSUSE:Factory 
checked in at 2020-11-05 21:54:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-tqdm (Old)
 and      /work/SRC/openSUSE:Factory/.python-tqdm.new.11331 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-tqdm"

Thu Nov  5 21:54:38 2020 rev:38 rq:845787 version:4.50.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-tqdm/python-tqdm.changes  2020-10-29 
09:48:52.492196522 +0100
+++ /work/SRC/openSUSE:Factory/.python-tqdm.new.11331/python-tqdm.changes       
2020-11-05 21:55:16.152137061 +0100
@@ -1,0 +2,6 @@
+Tue Nov  3 14:06:32 UTC 2020 - Benjamin Greiner <c...@bnavigator.de>
+
+- move bash completion into separate package to avoid conflicts
+  with multiple python flavors gh#openSUSE/python-rpm-macros#66 
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-tqdm.spec ++++++
--- /var/tmp/diff_new_pack.tZejLA/_old  2020-11-05 21:55:19.080130477 +0100
+++ /var/tmp/diff_new_pack.tZejLA/_new  2020-11-05 21:55:19.084130469 +0100
@@ -17,7 +17,7 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define         oldpython python
+%define         allpython python
 %global flavor @BUILD_FLAVOR@%{nil}
 %if "%{flavor}" == "test"
 %define test 1
@@ -60,9 +60,26 @@
 tqdm's overhead is one order of magnitude less than python-progressbar
 and does not require ncurses.
 
+%package -n %allpython-tqdm-bash-completion
+Summary:        Bash completion for python-tqdm
+Requires:       bash-completion
+Supplements:    ((%{lua: print(string.sub(rpm.expand("%{python_module tqdm 
or}"),0,-4))}) and bash)
+
+%description -n %allpython-tqdm-bash-completion
+tqdm lets you output a progress meter from within loops by wrapping
+any iterable with "tqdm(iterable)".
+tqdm's overhead is one order of magnitude less than python-progressbar
+and does not require ncurses.
+
+This package provides the completion file for bash
+
+
 %prep
 %setup -q -n tqdm-%{version}
 %patch0 -p1
+# remove bash shebang for completion script
+sed -i '1 s/^#!.*/# bash completion for tqdm       -*- shell-script -*-/' 
tqdm/completion.sh
+chmod a-x tqdm/completion.sh
 
 %build
 %python_build
@@ -77,7 +94,7 @@
 
 %if !%{with test}
 %post
-%{python_install_alternative tqdm tqdm.1}
+%python_install_alternative tqdm
 
 %postun
 %python_uninstall_alternative tqdm
@@ -99,8 +116,11 @@
 %doc examples/
 %license LICENCE
 %{python_sitelib}/tqdm/
-%{python_sitelib}/tqdm-%{version}-py*.egg-info
+%{python_sitelib}/tqdm-%{version}*-info
 %python_alternative %{_bindir}/tqdm
+
+%files -n %allpython-tqdm-bash-completion
+%license LICENCE
 %{_datadir}/bash-completion/completions/tqdm
 %endif
 


Reply via email to