Hello community,
here is the log from the commit of package python-python-barcode for
openSUSE:Factory checked in at 2020-05-26 17:18:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-barcode (Old)
and /work/SRC/openSUSE:Factory/.python-python-barcode.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-barcode"
Tue May 26 17:18:17 2020 rev:5 rq:807675 version:0.11.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-python-barcode/python-python-barcode.changes
2020-03-24 22:34:21.117148009 +0100
+++
/work/SRC/openSUSE:Factory/.python-python-barcode.new.2738/python-python-barcode.changes
2020-05-26 17:18:47.763907179 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:48 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-barcode.spec ++++++
--- /var/tmp/diff_new_pack.bmKNLi/_old 2020-05-26 17:18:48.667909122 +0200
+++ /var/tmp/diff_new_pack.bmKNLi/_new 2020-05-26 17:18:48.671909131 +0200
@@ -37,6 +37,8 @@
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: dejavu-fonts
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
Provides: python-pyBarcode
Obsoletes: python-pyBarcode
BuildArch: noarch
@@ -57,9 +59,10 @@
%install
%python_install
+%python_clone -a %{buildroot}%{_bindir}/python-barcode
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
-find "%{buildroot}" -type f -name "*.ttf" | while read i; do
+find %{buildroot} -type f -name "*.ttf" | while read i; do
ln -fs "%{_datadir}/fonts/truetype/${i##*/}" "$i"
done
@@ -67,10 +70,16 @@
sed -i '/cov/d' setup.cfg
%pytest
+%post
+%python_install_alternative python-barcode
+
+%postun
+%python_uninstall_alternative python-barcode
+
%files %{python_files}
%doc docs/*
%license LICENCE
%{python_sitelib}/*
-%python3_only %{_bindir}/python-barcode
+%python_alternative %{_bindir}/python-barcode
%changelog