loupe/loupe.spec

85 lines
2.4 KiB
RPMSpec
Raw Normal View History

#
# 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
Accepting request 1104703 from GNOME:Next - Update to version 45.beta: + Newly designed print dialog + Added sandboxing for SVG rendering by using glycin + Use RaisedBorder for HeaderBar to avoid shadow over images + Fix browsing images on SMB shares not working + Fix touchscreen gestures not working when zoomed in + Fix touchscreen swipe only working on second attempt + Added JpegXL support via new glycin version + Added overshoot for swipe gesture + New custom style for drop targets + Changed name to Image Viewer - Add back cargo_audit in _service, now that it is back in working order. - Update to version 45.alpha: + Add help + Disable trashing for non-native files + Give toast for latest deleted file priority over the others + Only list supported image formats in file chooser + Do not guess a potentially different background color for opaque images + Fix incorrect updates when deleting or changing images + Fix SVG zooming with high-res scroll-wheels + Use glycin for sandboxed extendable image loading expect for SVG + Remove backspace as a trash shortcut + Change command line to open all given images in one window + Do not show "Set as Background" if operation was aborted + Let the user select multiple files to open in file chooser + Support forward and back mouse buttons + Correctly align right-click menu - Drop loupe-revert-gtk4-unstable-bump.patch: No longer needed. - Add itstool BuildRequires: New dependency. OBS-URL: https://build.opensuse.org/request/show/1104703 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/loupe?expand=0&rev=7
2023-08-21 09:27:04 +02:00
Version: 45.beta
Release: 0
Summary: A simple image viewer application
License: GPL-3.0-or-later
URL: https://gitlab.gnome.org/GNOME/Incubator/loupe
Source: %{name}-%{version}.tar.xz
Source2: vendor.tar.zst
Source3: cargo_config
BuildRequires: appstream-glib
BuildRequires: cargo-packaging >= 1.2.0+3
BuildRequires: desktop-file-utils
Accepting request 1104703 from GNOME:Next - Update to version 45.beta: + Newly designed print dialog + Added sandboxing for SVG rendering by using glycin + Use RaisedBorder for HeaderBar to avoid shadow over images + Fix browsing images on SMB shares not working + Fix touchscreen gestures not working when zoomed in + Fix touchscreen swipe only working on second attempt + Added JpegXL support via new glycin version + Added overshoot for swipe gesture + New custom style for drop targets + Changed name to Image Viewer - Add back cargo_audit in _service, now that it is back in working order. - Update to version 45.alpha: + Add help + Disable trashing for non-native files + Give toast for latest deleted file priority over the others + Only list supported image formats in file chooser + Do not guess a potentially different background color for opaque images + Fix incorrect updates when deleting or changing images + Fix SVG zooming with high-res scroll-wheels + Use glycin for sandboxed extendable image loading expect for SVG + Remove backspace as a trash shortcut + Change command line to open all given images in one window + Do not show "Set as Background" if operation was aborted + Let the user select multiple files to open in file chooser + Support forward and back mouse buttons + Correctly align right-click menu - Drop loupe-revert-gtk4-unstable-bump.patch: No longer needed. - Add itstool BuildRequires: New dependency. OBS-URL: https://build.opensuse.org/request/show/1104703 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/loupe?expand=0&rev=7
2023-08-21 09:27:04 +02:00
BuildRequires: meson itstool
BuildRequires: pkgconfig
BuildRequires: pkgconfig(gtk4) >= 4.10
BuildRequires: pkgconfig(gweather4) >= 4.0.0
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libadwaita-1) >= 1.3.99
BuildRequires: pkgconfig(libheif) >= 1.14.2
Requires: glycin-loaders
%description
%{summary} written with GTK4 and Rust.
%lang_package
%prep
%autosetup -p1 -a2
mkdir .cargo
cp %{SOURCE3} .cargo/config
%build
export RUSTFLAGS="%{build_rustflags}"
%meson \
%{nil}
%meson_build
%install
export RUSTFLAGS="%{build_rustflags}"
%meson_install
%find_lang %{name} %{?no_lang_C}
%check
export RUSTFLAGS="%{build_rustflags}"
%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}/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
%{_datadir}/metainfo/org.gnome.Loupe.metainfo.xml
Accepting request 1104703 from GNOME:Next - Update to version 45.beta: + Newly designed print dialog + Added sandboxing for SVG rendering by using glycin + Use RaisedBorder for HeaderBar to avoid shadow over images + Fix browsing images on SMB shares not working + Fix touchscreen gestures not working when zoomed in + Fix touchscreen swipe only working on second attempt + Added JpegXL support via new glycin version + Added overshoot for swipe gesture + New custom style for drop targets + Changed name to Image Viewer - Add back cargo_audit in _service, now that it is back in working order. - Update to version 45.alpha: + Add help + Disable trashing for non-native files + Give toast for latest deleted file priority over the others + Only list supported image formats in file chooser + Do not guess a potentially different background color for opaque images + Fix incorrect updates when deleting or changing images + Fix SVG zooming with high-res scroll-wheels + Use glycin for sandboxed extendable image loading expect for SVG + Remove backspace as a trash shortcut + Change command line to open all given images in one window + Do not show "Set as Background" if operation was aborted + Let the user select multiple files to open in file chooser + Support forward and back mouse buttons + Correctly align right-click menu - Drop loupe-revert-gtk4-unstable-bump.patch: No longer needed. - Add itstool BuildRequires: New dependency. OBS-URL: https://build.opensuse.org/request/show/1104703 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/loupe?expand=0&rev=7
2023-08-21 09:27:04 +02:00
%{_datadir}/help/
%files lang -f %{name}.lang
%changelog