File fbi.spec of Package fbi

# spec file for package fbi (Version 2.09)
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

Name:           fbi
Version:        2.09
Release:        1
License:        GPL-2.0+
Summary:        Image Viewer for the Linux Framebuffer Console
Group:          Productivity/Graphics/Viewers
#PATCH-FIX-UPSTREAM 0001-fix-misssing-space.patch --fix manpage
Patch0:		0001-fix-misssing-space.patch
BuildRequires:  curl-devel
BuildRequires:  freetype2-devel
BuildRequires:  giflib-devel
BuildRequires:  libpcd-devel
BuildRequires:  libpng-devel
BuildRequires:  libtiff-devel
BuildRequires:  libjpeg-devel
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(libexif)
Requires:       ghostscript-library
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This is a image viewer for Linux framebuffer devices. It has PhotoCD,
jpeg, ppm, gif, tiff, xwd, bmp, and png support built-in.  Unknown
formats are piped through convert (ImageMagick), which hopefully can
handle it.

    Gerd Knorr <>

%package -n exiftran
License:        LGPL-2.1+
Summary:        Transform Digital Camera JPEG Images
Group:          Productivity/Graphics/Other

%description -n exiftran
exiftran is a command-line utility to transform digital image JPEG
images. It can do lossless rotations like jpegtran, but unlike
jpegtran, it cares about the EXIF data.  It can rotate images
automatically by checking the EXIF orientation tag, updating the EXIF
information if needed (image dimension, orientation), and also rotating
the EXIF thumbnail. It can process multiple images at once.

    Gerd Knorr <>

%setup -q -n fbida-%{version}
%patch0 -p1

modified="$(sed -n '/^----/n;s/ - .*$//;p;q' "%{_sourcedir}/%{name}.changes")"
DATE="\"$(date -d "${modified}" "+%%b %%e %%Y")\""
TIME="\"$(date -d "${modified}" "+%%R")\""
find . -name '*.[ch]' -print0 |\
xargs -0 sed -i "s/__DATE__/${DATE}/g;s/__TIME__/${TIME}/g"

#rm -rf desktop

export CFLAGS="%{optflags}"
make %{?_smp_mflags} prefix=%{_prefix} exiftran fbi


%make_install prefix=%{_prefix} 

%doc %{_mandir}/man1/fb*.*

%files -n exiftran
%doc %{_mandir}/man1/exiftran.*

openSUSE Build Service is sponsored by