15
0

- Add testimage.bmp to proper sources, delete _service

different results depending on ghostscript version and platform:
  f2eaf4c9ae 
  * python-ghostscript-update-tests.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ghostscript?expand=0&rev=2
This commit is contained in:
2024-09-17 13:21:22 +00:00
committed by Git OBS Bridge
parent 4fb881a2a4
commit 3ce0b69c55
4 changed files with 16 additions and 17 deletions

View File

@@ -12,7 +12,8 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
@@ -22,16 +23,17 @@ Release: 0
License: GPL-3.0-or-later
Summary: Python interface to the Ghostscript C-API
Group: Development/Languages/Python
Url: https://gitlab.com/pdftools/python-ghostscript
URL: https://gitlab.com/pdftools/python-ghostscript
Source: https://files.pythonhosted.org/packages/source/g/ghostscript/ghostscript-%{version}.tar.gz
# Previous tests were dependent on fonts and generated different results
Source1: https://gitlab.com/pdftools/python-ghostscript/-/raw/develop/test/testimage.bmp
# Previous tests were dependent on fonts and generated different results
# depending on ghostscript version and platform
Patch1: python-ghostscript-update-tests.patch
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module devel}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: ghostscript >= 9.0.8
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
@@ -47,7 +49,7 @@ Python interface to the Ghostscript C-API, both high and low-level, based on cty
%prep
%autosetup -p1 -n ghostscript-%{version}
mv %{_sourcedir}/testimage.bmp test
mv %{SOURCE1} test
%build
%pyproject_wheel
@@ -59,12 +61,10 @@ mv %{_sourcedir}/testimage.bmp test
%check
%pytest -v
%files %{python_files}
%doc CHANGES.txt README.rst
%license COPYING
%{python_sitelib}/ghostscript
%{python_sitelib}/ghostscript-%{version}*-info
%changelog