Files
feh/feh.spec
Avindra Goolcharan fc9696afb6 Accepting request 1184926 from home:dirkmueller:Factory
- update to 3.10.3:
  * Fix feh not respecting aspect ratio of thumbnails that are
    smaller than --thumb-width and --thumb-height
  * Fix --no-recursive behaving like --recursive
  * Fix rotation by 180° corrupting images
  * Speed up --sort=size and --sort=mtime by caching stat(2)
    calls

  * Fix crash in right-click / menu rendering code on some distributions
  * Enable --version-sort on systems without strverscmp support.
  * Fix crashes when combining --reload and --multiwindow
- Enable inotify support for automatic reload.
 * Reload current image(s) when receiving SIGUSR1 or SIGUSR2
  * Add option --edit, which makes flip and rotation change the
    underlying file as well as the displayed image. This was the
  * Change default toggle_fullscreen key from "v" to "f" as this
  * flip and rotation (keys "<", ">", "||, amd "_") no longer change
    the underlying file. This leaves delet ("Ctrl+Delete") as the
    only destructive action which is enabled by default
  * Rename --magick-timeout to --conversion-timeout
  * Fix unintended aliasing in rotated images
  - Prevent automatic recalculation of the zoom ratio when
  * Fix filelists specified by -f/--filelist not being reloaded
- Remove unused buildRequires.
* add --auto-rotate option to enable auto rotation
* When removing the last image in slidsehow mode, stay on the last (previously
* Allow --sort and --randomize to override each other (most recently specified
* Thumbnail mode: Mark image as processed when executing an action (--action) by
* It is now possible to override feh's idea of the active xinerama screen using the
* Remove (undocumented) feature allowing to override feh's idea of the active

OBS-URL: https://build.opensuse.org/request/show/1184926
OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/feh?expand=0&rev=128
2024-07-03 21:06:56 +00:00

114 lines
3.5 KiB
RPMSpec

#
# spec file for package feh
#
# 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/
#
Name: feh
Version: 3.10.3
Release: 0
Summary: X11 image viewer
License: LGPL-2.0-or-later AND MIT
URL: https://feh.finalrewind.org/
Source: https://feh.finalrewind.org/%{name}-%{version}.tar.bz2
Source1: https://feh.finalrewind.org/%{name}-%{version}.tar.bz2.asc
Source2: %{name}.keyring
Source3: jpegexiforient.c
Source4: https://git.finalrewind.org/zsh/plain/etc/completions/_feh
Source99: feh-rpmlintrc
# PATCH-FIX-OPENSUSE feh-makefile_optflags.patch https://github.com/derf/feh/issues/71 pascal.bleser@opensuse.org -- pass OPTFLAGS to make instead of hard-coded -O2 -g
Patch1: feh-makefile_optflags.patch
# PATCH-FIX-UPSTREAM https://github.com/derf/feh/pull/337
Patch6: feh-makefile_app.patch
Patch7: feh-add_jxl_support.patch
BuildRequires: curl-devel
BuildRequires: libpng-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(imlib2)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xt)
Requires: imlib2-loaders
# Needs only the binaries from it. (boo#1080592)
Requires: libjpeg-turbo
Requires(post): desktop-file-utils
Requires(post): hicolor-icon-theme
Requires(postun): desktop-file-utils
Requires(postun): hicolor-icon-theme
%description
feh is an X11 image viewer aimed mostly at console users. It does not
have a fancy GUI, but simply displays images. It is controlled via
commandline arguments and configurable key/mouse actions. feh has
multiple file modes using a slideshow or multiple windows. It
supports the creation of montages as index prints with many
user-configurable options.
%package zsh-completion
Summary: ZSH Completion for %{name}
Supplements: (%{name} and zsh)
BuildArch: noarch
%description zsh-completion
ZSH completion script for %{name} 3.
%prep
%autosetup -p1
cp %{SOURCE3} .
%build
%make_build \
PREFIX="%{_prefix}" \
curl=1 \
help=1 \
xinerama=1 \
debug=0 \
exif=1 \
app=1 \
inotify=1 \
OPTFLAGS="%{optflags} -Wall -Wextra"
gcc %{optflags} -fwhole-program jpegexiforient.c -o jpegexiforient
%install
%make_install \
PREFIX="%{_prefix}" \
cam=1 app=1 examples=0
rm -rf "%{buildroot}%{_datadir}/doc"
install -D -m0755 jpegexiforient %{buildroot}%{_bindir}/jpegexiforient
install -Dm0644 %{SOURCE4} %{buildroot}/%{_datadir}/zsh/site-functions/_%{name}
%files
%license COPYING
%doc AUTHORS ChangeLog README.md TODO
%{_bindir}/feh
%{_bindir}/jpegexiforient
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/feh.1%{?ext_man}
%files zsh-completion
%{_datadir}/zsh
%changelog