File nsxiv.spec of Package nsxiv
#
# spec file for package nsxiv
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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: nsxiv
Version: 33
Release: 0
Summary: Simple X Image Viewer
License: GPL-2.0-only
URL: https://codeberg.org/nsxiv/nsxiv
Source: https://codeberg.org/nsxiv/nsxiv/archive/v%{version}.tar.gz
Patch0: 01-makefile.patch
BuildRequires: imlib2-devel
BuildRequires: libXft-devel
BuildRequires: libexif-devel
%description
nsxiv is a fork of the now-unmaintained sxiv with the purpose of being a
(mostly) drop-in replacement for sxiv, maintaining its interface and
adding features.
%prep
%setup -q -n %{name}
%patch -P 0
%build
export CC="gcc"
export CFLAGS="-std=c99"
export LDFLAGS="-s"
%make_build
%install
make install-all DESTDIR=%{buildroot} PREFIX=%{_prefix} EGPREFIX=%{_docdir}/%{name}/examples
%files
%doc README.md
%{_bindir}/%{name}
%{_docdir}/%{name}/examples
%{_datadir}/icons/hicolor
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/applications/%{name}.desktop
%changelog