14
0
forked from pool/python-pydyf
Files
python-pydyf/python-pydyf.spec
Dirk Mueller c2ad52dec2 - update to 0.11.0:
* Remove deprecated version and identifier parameters
  * Change some function names for consistency
  * Allow extra operands for special colors

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydyf?expand=0&rev=24
2024-08-18 16:55:51 +00:00

67 lines
1.9 KiB
RPMSpec

#
# spec file for package python-pydyf
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2022-2023 Dr. Axel Braun <DocB@openSUSE.org>
#
# 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-pydyf
Version: 0.11.0
Release: 0
Summary: A low-level PDF generator
License: BSD-3-Clause
URL: https://www.courtbouillon.org/pydyf
Source: https://files.pythonhosted.org/packages/source/p/pydyf/pydyf-%{version}.tar.gz
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module flit-core}
BuildRequires: %{python_module pip}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
# SECTION Testing
BuildRequires: %{python_module Pillow}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
BuildRequires: gs
# /SECTION
%python_subpackages
%description
A low-level PDF generator written in Python and based on PDF specification 1.7.
%prep
%setup -q -n pydyf-%{version}
sed -i 's:--isort --flake8::' pyproject.toml
chmod -x pydyf/__init__.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/pydyf
%{python_sitelib}/pydyf-%{version}*-info
%changelog