File jpegpixi.spec of Package jpegpixi
#
# spec file for package jpegpixi
#
# Copyright (c) 2017 SUSE LINUX 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 http://bugs.opensuse.org/
#
Name: jpegpixi
Version: 1.1.1
Release: 0
Summary: JPEG Pixel Interpolator
License: GPL-2.0+
Group: Productivity/Graphics/Other
Url: http://web.archive.org/web/20081015144758/http://www.zero-based.org:80/software/jpegpixi/
Source: %{name}-%{version}.tar.gz
Source1: %{name}-%{version}.tar.gz.sig
Source2: %{name}.keyring
# Documentation from the web that existed in past:
Source3: %{name}-doc.tar.xz
BuildRequires: libjpeg-devel
Recommends: %{name}-lang = %{version}
%description
"Jpegpixi" is short for "JPEG pixel interpolator". The intent of the program
is to interpolate pixels in JFIF images (commonly referred to as "JPEG
images"). This is useful to correct images from a digital camera with CCD
defects. For example, if one pixel is always bright green, this pixel can be
interpolated away with jpegpixi.
Jpegpixi is unique in that it tries to preserve the quality of the JFIF
image as much as possible. Usual graphics programs decode JFIF images when
they are loaded, and re-encode them when they are saved, which results in an
overall loss of quality. Jpegpixi, on the other hand, does not decode and
re-encode the image, but manipulates the encoded image data (known as the
"discrete cosine transformation coefficients"). Therefore, the blocks
(typically 8x8, 8x16, or 16x16 pixel areas) which contain the pixels to be
interpolated are minimally disturbed, and other blocks remain pixel-by-pixel
identical to the original image.
Jpegpixi is a command line utility.
%lang_package
%prep
%setup -q -a3
%build
%configure
make %{?_smp_mflags}
%install
%make_install
%find_lang %{name} --with-man
%find_lang jpeghotp --with-man
%files lang -f %{name}.lang -f jpeghotp.lang
%defattr(-,root,root)
# FIXME: Should be owned by filesystem
%dir %lang(fi) %{_mandir}/fi
%dir %lang(fi) %{_mandir}/fi/man1
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog EXAMPLES FAQ NEWS README README.jpeglib example*.jpg
%{_bindir}/*
%{_mandir}/*/*%{ext_man}
%changelog