14
0

Accepting request 807661 from devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/807661
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyfiglet?expand=0&rev=4
This commit is contained in:
2020-05-26 15:17:25 +00:00
committed by Git OBS Bridge
2 changed files with 20 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 20 07:26:26 UTC 2020 - Petr Gajdos <pgajdos@suse.com>
- %python3_only -> %python_alternative
-------------------------------------------------------------------
Wed May 8 17:49:32 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -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 @@ Release: 0
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 @@ mv pyfiglet/test.py .
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 @@ install -m 0644 doc/pyfiglet.1 %{buildroot}%{_mandir}/man1/
%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