From 66c1e34ba8e0978bcdf4a6b319f701c16a00cf20d55f655d5383573407813e5f Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 25 Jul 2023 06:12:46 +0000 Subject: [PATCH] Accepting request 1100511 from home:mantarimay:sway - Initial package for openSUSE OBS-URL: https://build.opensuse.org/request/show/1100511 OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/swayimg?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + swayimg-1.12.tar.gz | 3 ++ swayimg.changes | 5 +++ swayimg.spec | 78 +++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 110 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 swayimg-1.12.tar.gz create mode 100644 swayimg.changes create mode 100644 swayimg.spec 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/swayimg-1.12.tar.gz b/swayimg-1.12.tar.gz new file mode 100644 index 0000000..52a4d6a --- /dev/null +++ b/swayimg-1.12.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4617322a1ec17985770dc351eea69b42b1464f2d838eb5015314634b2a30f126 +size 395978 diff --git a/swayimg.changes b/swayimg.changes new file mode 100644 index 0000000..8c7ab54 --- /dev/null +++ b/swayimg.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Jul 24 11:59:49 UTC 2023 - Muhammad Akbar Yanuar Mantari + +- Initial package for openSUSE + diff --git a/swayimg.spec b/swayimg.spec new file mode 100644 index 0000000..3c35cfa --- /dev/null +++ b/swayimg.spec @@ -0,0 +1,78 @@ +# +# spec file for package swayimg +# +# 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: swayimg +Version: 1.12 +Release: 0 +Summary: Image viewer for Sway/Wayland +License: MIT +URL: https://github.com/artemsen/swayimg +Source: https://github.com/artemsen/swayimg/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: giflib-devel +BuildRequires: hicolor-icon-theme +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: pkgconfig(OpenEXR) +BuildRequires: pkgconfig(bash-completion) +BuildRequires: pkgconfig(cairo) +BuildRequires: pkgconfig(fontconfig) +BuildRequires: pkgconfig(json-c) +BuildRequires: pkgconfig(libexif) +BuildRequires: pkgconfig(libheif) +BuildRequires: pkgconfig(libjxl) +BuildRequires: pkgconfig(libpng16) +BuildRequires: pkgconfig(librsvg-2.0) +BuildRequires: pkgconfig(libtiff-4) +BuildRequires: pkgconfig(libwebp) +BuildRequires: pkgconfig(libwebpdemux) +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(wayland-protocols) +BuildRequires: pkgconfig(xkbcommon) + +%description +Swayimg is a lightweight image viewer for Wayland display servers. + +In a Sway compatible mode, the viewer creates an "overlay" above +the currently active window, which gives the illusion that you are +opening the image directly in a terminal window. + +%prep +%autosetup + +%build +%meson +%meson_build + +%install +%meson_install + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%license LICENSE +%doc README.md +%{_bindir}/swayimg +%{_datadir}/applications/swayimg.desktop +%{_datadir}/bash-completion/completions/swayimg +%{_datadir}/icons/hicolor/64x64/apps/swayimg.png +%{_mandir}/man1/swayimg.1%{?ext_man} +%{_mandir}/man5/swayimgrc.5%{?ext_man} +%{_datadir}/zsh/site-functions/_swayimg + +%changelog