diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9bded6e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/loupe-45.beta.1.tar.xz diff --git a/loupe.spec b/loupe.spec new file mode 100644 index 0000000..1a63818 --- /dev/null +++ b/loupe.spec @@ -0,0 +1,94 @@ +%global tarball_version %%(echo %{version} | tr '~' '.') + +Name: loupe +Version: 45~beta.1 +Release: %autorelease +Summary: Image viewer + +# (MIT OR Apache-2.0) AND Unicode-DFS-2016 +# 0BSD OR MIT OR Apache-2.0 +# Apache-2.0 OR MIT +# Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# BSD-2-Clause +# GPL-3.0-or-later +# LGPL-2.1-only +# MIT +# MIT OR Apache-2.0 +# MIT OR Apache-2.0 OR Zlib +# MIT OR Zlib OR Apache-2.0 +# Unlicense OR MIT +# Zlib OR Apache-2.0 OR MIT +License: (MIT OR Apache-2.0) AND Unicode-DFS-2016 AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSD-2-Clause AND GPL-3.0-or-later AND LGPL-2.1-only AND MIT AND (MIT OR Apache-2.0) AND (MIT OR Apache-2.0 OR Zlib) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT) +# LICENSE.dependencies contains a full license breakdown +URL: https://gitlab.gnome.org/GNOME/loupe +Source0: https://download.gnome.org/sources/loupe/45/loupe-%{tarball_version}.tar.xz + +BuildRequires: itstool +BuildRequires: meson +BuildRequires: rust-packaging +BuildRequires: /usr/bin/appstream-util +BuildRequires: /usr/bin/desktop-file-validate + +Requires: glycin-loaders + +%description +An image viewer application written with GTK 4, Libadwaita and Rust. + +Features: + +- Fast GPU accelerated image rendering with tiled rendering for SVGs +- Extendable and sandboxed (expect SVG) image decoding +- Support for more than 15 image formats by default +- Extensive support for touchpad and touchscreen gestures +- Accessible presentation of the most important metadata +- Sleek but powerful interface developed in conjunction with GNOME Human + Interface Guidelines + + +%prep +%autosetup -p1 -n loupe-%{tarball_version} + +rm -rf vendor +sed -i -e '/Cargo.lock/d' meson.build +%cargo_prep + + +%generate_buildrequires +%cargo_generate_buildrequires + + +%build +%meson +%meson_build + +%cargo_license_summary +%{cargo_license} > LICENSE.dependencies + + +%install +%meson_install + +%find_lang loupe --with-gnome + + +%check +%meson_test + +appstream-util validate-relax --nonet $RPM_BUILD_ROOT%{_metainfodir}/org.gnome.Loupe.metainfo.xml +desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/org.gnome.Loupe.desktop + + +%files -f loupe.lang +%license COPYING.md +%license LICENSE.dependencies +%doc NEWS README.md +%{_bindir}/loupe +%{_datadir}/applications/org.gnome.Loupe.desktop +%{_datadir}/dbus-1/services/org.gnome.Loupe.service +%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Loupe*.svg +%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Loupe-symbolic.svg +%{_metainfodir}/org.gnome.Loupe.metainfo.xml + + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..46eb2bf --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (loupe-45.beta.1.tar.xz) = 5bdc368dd3d4bad086283e4912d4c72aa2267eb848766b62cd41d53cd486bd02df54ff6cf4dd7bfd660a364ce76c843b5a76938bf093d9861c7734ba8027c933