File python-pymupdf4llm.spec of Package python-pymupdf4llm

#
# spec file for package python-pymupdf4llm
#
# 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/
#

%define pythons python3
Name:           python-pymupdf4llm
Version:        0.0.17
Release:        0
Summary:        PyMuPDF Utilities for LLM/RAG
License:        AGPL-3.0-only
URL:            https://github.com/pymupdf/RAG
Source:         https://files.pythonhosted.org/packages/source/p/pymupdf4llm/pymupdf4llm-%{version}.tar.gz
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
# SECTION test requirements
BuildRequires:  %{python_module PyMuPDF >= 1.24.10}
# /SECTION
BuildRequires:  fdupes
Requires:       python-PyMuPDF >= 1.24.10
BuildArch:      noarch
%python_subpackages

%description
PyMuPDF Utilities for LLM/RAG

%prep
%autosetup -p1 -n pymupdf4llm-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%doc README.md
%{python_sitelib}/pymupdf4llm
%{python_sitelib}/pymupdf4llm-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by