From 706e7424f22a4c5e53803fcb5729228b38a488bbad33d6e71e7018cff2dda3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Tue, 14 Jan 2025 17:44:33 +0000 Subject: [PATCH] - Update to version 47.3: + Fixed: Sometimes SVGs are not shown in the print preview. OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/loupe?expand=0&rev=32 --- .gitattributes | 23 +++ .gitignore | 1 + _constraints | 12 ++ _service | 24 ++++ loupe-46.2.obscpio | 3 + loupe-47.0.obscpio | 3 + loupe-47.1.obscpio | 3 + loupe-47.2.obscpio | 3 + loupe-47.3.obscpio | 3 + loupe.changes | 343 +++++++++++++++++++++++++++++++++++++++++++++ loupe.obsinfo | 4 + loupe.spec | 83 +++++++++++ vendor.tar.zst | 3 + 13 files changed, 508 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _constraints create mode 100644 _service create mode 100644 loupe-46.2.obscpio create mode 100644 loupe-47.0.obscpio create mode 100644 loupe-47.1.obscpio create mode 100644 loupe-47.2.obscpio create mode 100644 loupe-47.3.obscpio create mode 100644 loupe.changes create mode 100644 loupe.obsinfo create mode 100644 loupe.spec create mode 100644 vendor.tar.zst diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..0be0f88 --- /dev/null +++ b/_constraints @@ -0,0 +1,12 @@ + + + + + 17 + + + 6 + + + + diff --git a/_service b/_service new file mode 100644 index 0000000..69574cb --- /dev/null +++ b/_service @@ -0,0 +1,24 @@ + + + + https://gitlab.gnome.org/GNOME/loupe.git + git + 47.3 + @PARENT_TAG@+@TAG_OFFSET@ + (.*)\+0 + \1 + + + + + + *.tar + zst + + + loupe + zst + true + + + diff --git a/loupe-46.2.obscpio b/loupe-46.2.obscpio new file mode 100644 index 0000000..8b0fab0 --- /dev/null +++ b/loupe-46.2.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0947592459f1869da9501fcf8b4a5a1cec636cccc0a0d587c199c55ce951b13e +size 1729036 diff --git a/loupe-47.0.obscpio b/loupe-47.0.obscpio new file mode 100644 index 0000000..c2fc1de --- /dev/null +++ b/loupe-47.0.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01dcd1151da0f5de66abdf742c290797969fb1b77dd39df083153da90135ee2e +size 2179084 diff --git a/loupe-47.1.obscpio b/loupe-47.1.obscpio new file mode 100644 index 0000000..498daa9 --- /dev/null +++ b/loupe-47.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0fd89c282cdde6913d3c48b40cd8204801b80cc6aa75f28b99da80e608f8c777 +size 2246156 diff --git a/loupe-47.2.obscpio b/loupe-47.2.obscpio new file mode 100644 index 0000000..b5526b0 --- /dev/null +++ b/loupe-47.2.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:227695c3480c56597af00dc4a67ccfffebef8c04ac3e1b6190415cb9ec2dcbef +size 2247180 diff --git a/loupe-47.3.obscpio b/loupe-47.3.obscpio new file mode 100644 index 0000000..6b5b9c1 --- /dev/null +++ b/loupe-47.3.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6534ade27157e94ed5d670b35f5c6de5d8efb6042650847cb45211626edb0af8 +size 2255372 diff --git a/loupe.changes b/loupe.changes new file mode 100644 index 0000000..cb02726 --- /dev/null +++ b/loupe.changes @@ -0,0 +1,343 @@ +------------------------------------------------------------------- +Mon Jan 13 14:31:36 UTC 2025 - Bjørn Lie + +- Update to version 47.3: + + Fixed: Sometimes SVGs are not shown in the print preview. + +------------------------------------------------------------------- +Sat Nov 23 10:54:15 UTC 2024 - Bjørn Lie + +- Update to version 47.2: + + Don't call style manager in application constructor since this + is too early. Do it in startup instead. Without this fix, GTK + 4.17.0 will terminate the app on startup. + +------------------------------------------------------------------- +Thu Oct 17 07:31:05 UTC 2024 - Bjørn Lie + +- Update to version 47.1: + + Add ``s instead of just using + `GnomeSoftware::key-colors`. That they weren't set was an + oversight. + + Fixed: + - Make the string "Error Details" translatable. + - Require glycin 2.0.1 crate to detect SVGZ files properly. + +------------------------------------------------------------------- +Fri Sep 13 11:48:13 UTC 2024 - Dominique Leuenberger + +- Update to version 47.0: + + Flickering while images are reloaded. Instead, keep the old + textures around until a new texture is available. + + Forcing the zoom to the center of the image is now working + again. This is especially noticable when using the touchpads + pinch gesture. + + When disabling animations in the OS and using the buttons to + change the image, the wrong image was shown, disabling features + like zoom. + +------------------------------------------------------------------- +Fri Aug 30 09:01:55 UTC 2024 - Bjørn Lie + +- Update to version 47.beta.1: + + Don't force Flatpak sandbox SVGs. This fixes SVGs not loading + outside of Flatpak. + + Make the window wider when it would open with a bottom-sheet + overlay for properties. That way, the properties can be shown + in a sidebar. + + Properly detect non-transparent images and down download a + thumbnail for background detection for them. For some reason, + the thumbnail download is using a lot of VRAM. + +------------------------------------------------------------------- +Wed Apr 10 07:09:05 UTC 2024 - Dominique Leuenberger + +- Update to version 46.2: + + Fix fractional scaling beeing blury by setting + GDK_DEBUG=gl-no-fractional as default. + + Fix exposure times above 0.5 seconds not being displayed + correctly in properties. + + Fix page orientation from print preview dialog is not honored + for actual print. + +------------------------------------------------------------------- +Thu Apr 4 08:16:09 UTC 2024 - Dominique Leuenberger + +- Update to version 46.1: + + Fix fill-space option not being applied when changing the + orientation in print preview. + + Fix PNGs not being available when browsing images on SMB + shares. + + Don't animate switching between images with the mouse fwd/back + buttons. + +------------------------------------------------------------------- +Fri Mar 15 07:08:43 UTC 2024 - Dominique Leuenberger + +- Update to version 46.0: + + Change to stable dependencies + +------------------------------------------------------------------- +Mon Mar 4 08:00:44 UTC 2024 - Dominique Leuenberger + +- Update to version 46.rc: + + Fix background color detection ignoring small lines in large + images. + + Change to "gl" as GSK default renderer instead of "ngl" due to + performance reasons. + + Change to sticking to the first error delivered during image + loading. + +------------------------------------------------------------------- +Sun Feb 25 15:25:05 UTC 2024 - Dominique Leuenberger + +- Update to version 46.beta.2: + + Change metainfo to include GNOME group. + + Change metainfo to use reversed name for the developer id. + + Change to use latest glycin beta for better metadata + performance. + +------------------------------------------------------------------- +Mon Feb 19 17:55:11 UTC 2024 - Dominique Leuenberger + +- Update to version 46.beta.1: + + Change .desktop file to not include "Slideshow" as keyword. + + Change help by regenerating pages. + + Change help to correctly represent zoom. + + Change to use zbus 4.0. + +------------------------------------------------------------------- +Mon Feb 12 16:14:00 UTC 2024 - Dominique Leuenberger + +- Update to version 46.beta: + + Fix not reliably returning to restored image when undoing trash + operation. + + Added Shift+Delete as shortcut for permanent image deletion. + + Added build option that makes X11 an optional dependency. + + Added button to copy coordinates for location in properties. + + Change to not using animation when changing images via keyboard + shortcuts. + + Change to opening image in new window, occupy 40% of the screen + instead of 30%. + + Change to using "stacked cards" animation when changing images + via buttons. + + Changed to show city if it's less than 15km away instead of + 100km before. +- Add pkgconfig(libseccomp) BuildRequires: new dependency. + +------------------------------------------------------------------- +Tue Jan 16 11:23:24 UTC 2024 - Dominique Leuenberger + +- Update to version 46.alpha: + + Fix "Ctrl + C" copies image instead of metadata if text is + selected. + + Fix "g_object_weak_unref" warnings. + + Fix changing image resets timeout for hiding controls if still + visible. + + Fix long file names can newly opened window larger than + required for image. + + Fix not always zooming into center when using overlay buttons + on touchscreen. + + Fix opening image in different folder ends fullscreen mode. + + Fix scrollbars disappearing under certain conditions. + + Add zooming via touchpad scrolling while Ctrl button is + pressed. + + Follow G_MESSAGES_DEBUG variable for logging. + + In print preview, base 100% image scale on physical dimensions + of SVGs if specified. + + In print preview, fix wrong upper input limit in height. + + In print preview, scale SVGs correctly. + + More reliably zoom into image position below cursor. + + Pre-select current image's folder in file-chooser dialog. + + Remember image properties visibility state. + + Use GdkSurface:scale instead of scale factor, in theory + supporting fractional scaling. + + Use glycin 1.0. + +------------------------------------------------------------------- +Thu Nov 30 09:47:03 UTC 2023 - Bjørn Lie + +- Update to version 45.2: + + Fix order of images gets confused after deleting image + + Fix image is not shown when sucessfully reloaded after error + + Fix keyboard shortcuts shows the swipe gestures the wrong way + round +- Following changes in obs-service-cargo, drop cargo_config as + source from spec and source, and remove cargo_audit from + _service, as these are now automated as part of cargo_vendor. + +------------------------------------------------------------------- +Tue Nov 14 20:16:47 UTC 2023 - Bjørn Lie + +- Update to version 45.1: + + Fix sandbox for image decoding not enabled by default + + Fix printing on different printer than selected + + Fix print dialog crashes on confirmation + + Fix print dialog needs second confirmation inside Flatpaks + + Fix SVGs sometimes not re-rendering for zoom level + + Fix animated image formats with variable frame length using + only one length + + Fix rotation getting applied twice to HEIF images +- Drop patches fixed upstream: + + loupe_glycin-loaders_sandbox.patch + + loupe_print_fix.patch + +------------------------------------------------------------------- +Tue Nov 7 09:08:27 UTC 2023 - Dominique Leuenberger + +- Fix build with RPM 4.19: unnumbered patches are no longer + supported. + +------------------------------------------------------------------- +Fri Sep 29 20:50:37 UTC 2023 - Bjørn Lie + +- Add loupe_glycin-loaders_sandbox.patch: Enable the glycin-loaders + sandbox. + https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/299 +- Add loupe_print_fix.patch: print: Use same print operation + throughout. + https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/302 + +------------------------------------------------------------------- +Sun Sep 17 17:25:18 UTC 2023 - Bjørn Lie + +- Update to version 45.0: + + Always ask which program to use for "Open With…" + + SVG: Force minimum tile size of 1000x1000 + + SVG: Don't render first tiles with zoom=1 + + Empty state: Use flat headerbar + + Fix non-native files with path cannot be deleted + + Update screenshots + + Drag and Drop: Only expect sources of type FileList + + Update SlidingView after removing unsupported image + +------------------------------------------------------------------- +Fri Sep 15 16:02:29 UTC 2023 - Bjørn Lie + +- Update to version 45.beta.1: + + Reload images when the file is replaced by moving another file + at it's place + + Update dependencies +- Change compression in service and tarball produced to zst. +- Update URL to new home on GNOME proper. + +------------------------------------------------------------------- +Wed Aug 23 20:53:26 UTC 2023 - Bjørn Lie + +- Add glycin-loaders Requires: Ensure that we have the loaders in + place. + +------------------------------------------------------------------- +Thu Aug 17 19:50:29 UTC 2023 - Bjørn Lie + +- 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 + +------------------------------------------------------------------- +Mon Jul 24 12:33:53 UTC 2023 - Bjørn Lie + +- Add back cargo_audit in _service, now that it is back in working + order. + +------------------------------------------------------------------- +Sun Jul 16 13:39:57 UTC 2023 - Bjørn Lie + +- 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. + +------------------------------------------------------------------- +Wed Jun 28 09:49:06 UTC 2023 - Bjørn Lie + +- Use %build_rustflags instead of the deprecated + %__rustflags macro. Requires at least cargo-packaging 1.2.0+3. + +------------------------------------------------------------------- +Sun Apr 23 19:02:34 UTC 2023 - Bjørn Lie + +- Update to version 44.2: + + Use GFile instead of direct file access + + Do not crash when monitor info is not available + + Get rid of many unwraps and report issues to UI instead, just + to be safe + + Fix displayed times are wrong because they do not respect + timezones + + Add basic support for ICC color profiles + + Support opening multiple files via drag and drop + + Fix textures and background color not updating when image data + changed + + Fix not defaulting to light background color in light theme + + Fix thumbnail is broken for auto-rotated (EXIF) images + + Fix high-res scroll wheel issues + + Fix 100%/200% shortcuts ending up at best-fit when window size + close to 100%/200% + + Add printing support + + Center new tilings in the viewport, making the first rendered + tile cover the viewport already + + Allow dragging (panning) the image with middle button + + Generate list of mime types in meson and fix list of formats + + Set actions enabled state based on UI property status, not + manually everywhere + + Add and update license headers with script based on commit info + + Hide overlay controls after inactivity + + Remove OSD from HeaderBar in fullscreen + + Drop AdwFlap for HeaderBar + + Make properties button insensitive if no image shown/loading + + Move 'toggle fullscreen' button from inner to outer position + + Add 'all files' filter option to file chooser +- Add pkgconfig(lcms2) BuildRequires: New dependency. + +------------------------------------------------------------------- +Wed Apr 12 09:01:31 UTC 2023 - Bjørn Lie + +- Use rustflags export also in check section. + +------------------------------------------------------------------- +Tue Apr 11 20:59:05 UTC 2023 - Luciano Santos + +- Drop %rustflags macro definition out of the spec file and use + %__rustflags from cargo-packaging package instead. There's no + need to define it on every spec anymore. + +------------------------------------------------------------------- +Thu Apr 6 22:14:35 UTC 2023 - Bjørn Lie + +- Update to version 44.1: + + Bump GTK dependency to 4.11.1 because of required fixes for + scaled texture + + Drop gtk-macros (crate) dependency since it is not needed and + lacking a LICENSE files + + Fix WebP support for still images + + Fix not detecting HEIC files +- Add loupe-revert-gtk4-unstable-bump.patch: Revert bump to + unstable gtk4 dependency. + +------------------------------------------------------------------- +Wed Apr 5 12:17:40 UTC 2023 - Bjørn Lie + +- Initial packaging for openSUSE. diff --git a/loupe.obsinfo b/loupe.obsinfo new file mode 100644 index 0000000..e348c73 --- /dev/null +++ b/loupe.obsinfo @@ -0,0 +1,4 @@ +name: loupe +version: 47.3 +mtime: 1736774259 +commit: 40eadce02627a90d91933bcac71996f551ecbc36 diff --git a/loupe.spec b/loupe.spec new file mode 100644 index 0000000..d8098f1 --- /dev/null +++ b/loupe.spec @@ -0,0 +1,83 @@ +# +# spec file for package loupe +# +# Copyright (c) 2025 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: 47.3 +Release: 0 +Summary: A simple image viewer application +License: GPL-3.0-or-later +URL: https://gitlab.gnome.org/GNOME/loupe +Source0: %{name}-%{version}.tar.zst +Source1: vendor.tar.zst + +BuildRequires: appstream-glib +BuildRequires: cargo-packaging >= 1.2.0+3 +BuildRequires: desktop-file-utils +BuildRequires: itstool +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: pkgconfig(gtk4) >= 4.13.6 +BuildRequires: pkgconfig(gweather4) >= 4.0.0 +BuildRequires: pkgconfig(lcms2) +BuildRequires: pkgconfig(libadwaita-1) >= 1.4.0 +BuildRequires: pkgconfig(libheif) >= 1.14.2 +BuildRequires: pkgconfig(libseccomp) >= 2.5.0 +Requires: glycin-loaders + +%description +%{summary} written with GTK4 and Rust. + +%lang_package + +%prep +%autosetup -p1 -a1 + +%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 exists 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}/help/C/%{name}/ +%{_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 + +%files lang -f %{name}.lang + +%changelog diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..9e9578e --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:212c5c4358aaeb48eaf8cfd99690df19adeffbb24a626789ec428fe099fea175 +size 26971464