SHA256
1
0
forked from pool/swayimg

- Update to version 3.2

* Added configurable limit for gallery cache;
  * Added configurable scale for thumbnails (fit/fill);
  * Fixed segfault when using some fonts;
  * Fixed gallery layout;
  * Fixed skipping image in viewer mode;
  * In Sway mode now used PID for dynamic rules.

OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/swayimg?expand=0&rev=22
This commit is contained in:
Muhammad Akbar Yanuar Mantari 2024-08-23 10:07:54 +00:00 committed by Git OBS Bridge
commit 6b389c8f6d
10 changed files with 263 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

3
swayimg-2.2.tar.gz Normal file
View File

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

3
swayimg-2.4.tar.gz Normal file
View File

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

3
swayimg-2.5.tar.gz Normal file
View File

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

3
swayimg-3.0.tar.gz Normal file
View File

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

3
swayimg-3.1.tar.gz Normal file
View File

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

3
swayimg-3.2.tar.gz Normal file
View File

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

126
swayimg.changes Normal file
View File

@ -0,0 +1,126 @@
-------------------------------------------------------------------
Fri Aug 23 10:02:34 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Update to version 3.2
* Added configurable limit for gallery cache;
* Added configurable scale for thumbnails (fit/fill);
* Fixed segfault when using some fonts;
* Fixed gallery layout;
* Fixed skipping image in viewer mode;
* In Sway mode now used PID for dynamic rules.
-------------------------------------------------------------------
Sun Aug 11 18:10:29 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Update to version 3.1
* Added SIGUSR1 and SIGUSR2 signal support;
* gallery: Fixed reload action;
* gallery: Added border/shadow configuration;
* gallery: Fixed thumbnail position (center);
* gallery: Added help screen;
* gallery: Added prev_file, next_file, page_up, page_down
actions;
* Added default binding Shift+Del to delete files;
* Changed app icon.
-------------------------------------------------------------------
Sun Aug 4 10:46:04 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Update to version 3.0
* Added key binding configuration for gallery mode;
* Added info configuration for gallery mode;
* Added timeout for status message;
* Fixed thumbnail layout in gallery mode;
* Fixed crash opening gallery mode;
* Fixed memory leak when resizing windows;
* Fixed hangs on opening empty dir in gallery mode;
* Note: the configuration file is incompatible with previous
versions.
-------------------------------------------------------------------
Wed Jul 24 11:07:01 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Update to version 2.5
* Added gallery mode;
* Added animation support for JXL format;
* Improved mouse drag usability;
* Some bugs fixed, some added.
- add additional tests, for now only failed on heif and avif files
-------------------------------------------------------------------
Mon Jul 15 21:18:43 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Update to version 2.4
* Fixed segfault on exit;
* Fixed text char positions;
* Fixed text shadow config;
* Fixed cache and preload config;
* Added support for multiple action per key;
* Added new action: status (allows to print text message);
* Added support for skipping files;
* Added option to unlock image position;
* Added support for transparent colors in config;
* Added timeout to hide the info block;
* Added support for external image data source;
* Added options for managing of cache and preload;
* Fixed mouse drag error (dragged only by diagonal);
* Fixed reset scale on window focus lost;
* Fixed crash on reloading stdin files;
* Some minor fixes.
- Add conditional build for leap
- Add gcc-c++ BuildRequires: needed for build v2.4
-------------------------------------------------------------------
Sun Apr 7 00:15:37 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Update to version 2.2
* Fixed bug with displaying image on empty Sway workspace;
* Fixed crash on delete last file;
* Fixed long-press key handling;
* Fixed drawing on uninitialized surface;
* Fixed crash on decoding some GIF images;
* Added Truevision TGA format support.
-------------------------------------------------------------------
Mon Feb 5 10:27:15 UTC 2024 - Jakob Lorenz <onlyjak0b@mailbox.org>
- Set version correctly
-------------------------------------------------------------------
Fri Feb 2 12:25:44 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Update to version 2.1
* Added support for key modifiers (Ctrl/Alt/Shift);
* Added mouse/touchpad configuration;
* Added touchpad scrolling support;
* Added support for mouse drag;
* Optimized font render;
* Removed unnecessary image reload.
-------------------------------------------------------------------
Wed Jan 3 16:04:45 UTC 2024 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Update to version 2.0
* Added support for multiple exec commands;
* Added custom zoom/move step in key bindings;
* Added support for animated PNG and AVIFS;
* Added new scaling modes: fill, fit with and height;
* Automatic reloading image when it changes;
* Replaced anti-aliasing algorithm;
* Added double buffering for output, fixed scaling glitches;
* Added help (F1);
* Some minor bugfix and improvements.
* Note: the configuration file is incompatible with previous
versions.
- Add pkgconfig(libavif) BuildRequires: Needed to build v2.0
-------------------------------------------------------------------
Tue Jul 25 09:56:59 UTC 2023 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Remove ldconfig scriptlets
-------------------------------------------------------------------
Mon Jul 24 11:59:49 UTC 2023 - Muhammad Akbar Yanuar Mantari <mantarimay@pm.me>
- Initial package for openSUSE

95
swayimg.spec Normal file
View File

@ -0,0 +1,95 @@
#
# spec file for package swayimg
#
# Copyright (c) 2024 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/
#
%bcond_with test
Name: swayimg
Version: 3.2
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: gcc-c++
BuildRequires: pkgconfig
%if 0%{?suse_version} > 1600
BuildRequires: pkgconfig(OpenEXR) >= 3.1
BuildRequires: pkgconfig(libjxl)
%endif
BuildRequires: pkgconfig(bash-completion)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(json-c)
BuildRequires: pkgconfig(libavif)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libheif)
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 \
%if 0%{?suse_version} < 1600
-Dexr=disabled \
-Djxl=disabled \
%endif
%if %{with test}
-Dtests=enabled \
%endif
-Dversion=%{version}
%meson_build
%install
%meson_install
%if %{with test}
%check
%meson_test
%endif
%files
%license LICENSE
%doc README.md
%{_bindir}/swayimg
%dir %{_datadir}/swayimg
%{_datadir}/swayimg/swayimgrc
%{_datadir}/applications/swayimg.desktop
%{_datadir}/bash-completion/completions/swayimg
%{_datadir}/icons/hicolor/*/apps/swayimg.png
%{_mandir}/man1/swayimg.1%{?ext_man}
%{_mandir}/man5/swayimgrc.5%{?ext_man}
%{_datadir}/zsh/site-functions/_swayimg
%changelog