forked from pool/python-pyfiglet
Accepting request 701748 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/701748 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyfiglet?expand=0&rev=3
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:97d59651b40da6ddf7e961157c480a7a04b48214d8c7231adc8c15e43aa5d722
|
||||
size 775038
|
3
pyfiglet-0.8.post1.tar.gz
Normal file
3
pyfiglet-0.8.post1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c6c2321755d09267b438ec7b936825a4910fec696292139e664ca8670e103639
|
||||
size 634618
|
@@ -1,3 +1,14 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 8 17:49:32 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
|
||||
|
||||
- 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
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 8 15:00:58 UTC 2018 - Antonio Larrosa <alarrosa@suse.com>
|
||||
|
||||
|
@@ -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