commit d01332f5244d319620680de55cabc2522ca9c5f758b868d39f8cbccbc56480b5 Author: Bjørn Lie Date: Tue Apr 11 10:23:56 2023 +0000 Accepting request 1077982 from GNOME:Next Resub, now with constraints OBS-URL: https://build.opensuse.org/request/show/1077982 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/loupe?expand=0&rev=1 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..c679ba6 --- /dev/null +++ b/_constraints @@ -0,0 +1,9 @@ + + + + + 12 + + + + diff --git a/_service b/_service new file mode 100644 index 0000000..3485738 --- /dev/null +++ b/_service @@ -0,0 +1,26 @@ + + + + https://gitlab.gnome.org/Incubator/loupe.git + git + refs/tags/44.1 + @PARENT_TAG@+@TAG_OFFSET@ + (.*)\+0 + \1 + + + + + + *.tar + xz + + + loupe + true + + + loupe + + + diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..7dc45ff --- /dev/null +++ b/cargo_config @@ -0,0 +1,10 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source."git+https://gitlab.gnome.org/GNOME/librsvg.git?rev=2.56.0"] +git = "https://gitlab.gnome.org/GNOME/librsvg.git" +rev = "2.56.0" +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/loupe-44.1.obscpio b/loupe-44.1.obscpio new file mode 100644 index 0000000..5dcdb7f --- /dev/null +++ b/loupe-44.1.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0af6f1ebb35bf653c57a3d2421a313f227c86a4617de956cd70a134ad5e0f8a8 +size 811020 diff --git a/loupe-revert-gtk4-unstable-bump.patch b/loupe-revert-gtk4-unstable-bump.patch new file mode 100644 index 0000000..dae0769 --- /dev/null +++ b/loupe-revert-gtk4-unstable-bump.patch @@ -0,0 +1,20 @@ +Index: loupe-44.1/meson.build +=================================================================== +--- loupe-44.1.orig/meson.build ++++ loupe-44.1/meson.build +@@ -8,7 +8,7 @@ project('loupe', 'rust', + i18n = import('i18n') + gnome = import('gnome') + +-dependency('gtk4', version: '>=4.11.1') ++dependency('gtk4', version: '>=4.10') + dependency('libadwaita-1', version: '>=1.3.0') + dependency('gweather4', version: '>=4.0.0') + dependency('libheif', version: '>=1.14.2') +@@ -71,4 +71,4 @@ meson.add_dist_script( + 'build-aux/meson/dist-vendor.sh', + join_paths(meson.project_build_root(), 'meson-dist', meson.project_name() + '-' + meson.project_version()), + meson.project_source_root() +-) +\ No newline at end of file ++) diff --git a/loupe.changes b/loupe.changes new file mode 100644 index 0000000..f9a42a1 --- /dev/null +++ b/loupe.changes @@ -0,0 +1,17 @@ +------------------------------------------------------------------- +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..89dc00e --- /dev/null +++ b/loupe.obsinfo @@ -0,0 +1,4 @@ +name: loupe +version: 44.1 +mtime: 1680816289 +commit: ab34ad9f51a9fa5be7ff5d06fca3a92dee869ea0 diff --git a/loupe.spec b/loupe.spec new file mode 100644 index 0000000..378f566 --- /dev/null +++ b/loupe.spec @@ -0,0 +1,87 @@ +# +# 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/ +# + + +%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now' + +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 + diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..b778c6c --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d5ec3c2c7e9b8e69b0987db85060b8358ddc297d174300fc60be6a9626d1088 +size 61197890