diff --git a/pyfiglet-0.7.6.tar.gz b/pyfiglet-0.7.6.tar.gz deleted file mode 100644 index 4cb16a2..0000000 --- a/pyfiglet-0.7.6.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:97d59651b40da6ddf7e961157c480a7a04b48214d8c7231adc8c15e43aa5d722 -size 775038 diff --git a/pyfiglet-0.8.post1.tar.gz b/pyfiglet-0.8.post1.tar.gz new file mode 100644 index 0000000..09a0257 --- /dev/null +++ b/pyfiglet-0.8.post1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6c2321755d09267b438ec7b936825a4910fec696292139e664ca8670e103639 +size 634618 diff --git a/python-pyfiglet.changes b/python-pyfiglet.changes index 0e9dc24..2aa777a 100644 --- a/python-pyfiglet.changes +++ b/python-pyfiglet.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed May 8 17:49:32 UTC 2019 - John Vandenberg + +- 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 diff --git a/python-pyfiglet.spec b/python-pyfiglet.spec index 3fd39d6..ff25a00 100644 --- a/python-pyfiglet.spec +++ b/python-pyfiglet.spec @@ -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