File fbv.spec of Package fbv

#
# spec file for package fbv
#
# 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:           fbv
Version:        1.0b
Release:        0
Summary:        A small program to show image on frame buffer
License:        GPL-2.0-or-later
Group:          Productivity/Graphics/Viewers
Source:         fbv-%{version}.tar.gz
Patch0:         fbv-nocenter.patch
Patch1:         fbv-1.0b-features.h.patch
Patch2:         fbv-1.0b-libpng15.patch
BuildRequires:  libjpeg-devel
BuildRequires:  pkgconfig(libpng)

%description
fbv is a small program to show image on frame buffer.

fbv always rescales the image to the full screen.  So, prepare a image
file fits with your monitor.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p2

%build
./configure --prefix=%{_prefix} --mandir=%{_mandir} --without-libungif
%make_build CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
%make_install

%files
%license COPYING
%doc README
%{_bindir}/*
%{_mandir}/man1/%{name}.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by