File python-groundingdino-py.spec of Package python-groundingdino-py
#
# spec file for package python-groundingdino-py
#
# Copyright (c) 2025 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-groundingdino-py
Version: 0.4.0+git20250806.2e4e563
Release: 0
Summary: open-set object detector
License: Apache-2.0
URL: https://github.com/giswqs/GroundingDINO
Source: groundingdino-py-0.4.0+git20250806.2e4e563.zip
Patch: groundingdino-py-fix-setup.patch
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
# SECTION test requirements
# BuildRequires: %%{python_module addict}
# BuildRequires: %%{python_module numpy}
# BuildRequires: %%{python_module opencv-python}
# BuildRequires: %%{python_module pycocotools}
# BuildRequires: %%{python_module supervision >= 0.22.0}
# BuildRequires: %%{python_module timm}
# BuildRequires: %%{python_module pytorch}
# BuildRequires: %%{python_module torchvision}
# BuildRequires: %%{python_module transformers}
# BuildRequires: %%{python_module yapf}
# /SECTION
BuildRequires: fdupes
BuildRequires: unzip
Requires: python-addict
Requires: python-numpy
Requires: python-opencv
Requires: python-pycocotools
Requires: python-supervision >= 0.22.0
Requires: python-timm
Requires: python-pytorch
Requires: python-torchvision
Requires: python-transformers
Requires: python-yapf
BuildArch: noarch
%python_subpackages
%description
open-set object detector
%prep
%autosetup -p1 -n GroundingDINO-2e4e563
sed -i 's/@VERSION@/%{version}/' setup.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/groundingdino
%{python_sitelib}/groundingdino-%{version}.dist-info
%changelog