%global lead 1.5 %global follow 0 Name: rpicam-apps Version: %{lead}.%{follow}.git.413.79695eee Release: 1%{?dist} Summary: libcamera based apps that copy raspicam apps License: BSD URL: https://www.raspberrypi.com/documentation/accessories/camera.html VCS: git+https://github.com/Leuca/rpicam-apps.git#79695eee851e2a72c768d0771b1dbacf177f90e7: ExclusiveArch: %{arm} aarch64 Source: rpicam-apps-79695eee.tar.gz Patch0: rpicam-apps-handle-connection-drop.patch BuildRequires: git BuildRequires: cmake BuildRequires: meson BuildRequires: gcc-c++ BuildRequires: boost-devel BuildRequires: boost-program-options BuildRequires: libepoxy-devel BuildRequires: libdrm-devel BuildRequires: libexif-devel BuildRequires: libtiff-devel BuildRequires: libpng-devel BuildRequires: libjpeg-turbo-devel BuildRequires: libcamera-devel BuildRequires: opencv-devel # Dependencies to build the libav codec BuildRequires: libavcodec-devel BuildRequires: libavdevice-devel BuildRequires: libavformat-devel BuildRequires: libswresample-devel Requires: libcamera Requires: libcamera-ipa %description This is a small suite of libcamera-based apps that aim to copy the functionality of the existing "raspicam" apps. %package libs Summary: Libraries needed by rpicam-apps %description libs Libraries for a small suite of libcamera-based apps that aim to copy the functionality of the existing "raspicam" apps. %package devel Summary: Development files for rpicam-apps-libs Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel Development files for a small suite of libcamera-based apps that aim to copy the functionality of the existing "raspicam" apps. %prep %setup -T -b 0 -q -n rpicam-apps %autopatch -p1 %build # Remove meson version requirement sed -i '/meson_version/d' meson.build %meson --buildtype=release \ -Denable_libav=enabled \ -Denable_drm=enabled \ -Denable_egl=enabled \ -Denable_qt=disabled \ -Denable_opencv=enabled \ -Denable_tflite=disabled \ -Denable_hailo=disabled \ %ifarch %{arm} -Dneon_flags=armv8-neon %endif %ifarch aarch64 -Dneon_flags=arm64 %endif %meson_build %install %meson_install %files %license license.txt %{_bindir}/rpicam-* %{_bindir}/libcamera-* %{_bindir}/camera-bug-report %files libs %{_libdir}/rpicam_app.so.* %{_libdir}/rpicam-apps-postproc/core-postproc.so %{_libdir}/rpicam-apps-postproc/opencv-postproc.so %files devel %{_libdir}/rpicam_app.so %{_libdir}/libcamera_app.so %{_includedir}/%{name} %{_includedir}/libcamera-apps %changelog