%global fedora_libcamera_release 3.fc46 Name: libcamera-uke Version: 0.8.0 Release: 2%{?dist} Summary: Uke camera SoftISP test module for the Fedora libcamera ABI License: LGPL-2.1-or-later AND MIT URL: https://github.com/MCC45TR/uke-linux-hardware-support ExclusiveArch: aarch64 Source0: https://gitlab.freedesktop.org/camera/libcamera/-/archive/v%{version}/libcamera-v%{version}.tar.bz2 Source1: 0001-ipa-register-ov13b10-analogue-gain.patch Source2: uke-cam Patch0: 0001-optional-rpi-pisp.patch BuildRequires: gcc-c++ meson ninja-build git-core binutils chrpath BuildRequires: bash bzip2 coreutils findutils grep sed tar BuildRequires: libatomic libyaml-devel libyuv-devel openssl-devel BuildRequires: python3 python3-jinja2 python3-ply python3-pyyaml BuildRequires: pkgconfig(systemd) systemd-devel Requires: libcamera%{?_isa} = %{version}-%{fedora_libcamera_release} Requires: libcamera-ipa%{?_isa} = %{version}-%{fedora_libcamera_release} Requires: libcamera-tools%{?_isa} = %{version}-%{fedora_libcamera_release} %description A separately selected SoftISP module that adds the OV13B10 analogue gain formula to the exact Fedora libcamera ABI. The uke-cam command selects the module for its own process. Fedora loads the module through its IPA sandbox. %prep printf '%%s %%s\n' 58e8fd2c02a7094ea0e9628597f58268e0ff544f479c94e6ab39ddea5362b982 "%{SOURCE0}" | sha256sum -c --strict printf '%%s %%s\n' ec56d287e3d6667c909fd7008af5e4039db37d601c61a53e9d8e2a7850d2ddb6 "%{SOURCE1}" | sha256sum -c --strict %autosetup -p1 -n libcamera-v%{version} git apply --whitespace=error "%{SOURCE1}" %build %meson --auto-features=auto -Dlibdw=disabled -Dlibunwind=disabled -Dpipelines=simple -Dipas=softisp -Dtest=false -Ddocumentation=disabled \ -Dcam=disabled -Dqcam=disabled -Dlc-compliance=disabled -Dpycamera=disabled \ -Dgstreamer=disabled -Dv4l2=disabled -Dtracing=disabled -Dsoftisp-gpu=disabled ninja -C "%{_vpath_builddir}" -j%{_smp_build_ncpus} src/ipa/softisp/ipa_softisp.so %install module="%{buildroot}%{_libdir}/libcamera-uke/ipa/ipa_softisp.so" install -Dm755 "%{_vpath_builddir}/src/ipa/softisp/ipa_softisp.so" "$module" if readelf -d "$module" | grep -E '\((RPATH|RUNPATH)\)' > /dev/null; then chrpath -d "$module" fi install -d "%{buildroot}%{_bindir}" sed 's|@LIBDIR@|%{_libdir}|' "%{SOURCE2}" > "%{buildroot}%{_bindir}/uke-cam" chmod 0755 "%{buildroot}%{_bindir}/uke-cam" %check set -o pipefail module="%{buildroot}%{_libdir}/libcamera-uke/ipa/ipa_softisp.so" readelf -h "$module" | grep -E 'Machine:[[:space:]]+AArch64' readelf -d "$module" > module.dynamic grep -F '[libcamera.so.0.8]' module.dynamic if grep -E '\((RPATH|RUNPATH)\)' module.dynamic; then exit 1; fi readelf --dyn-syms --wide "$module" > module.exports grep -E '[[:space:]]ipaCreate$' module.exports grep -E '[[:space:]]ipaModuleInfo$' module.exports if find "%{buildroot}" -name '*.py' -o -name '*.pyc' | grep .; then exit 1; fi test ! -e "$module.sign" bash -n "%{buildroot}%{_bindir}/uke-cam" %files %license COPYING.rst LICENSES/LGPL-2.1-or-later.txt %{_bindir}/uke-cam %dir %{_libdir}/libcamera-uke %dir %{_libdir}/libcamera-uke/ipa %{_libdir}/libcamera-uke/ipa/ipa_softisp.so %changelog * Sat Nov 28 2026 Uke Linux Maintainers - 0.8.0-2 - Add an isolated test module for the fitted OV13B10.