forked from pool/python-ghostscript
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user