SHA256
1
0
forked from pool/loupe

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
This commit is contained in:
Bjørn Lie 2023-04-11 10:23:56 +00:00 committed by Git OBS Bridge
commit d01332f524
11 changed files with 203 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

9
_constraints Normal file
View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<constraints>
<hardware>
<disk>
<size unit="G">12</size>
</disk>
</hardware>
</constraints>

26
_service Normal file
View File

@ -0,0 +1,26 @@
<?xml version="1.0"?>
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://gitlab.gnome.org/Incubator/loupe.git</param>
<param name="scm">git</param>
<param name="revision">refs/tags/44.1</param>
<param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param>
<param name="versionrewrite-pattern">(.*)\+0</param>
<param name="versionrewrite-replacement">\1</param>
<!-- <param name="changesgenerate">enable</param> -->
</service>
<service name="set_version" mode="manual"/>
<service name="tar" mode="buildtime"/>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="cargo_vendor" mode="manual">
<param name="srcdir">loupe</param>
<param name="update">true</param>
</service>
<service name="cargo_audit" mode="manual">
<param name="srcdir">loupe</param>
</service>
</services>

10
cargo_config Normal file
View File

@ -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"

3
loupe-44.1.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0af6f1ebb35bf653c57a3d2421a313f227c86a4617de956cd70a134ad5e0f8a8
size 811020

View File

@ -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
+)

17
loupe.changes Normal file
View File

@ -0,0 +1,17 @@
-------------------------------------------------------------------
Thu Apr 6 22:14:35 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
- 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 <bjorn.lie@gmail.com>
- Initial packaging for openSUSE.

4
loupe.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: loupe
version: 44.1
mtime: 1680816289
commit: ab34ad9f51a9fa5be7ff5d06fca3a92dee869ea0

87
loupe.spec Normal file
View File

@ -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

3
vendor.tar.zst Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8d5ec3c2c7e9b8e69b0987db85060b8358ddc297d174300fc60be6a9626d1088
size 61197890