File jpeg8.spec of Package jpeg8
#
# spec file for package jpeg8
#
# Copyright (c) 2011 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 http://bugs.opensuse.org/
#
%define major 8
%define minor 3
%define micro 0
%define srcver 8c
%define libver %{major}.%{minor}.%{micro}
# major number of library from libjpeg-turbo
%define cmajor 62
Name: jpeg8
Version: %{srcver}
Release: 0
Summary: Independent JPEG Group's JPEG Software
License: SUSE-IJG
Group: Productivity/Graphics/Convertors
Url: http://www.ijg.org/
Source0: jpegsrc.v%{version}.tar.gz
Source1: baselibs.conf
Conflicts: libjpeg-turbo
Patch0: %{name}-8b-jconfig.patch
Patch1: %{name}-8b-tiff-ojpeg.patch
Patch2: %{name}-8b-int32.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Software to implement JPEG image compression and decompression. JPEG
(pronounced "jay-peg") is a standardized compression method for
full-color and grayscale images. JPEG is intended for compressing
"real-world" scenes (most of the time these are pictures that have been
scanned-in with a scanner or taken with a digital camera). Cartoons and
other nonrealistic images are not its strong suit. It should be noted
that JPEG output is not necessarily the same as its input. If this is a
factor for you, do not use it. With typical real-world scenes, JPEG can
achieve high compression rates without noticeable differences. If you
can accept pictures of lower quality, JPEG can achieve amazingly high
compression rates.
There are some library functions available for reading and writing JPEG
files. The 'cjpeg' and 'djpeg' applications use the library to make
conversions between JPEG and other popular graphic file formats
possible. The JPEG library is meant to be used within other
applications.
Cjpeg compresses the input file, or standard input if no filename is
given, and produces a JPEG/JFIF file as standard output. Currently
supported input file formats include: PPM (PBMPLUS color format), PGM
(PBMPLUS Grayscale format), BMP, GIF, Targa, and RLE (Utah Raster
Toolkit Format) (RLE is only supported if the RLE library is
available). Djpeg decompresses a JPEG file into one of the above
mentioned formats.
%package -n libjpeg%{major}
Summary: JPEG libraries
Group: System/Libraries
Version: %{libver}
Release: 0
# bug437293
%ifarch ppc64
Obsoletes: libjpeg-64bit
%endif
#
%description -n libjpeg%{major}
The libraries (static and dynamic) for the jpeg-graphics format. The
sources are contained in the jpeg source package.
%package -n libjpeg%{major}-devel
Summary: Development Tools for applications which will use the Libjpeg Library
Group: Development/Libraries/C and C++
Version: %{libver}
Release: 0
Requires: libjpeg%{major} = %{version}
Conflicts: libjpeg%{cmajor}-devel
# bug437293
%ifarch ppc64
Obsoletes: libjpeg-devel-64bit
%endif
#
%description -n libjpeg%{major}-devel
The libjpeg-devel package includes the header files and libraries
necessary for compiling and linking programs which will manipulate JPEG
files using the libjpeg library.
%prep
%setup -q -n jpeg-%{srcver}
%patch0
%patch1
%patch2 -p1
%build
%configure --disable-static --enable-shared --with-pic
%{__make} %{?jobs:-j%jobs} libdir=%{_libdir}
%check
make test libdir=%{_libdir}
%install
%makeinstall libdir=%{_libdir}
rm -f $RPM_BUILD_ROOT/%{_libdir}/libjpeg.la
%post -n libjpeg%{major} -p /sbin/ldconfig
%postun -n libjpeg%{major} -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README change.log coderules.txt filelist.txt libjpeg.txt
%doc jconfig.txt structure.txt usage.txt wizard.txt
/usr/bin/*
%doc %{_mandir}/man1/*
%files -n libjpeg%{major}
%defattr(-,root,root)
%{_libdir}/libjpeg.so.%{libver}
%{_libdir}/libjpeg.so.%{major}
%files -n libjpeg%{major}-devel
%defattr(-,root,root)
/usr/include/*.h
%{_libdir}/libjpeg.so
%changelog