forked from pool/python-pyfiglet
Accepting request 701664 from home:jayvdb:py-wheels
- Activate test suite - Remove tests from runtime package - Install manpage and add doc/figfont.txt to %doc - Update to v0.8 * Change LICENSE to MIT * Provide font installation option (-L) and remove unlicenced fonts from the distribution OBS-URL: https://build.opensuse.org/request/show/701664 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyfiglet?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
8cd0899a5e
commit
dbeaced5c1
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyfiglet
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -18,15 +18,16 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pyfiglet
|
||||
Version: 0.7.6
|
||||
Version: 0.8.post1
|
||||
Release: 0
|
||||
Summary: Pure Python FIGlet implementation
|
||||
License: GPL-2.0-or-later
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
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
|
||||
BuildArch: noarch
|
||||
|
||||
@@ -38,23 +39,33 @@ Python. It takes ASCII text and renders it in ASCII art fonts.
|
||||
|
||||
%prep
|
||||
%setup -q -n pyfiglet-%{version}
|
||||
sed -i -e '/^#!\//, 1d' pyfiglet/__init__.py pyfiglet/test.py
|
||||
sed -i -e '1{/^#!/d}' pyfiglet/__init__.py
|
||||
mv pyfiglet/test.py .
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
|
||||
install -d -m 0755 %{buildroot}%{_mandir}/man1
|
||||
install -m 0644 doc/pyfiglet.1 %{buildroot}%{_mandir}/man1/
|
||||
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
# Fix python-bytecode-inconsistent-mtime
|
||||
%python_expand $python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/pyfiglet/fonts/
|
||||
%python_expand $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/pyfiglet/fonts/
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python test.py
|
||||
|
||||
%files %{python_files}
|
||||
%doc README
|
||||
%doc README doc/figfont.txt
|
||||
%license LICENSE
|
||||
%python3_only %{_bindir}/pyfiglet
|
||||
%python3_only %{_mandir}/man1/pyfiglet.1*
|
||||
%{python_sitelib}/*
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user