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:
7
_service
7
_service
@@ -1,7 +0,0 @@
|
||||
<services>
|
||||
<service name="download_url">
|
||||
<param name="protocol">http</param>
|
||||
<param name="host">gitlab.com</param>
|
||||
<param name="path">pdftools/python-ghostscript/-/raw/develop/test/testimage.bmp</param>
|
||||
</service>
|
||||
</services>
|
||||
@@ -1,9 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 17 13:19:05 UTC 2024 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Add testimage.bmp to proper sources, delete _service
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 16 13:34:01 UTC 2024 - Aline Werner <aline.werner@suse.com>
|
||||
|
||||
- Add patch to change the tests to not use fonts, as they generated
|
||||
different results depending on ghostscript version and platform:
|
||||
https://gitlab.com/pdftools/python-ghostscript/-/commit/f2eaf4c9ae0907042b9a47e1e093f0414f50bdc2
|
||||
different results depending on ghostscript version and platform:
|
||||
https://gitlab.com/pdftools/python-ghostscript/-/commit/f2eaf4c9ae0907042b9a47e1e093f0414f50bdc2
|
||||
* python-ghostscript-update-tests.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 23 20:17:22 UTC 2024 - Aline Werner <aline.werner@suse.com>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
Before Width: | Height: | Size: 918 B After Width: | Height: | Size: 918 B |
Reference in New Issue
Block a user