diff --git a/_service b/_service
deleted file mode 100644
index 74dec7a..0000000
--- a/_service
+++ /dev/null
@@ -1,7 +0,0 @@
-
-
- http
- gitlab.com
- pdftools/python-ghostscript/-/raw/develop/test/testimage.bmp
-
-
\ No newline at end of file
diff --git a/python-ghostscript.changes b/python-ghostscript.changes
index 41be4fb..599c8c1 100644
--- a/python-ghostscript.changes
+++ b/python-ghostscript.changes
@@ -1,9 +1,15 @@
+-------------------------------------------------------------------
+Tue Sep 17 13:19:05 UTC 2024 - Markéta Machová
+
+- Add testimage.bmp to proper sources, delete _service
+
-------------------------------------------------------------------
Mon Sep 16 13:34:01 UTC 2024 - Aline Werner
- 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
diff --git a/python-ghostscript.spec b/python-ghostscript.spec
index f6e453f..c711b3a 100644
--- a/python-ghostscript.spec
+++ b/python-ghostscript.spec
@@ -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
diff --git a/_service:download_url:testimage.bmp b/testimage.bmp
similarity index 100%
rename from _service:download_url:testimage.bmp
rename to testimage.bmp