Hello community,
here is the log from the commit of package python-pyfiglet for openSUSE:Factory
checked in at 2020-05-26 17:17:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyfiglet (Old)
and /work/SRC/openSUSE:Factory/.python-pyfiglet.new.2738 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyfiglet"
Tue May 26 17:17:25 2020 rev:4 rq:807661 version:0.8.post1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyfiglet/python-pyfiglet.changes
2019-05-22 15:39:22.734536158 +0200
+++
/work/SRC/openSUSE:Factory/.python-pyfiglet.new.2738/python-pyfiglet.changes
2020-05-26 17:18:16.759840525 +0200
@@ -1,0 +2,5 @@
+Wed May 20 07:26:26 UTC 2020 - Petr Gajdos <[email protected]>
+
+- %python3_only -> %python_alternative
+
+-------------------------------------------------------------------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pyfiglet.spec ++++++
--- /var/tmp/diff_new_pack.SRdP9N/_old 2020-05-26 17:18:17.831842830 +0200
+++ /var/tmp/diff_new_pack.SRdP9N/_new 2020-05-26 17:18:17.831842830 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pyfiglet
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,14 +23,15 @@
Summary: Pure Python FIGlet implementation
License: MIT
Group: Development/Languages/Python
-Url: https://github.com/pwaller/pyfiglet
+URL: https://github.com/pwaller/pyfiglet
Source:
https://files.pythonhosted.org/packages/source/p/pyfiglet/pyfiglet-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: figlet
BuildRequires: python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
-
%python_subpackages
%description
@@ -51,6 +52,9 @@
install -d -m 0755 %{buildroot}%{_mandir}/man1
install -m 0644 doc/pyfiglet.1 %{buildroot}%{_mandir}/man1/
+%python_clone -a %{buildroot}%{_mandir}/man1/pyfiglet.1
+%python_clone -a %{buildroot}%{_bindir}/pyfiglet
+
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# Fix python-bytecode-inconsistent-mtime
@@ -61,11 +65,17 @@
%check
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python test.py
+%post
+%python_install_alternative pyfiglet pyfiglet.1
+
+%postun
+%python_uninstall_alternative pyfiglet pyfiglet.1
+
%files %{python_files}
%doc README doc/figfont.txt
%license LICENSE
-%python3_only %{_bindir}/pyfiglet
-%python3_only %{_mandir}/man1/pyfiglet.1*
+%python_alternative %{_bindir}/pyfiglet
+%python_alternative %{_mandir}/man1/pyfiglet.1%{ext_man}
%{python_sitelib}/*
%changelog