%global pypi_name picamera2 Name: python-%{pypi_name} Version: 0.3.36 Release: 1%{?dist} Summary: libcamera-based Python camera library for Raspberry Pi License: BSD-2-Clause URL: https://github.com/raspberrypi/picamera2 Source0: %{pypi_source %{pypi_name}} BuildArch: noarch BuildRequires: python3-devel # libcamera python bindings come from Fedora's libcamera, not PyPI Requires: python3-libcamera Requires: python3-simplejpeg python3-videodev2 python3-prctl Requires: python3-numpy python3-pillow python3-piexif Requires: python3-tqdm python3-jsonschema python3-libarchive-c # av (encoders), PiDNG (raw DNG), OpenEXR are lazily imported -> weak deps Recommends: python3-av %description picamera2 is the libcamera-based replacement for the legacy picamera library. Drives the Raspberry Pi HQ Camera (imx477) via the rpi/vc4 hardware-ISP pipeline. Heavy/optional deps (av, PiDNG, OpenEXR) are weak dependencies; not needed for headless capture/streaming. %package -n python3-%{pypi_name} Summary: %{summary} %description -n python3-%{pypi_name} picamera2 is the libcamera-based replacement for the legacy picamera library. Drives the Raspberry Pi HQ Camera (imx477) via the rpi/vc4 hardware-ISP pipeline. %prep %autosetup -n %{pypi_name}-%{version} # drop optional deps we ship as weak/none so dep-gen stays clean sed -i -E '/^\s*"(av|PiDNG|OpenEXR)/d' pyproject.toml setup.py 2>/dev/null || true %generate_buildrequires # -R: skip runtime BR + import check; runtime deps (our own prctl/simplejpeg/ # videodev2 + libcamera) are declared as Requires and resolved at install time. %pyproject_buildrequires -R %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -L picamera2 %files -n python3-%{pypi_name} -f %{pyproject_files} %license LICENSE %changelog * Mon Jun 29 2026 Morgan Hough - 0.3.36-1 - Initial package for the OpenFlexure-on-Fedora (v3) stack; HW-ISP path.