* Fix crash on Windows for Python >= 3.12, caused by
distutils module been removed from Python 3.12.
- from version 0.8
* Fix unnecessary runtime dependency on setuptools.
* Explicitly require a first argument called "progname". This is to
avoid the common error not passing a progname by pointing users to it.
This is fully backward compatible
* Issue a warning if first argument looks like an option.
* Fix crash if gs.new_instance() fails.
* Breaking change (only effecting the low-level API):
init_with_args() no longer catches e_Quit,
but raises an exception like for any other error except e_Info.
* Pass correct value to gslib if user_error is set.
* Enhance documentation
* Add some doc-strings.
* Fix some linting issues.
* Add testing with Python 3.10, 3.11, 3.12 and 3.13.
* Revise testing, packaging and CI/CD.
* Make tests independent of fonts, thus avoiding test failures.
* Enhance examples.
- Drop python-ghostscript-update-tests.patch, fixed upstream
- Remove CHANGES.txt from %doc section
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ghostscript?expand=0&rev=5
68 lines
2.0 KiB
RPMSpec
68 lines
2.0 KiB
RPMSpec
#
|
|
# spec file for package python-ghostscript
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-ghostscript
|
|
Version: 0.8.1
|
|
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
|
|
Source: https://files.pythonhosted.org/packages/source/g/ghostscript/ghostscript-%{version}.tar.gz
|
|
Source1: https://gitlab.com/pdftools/python-ghostscript/-/raw/develop/test/testimage.bmp
|
|
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
|
|
BuildRequires: fdupes
|
|
Requires: ghostscript >= 9.0.8
|
|
Requires: python-setuptools
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python interface to the Ghostscript C-API, both high and low-level, based on ctypes.
|
|
|
|
%prep
|
|
%autosetup -p1 -n ghostscript-%{version}
|
|
cp %{SOURCE1} test
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%pytest -v
|
|
|
|
%files %{python_files}
|
|
%doc README.rst
|
|
%license COPYING
|
|
%{python_sitelib}/ghostscript
|
|
%{python_sitelib}/ghostscript-%{version}*-info
|
|
|
|
%changelog
|