%global debug_package %{nil} # --- FEATURE TOGGLES --- # Default: WITH the Wayland fix. # To build WITHOUT it: rpmbuild -bs --without wayland_fix ... %bcond_without wayland_fix Name: art Version: 1.25.12 Release: 1%{?dist} Summary: A(nother) RawTherapee - A raw image processing program License: GPLv3 URL: https://github.com/artraweditor/ART # GitHub automatically provides tarballs for tags. # We download the tag named '1.25.12' and save it as 'art-1.25.12.tar.gz' Source0: %{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz # --- Build Dependencies --- BuildRequires: cmake gcc-c++ gtk3-devel gtkmm30-devel lcms2-devel fftw-devel BuildRequires: exiv2-devel libcanberra-devel lensfun-devel librsvg2-devel libtiff-devel libpng-devel libjpeg-turbo-devel BuildRequires: libiptcdata-devel zlib-devel expat-devel mimalloc-devel # --- Runtime Dependencies --- Requires: gtk3 lensfun mimalloc %description ART is a derivative of the popular RawTherapee. %if %{with wayland_fix} This build forces the GDK X11 backend to prevent Wayland crashes. %endif %prep # GitHub tarballs unzip to a folder named "RepoName-Version" %autosetup -n ART-%{version} %build # -DPROC_TARGET_NUMBER=1 enables CPU vectorization for generic x86_64 %cmake -DPROC_TARGET_NUMBER=1 \ -DBUILD_BUNDLE=OFF \ -DCACHE_NAME_SUFFIX="" \ -DENABLE_MIMALLOC=ON \ -DCMAKE_INSTALL_LIBDIR=%{_lib} %cmake_build %install %cmake_install # --- CONDITIONAL WAYLAND FIX --- %if %{with wayland_fix} # 1. Rename the actual binary mv %{buildroot}%{_bindir}/ART %{buildroot}%{_bindir}/ART.bin # 2. Create the wrapper script cat > %{buildroot}%{_bindir}/ART < - 1.25.12-1 - Initial COPR package with Wayland fix