%global _name swayimg %global tag 5.2 %global bumpver 18 %global commit 9f83e2b74ebad85af695dd0badd60b3c35050ab6 %{?commit:%global shortcommit %(c=%{commit}; echo ${c:0:7})} Name: %{_name}-git Version: %{tag}%{?bumpver:^%{bumpver}.git.%{shortcommit}} Release: 1%{?dist} Conflicts: %{_name} Provides: %{_name} = %{version}-%{release} Summary: Lightweight image viewer for Wayland display servers License: MIT URL: https://github.com/artemsen/%{_name} Source: %{url}/archive/%{shortcommit}/%{_name}-%{shortcommit}.tar.gz # Patch0: #{url}/commit/5c2d958.patch#/swayimg-5.0-missing-includes.patch # Exclude x86 and all the platforms where luajit is not available ExcludeArch: %{ix86} riscv64 ppc64 ppc64le BuildRequires: desktop-file-utils BuildRequires: gcc-c++ %if %{with tests} BuildRequires: glibc-langpack-en %endif BuildRequires: meson >= 1.1 BuildRequires: giflib-devel # BuildRequires: pkgconfig(OpenEXR) >= 3.4 BuildRequires: pkgconfig(bash-completion) BuildRequires: pkgconfig(exiv2) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(freetype2) %if %{with tests} BuildRequires: pkgconfig(gtest) %endif BuildRequires: pkgconfig(libavif) BuildRequires: pkgconfig(libdrm) BuildRequires: pkgconfig(libheif) BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libjxl) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(libraw) BuildRequires: pkgconfig(librsvg-2.0) >= 2.46 BuildRequires: pkgconfig(libsixel) BuildRequires: pkgconfig(libtiff-4) BuildRequires: pkgconfig(libwebp) BuildRequires: pkgconfig(libwebpdemux) BuildRequires: pkgconfig(luajit) BuildRequires: pkgconfig(wayland-client) BuildRequires: pkgconfig(wayland-protocols) >= 1.35 BuildRequires: pkgconfig(wayland-scanner) BuildRequires: pkgconfig(xkbcommon) Requires: hicolor-icon-theme # src/external/json: MIT Provides: bundled(json) = 3.12.0 # src/external/luabridge: MIT Provides: bundled(luabridge) = 3.0~rc4^20240929g713c1f5 %description Swayimg is a lightweight image viewer for Wayland display servers. %prep %autosetup -n %{_name}-%{commit} #patch -P 0 -p1 -F3 %build %meson \ -Dexr=disabled \ -Dlicense=false \ -Dtests=%[%{with tests}?"enabled":"disabled"] \ -Dversion=%{version} %meson_build %install %meson_install %check desktop-file-validate %{buildroot}%{_datadir}/applications/swayimg.desktop %if %{with tests} %ifarch s390x # A few tests fail on s390x (endianness?) %global gtest_exclude ImageLoadTest.* %else # HEIF test requires libheif-freeworld from rpmfusion %global gtest_exclude ImageLoadTest.heif %endif export LANG=en_US.UTF-8 # ImageListTest.SortAlphaUnicode fails with LANG=C %meson_test --test-args='--gtest_filter=-%{gtest_exclude}' %endif %files %license LICENSE %doc %{_datadir}/doc/%{_name}/*.md %{_bindir}/swayimg %{_mandir}/man1/swayimg.1* %{_datadir}/applications/swayimg.desktop %{_datadir}/icons/hicolor/*/apps/swayimg.png %dir %{_datadir}/swayimg %{_datadir}/swayimg/*.lua %{bash_completions_dir}/swayimg %{zsh_completions_dir}/_swayimg %changelog * Fri Jun 05 2026 Lachlan Marie - 5.2^18.git.9f83e2b-1 - Update to commit 9f83e2b74ebad85af695dd0badd60b3c35050ab6 * Wed Jun 03 2026 Lachlan Marie - 5.2^17.git.7ba2540-1 - Update to commit 7ba2540879e56fddfebae3afe3875d9f2e093bfe * Tue Jun 02 2026 Lachlan Marie - 5.2^16.git.ecc930d-1 - Update to commit ecc930d3a1eadf6c0ed623188620e4b367dd39ef * Tue Jun 02 2026 Lachlan Marie - 5.2^15.git.c9f5d75-1 - Update to commit c9f5d759365f6bca4687c161d1421d78abf8e9ef * Mon Jun 01 2026 Lachlan Marie - 5.2^14.git.bd9a9fb-1 - Update to commit bd9a9fb69cecb9dd29f889691a77c93a03175ca3 * Sun May 31 2026 Lachlan Marie - 5.2^13.git.8c9bb52-1 - Update to commit 8c9bb52f1ad8a28c5315fa8eea2358cf5a23775f * Sat May 30 2026 Lachlan Marie - 5.2^12.git.efcee16-1 - Update to commit efcee169bcc8179899a1d55d05e94c4f99c44f67 * Fri May 29 2026 Lachlan Marie - 5.2^11.git.8e7b13f-1 - Update to commit 8e7b13f79855f775fb09779eb830e0bd52a40e97 * Thu May 28 2026 Lachlan Marie - 5.2^10.git.2e14662-1 - Update to commit 2e14662aa7f20e0dc03ac74e36da268790f0afae * Wed May 27 2026 Lachlan Marie - 5.2^9.git.bdd4312-1 - Update to commit bdd4312760a315fc0a4d7b210bad6187fa2292ac * Tue May 26 2026 Lachlan Marie - 5.2^8.git.58375f7-1 - Update to commit 58375f7513c1280f146b606a19e0d3cbc3b481c1 * Mon May 25 2026 Lachlan Marie - 5.2^7.git.7dbcb8c-1 - Update to commit 7dbcb8c975ca9de7a5fdaaad6b9a3b89030d4d1e * Sun May 24 2026 Lachlan Marie - 5.2^6.git.7c491d4-1 - Update to commit 7c491d4c716fa4dde614e8be58d6cb308802da48 * Thu May 21 2026 Lachlan Marie - 5.2^5.git.da9870a-1 - Update to commit da9870a08a4a145542cf803eeb7779758136a186 * Sat May 09 2026 Lachlan Marie - 5.2^4.git.225d378-1 - Update to commit 225d37833c1bfdeb67e8729f72b360f32f87c5f1 * Mon May 04 2026 Lachlan Marie - 5.2^3.git.b67a587-1 - Update to commit b67a587fbad8d07c3cf9150575b4b4b06b8a3031 * Sun May 03 2026 Lachlan Marie - 5.2^2.git.f8564b0-1 - Update to commit f8564b06a19b2e8ee03b8cf3b592bf0f15253cff * Thu Apr 30 2026 Lachlan Marie - 5.2^1.git.164e22e-1 - Update to commit 164e22ee920411617d890078b51402a08220e975 * Thu Apr 30 2026 Lachlan Marie - 5.2^2.git.164e22e-1 - Update to commit 164e22ee920411617d890078b51402a08220e975 * Thu Apr 09 2026 Lachlan Marie - 5.2-1 - Update to 5.2 * Wed Mar 25 2026 Lachlan Marie - 5.1-1 - Update to 5.1