# # spec file for package loupe # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: loupe Version: 44.1 Release: 0 Summary: A simple image viewer application License: GPL-3.0-or-later URL: https://gitlab.gnome.org/Incubator/loupe Source: %{name}-%{version}.tar.xz Source2: vendor.tar.zst Source3: cargo_config # PATCH-FIX-OPENSUSE loupe-revert-gtk4-unstable-bump.patch -- Revert bump to unstable gtk4 dep Patch: loupe-revert-gtk4-unstable-bump.patch BuildRequires: appstream-glib BuildRequires: cargo-packaging BuildRequires: desktop-file-utils BuildRequires: meson BuildRequires: pkgconfig BuildRequires: pkgconfig(gtk4) >= 4.10 BuildRequires: pkgconfig(gweather4) >= 4.0.0 BuildRequires: pkgconfig(libadwaita-1) >= 1.3.0 BuildRequires: pkgconfig(libheif) >= 1.14.2 %description %{summary} written with GTK4 and Rust. %lang_package %prep %autosetup -p1 -a2 mkdir .cargo cp %{SOURCE3} .cargo/config %build export RUSTFLAGS="%{__rustflags}" %meson \ %{nil} %meson_build %install export RUSTFLAGS="%{__rustflags}" %meson_install %find_lang %{name} %{?no_lang_C} %check %{cargo_test} # No meson_test exsist upstream yet, so run these manually appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/org.gnome.Loupe.metainfo.xml desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.Loupe.desktop %files %license COPYING.md %doc README.md %{_bindir}/%{name} %{_datadir}/applications/org.gnome.Loupe.desktop %{_datadir}/dbus-1/services/org.gnome.Loupe.service %{_datadir}/glib-2.0/schemas/org.gnome.Loupe.gschema.xml %{_datadir}/icons/hicolor/scalable/apps/org.gnome.Loupe.Devel.svg %{_datadir}/icons/hicolor/scalable/apps/org.gnome.Loupe.svg %{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Loupe-symbolic.svg %dir %{_datadir}/%{name} %{_datadir}/%{name}/%{name}.gresource %{_datadir}/metainfo/org.gnome.Loupe.metainfo.xml %files lang -f %{name}.lang %changelog