Summary: Library for manipulating JPEG image format files
Name: libjpeg
Version: 6b
Release: 40%{?dist}
License: IJG
Group: System Environment/Libraries
URL: http://www.ijg.org/
Source: http://www.ijg.org/files/jpegsrc.v6b.tar.gz
Patch0: libjpeg-6b-arm.patch
Patch1: jpeg-c++.patch
Patch2: libjpeg-shared.patch
Patch3: libjpeg-rpath.patch
Patch4: libjpeg-cflags.patch
Patch5: libjpeg-buf-oflo.patch
Patch6: libjpeg-install.patch
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
The libjpeg package contains a library of functions for manipulating
JPEG images, as well as simple client programs for accessing the
libjpeg functions. Libjpeg client programs include cjpeg, djpeg,
jpegtran, rdjpgcom and wrjpgcom. Cjpeg compresses an image file into
JPEG format. Djpeg decompresses a JPEG file into a regular image
file. Jpegtran can perform various useful transformations on JPEG
files. Rdjpgcom displays any text comments included in a JPEG file.
Wrjpgcom inserts text comments into a JPEG file.
%package devel
Summary: Development tools for programs which will use the libjpeg library
Group: Development/Libraries
Requires: libjpeg = %{version}-%{release}
%description devel
The libjpeg-devel package includes the header files and documentation
necessary for developing programs which will manipulate JPEG files using
the libjpeg library.
If you are going to develop programs which will manipulate JPEG images,
you should install libjpeg-devel. You'll also need to have the libjpeg
package installed.
%package static
Summary: Static JPEG image format file library
Group: Development/Libraries
Requires: libjpeg-devel = %{version}-%{release}
%description static
The libjpeg-static package contains the statically linkable version of libjpeg.
Linking to static libraries is discouraged for most applications, but it is
necessary for some boot packages.
%prep
%setup -q -n jpeg-6b
%patch0 -p1 -b .arm
%patch1 -p1 -b .c++
%patch2 -p1 -b .ppcshared
%patch3 -p1 -b .rpath
%patch4 -p1 -b .cflags
%patch5 -p1 -b .oflo
%patch6 -p1 -b .install
%build
%configure --enable-shared --enable-static
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install install-lib DESTDIR=%{buildroot}
rm $RPM_BUILD_ROOT%{_libdir}/*.la
%check
LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH make test
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc usage.doc README
%{_bindir}/*
%{_libdir}/libjpeg.so.*
%{_mandir}/man1/*
%files devel
%defattr(-,root,root,-)
%doc libjpeg.doc coderules.doc structure.doc wizard.doc example.c
%{_includedir}/*.h
%{_libdir}/*.so
%files static
%defattr(-,root,root,-)
%{_libdir}/*.a
%changelog
* Fri Aug 31 2007 Matthias Saou 6b-40
- Use original IJG source URL and switch to official gz (no bz2 in sight...).
- Move "make test" to %%check section.
- Include install patch to support DESTDIR and fix man pages location.
* Wed Aug 22 2007 Tom Lane - 6b-39
- Update License tag
- Rebuild to fix Fedora toolchain issues
* Mon Jun 25 2007 Tom Lane - 6b-38
- Initial review of package by new (old?) maintainer; marginal specfile cleanup
- Restore libjpeg.a to distribution, in a separate -static subpackage
Resolves: #186060, #215537
- Fix non-security-significant buffer overrun in wrjpgcom, per Lubomir Kundrak
Resolves: #226965
- Apply patch4 that was added by previous maintainer, but never applied
Resolves: #244778
Related: #238936
- Fix inter-RPM dependencies to include release
Resolves: #238780
* Thu Jul 27 2006 Matthias Clasen - 6b-37
- Use CFLAGS consistently
* Wed Jul 12 2006 Jesse Keating - 6b-36.2.2
- rebuild
* Fri Feb 10 2006 Jesse Keating - 6b-36.2.1
- bump again for double-long bug on ppc(64)
* Tue Feb 07 2006 Jesse Keating - 6b-36.2
- rebuilt for new gcc4.1 snapshot and glibc changes
* Fri Dec 09 2005 Jesse Keating
- rebuilt
* Wed Oct 12 2005 Matthias Clasen - 6b-36
- Don't ship static libraries
* Sun Mar 6 2005 Matthias Clasen - 6b-35
- Remove .la files (#145971)
* Wed Mar 2 2005 Matthias Clasen - 6b-34
- Rebuild with gcc4
* Thu Oct 7 2004 Matthias Clasen - 6b-33
- Add URL. (#134791)
* Tue Jun 15 2004 Elliot Lee
- rebuilt
* Tue Mar 02 2004 Elliot Lee
- rebuilt
* Fri Feb 13 2004 Elliot Lee
- rebuilt
* Thu Sep 25 2003 Jeremy Katz 6b-30
- rebuild to fix gzipped file md5sums (#91211)
* Tue Sep 23 2003 Florian La Roche
- do not set rpath
* Wed Jun 04 2003 Elliot Lee
- rebuilt
* Thu Feb 13 2003 Elliot Lee 6b-27
- Add libjpeg-shared.patch to fix shlibs on powerpc
* Tue Feb 04 2003 Florian La Roche
- add symlink to shared lib
* Wed Jan 22 2003 Tim Powers
- rebuilt
* Mon Jan 6 2003 Jonathan Blandford
- add docs, #76508
* Fri Dec 13 2002 Elliot Lee 6b-23
- Merge in multilib changes
- _smp_mflags
* Tue Sep 10 2002 Than Ngo 6b-22
- use %%_libdir
* Fri Jun 21 2002 Tim Powers
- automated rebuild
* Thu May 23 2002 Tim Powers
- automated rebuild
* Thu Jan 31 2002 Bernhard Rosenkraenzer 6b-19
- Fix bug #59011
* Mon Jan 28 2002 Bernhard Rosenkraenzer 6b-18
- Fix bug #58982
* Wed Jan 09 2002 Tim Powers
- automated rebuild
* Tue Jul 24 2001 Bill Nottingham
- require libjpeg = %%{version}
* Sun Jun 24 2001 Elliot Lee
- Bump release + rebuild.
* Mon Dec 11 2000 Than Ngo
- rebuilt with the fixed fileutils
- use %%{_tmppath}
* Wed Nov 8 2000 Bernhard Rosenkraenzer
- fix a typo (strip -R .comment, not .comments)
* Thu Jul 13 2000 Prospector
- automatic rebuild
* Sat Jun 17 2000 Bernhard Rosenkraenzer
- FHSify
- add some C++ tweaks to the headers as suggested by bug #9822)
* Wed May 5 2000 Bill Nottingham
- configure tweaks for ia64; remove alpha patch (it's pointless)
* Sat Feb 5 2000 Bernhard Rosenkraenzer
- rebuild to get compressed man pages
- fix description
- some minor tweaks to the spec file
- add docs
- fix build on alpha (alphaev6 stuff)
* Sun Mar 21 1999 Cristian Gafton
- auto rebuild in the new build environment (release 9)
* Wed Jan 13 1999 Cristian Gafton
- patch to build on arm
- build for glibc 2.1
* Mon Oct 12 1998 Cristian Gafton
- strip binaries
* Mon Aug 3 1998 Jeff Johnson
- fix buildroot problem.
* Tue Jun 09 1998 Prospector System
- translations modified for de
* Thu Jun 04 1998 Marc Ewing
- up to release 4
- remove patch that set (improper) soname - libjpeg now does it itself
* Thu May 07 1998 Prospector System
- translations modified for de, fr, tr
* Fri May 01 1998 Cristian Gafton
- fixed build on manhattan
* Wed Apr 08 1998 Cristian Gafton
- upgraded to version 6b
* Wed Oct 08 1997 Donnie Barnes
- new package to remove jpeg stuff from libgr and put in it's own package