File python-picamera2.spec of Package python-picamera2

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


Name:           python-picamera2
Version:        0.3.31
Release:        0
Summary:        The libcamera-based Python interface to Raspberry Pi cameras, based on the original Picamera library
License:        BSD 2-Clause License (FIXME:No SPDX)
URL:            https://github.com/RaspberryPi/picamera2
Source:         https://files.pythonhosted.org/packages/source/p/picamera2/picamera2-%{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 av}
BuildRequires:  %{python_module jsonschema}
BuildRequires:  %{python_module libarchive-c}
BuildRequires:  %{python_module numpy}
BuildRequires:  %{python_module PiDNG}
BuildRequires:  %{python_module piexif}
BuildRequires:  %{python_module pillow}
BuildRequires:  %{python_module python-prctl}
BuildRequires:  %{python_module simplejpeg}
BuildRequires:  %{python_module tqdm}
BuildRequires:  %{python_module videodev2}
# /SECTION
BuildRequires:  fdupes
Requires:       python-av
Requires:       python3-libcamera
Requires:       python-jsonschema
Requires:       python-libarchive-c
Requires:       python-numpy
Requires:       python-PiDNG
Requires:       python-piexif
Requires:       python-pillow
Requires:       python-python-prctl
Requires:       python-simplejpeg
Requires:       python-tqdm
Requires:       python-videodev2
Suggests:       python-pyopengl
Suggests:       python-PyQt5
BuildArch:      noarch
%python_subpackages

%description
The libcamera-based Python interface to Raspberry Pi cameras, based on the original Picamera library

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

%build
%pyproject_wheel

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

%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/picamera2
%{python_sitelib}/picamera2-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by