%ifos darwin %define __soext dylib %define __defattr %defattr(-,root,wheel) %else %define __soext so %define __defattr %defattr(-,root,root) %endif %define LIBVER 62.0.0 Summary: A library for manipulating JPEG image format files. Name: libjpeg Version: 6b Release: 34a License: distributable Group: System Environment/Libraries Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.bz2 Patch0: libjpeg-6b-arm.patch Patch1: jpeg-c++.patch Patch2: libjpeg-shared.patch Patch3: libjpeg-rpath.patch Buildroot: %{_tmppath}/%{name}-root %package devel Summary: Development tools for programs which will use the libjpeg library. Group: Development/Libraries Requires: libjpeg = %{version} %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. %description devel The libjpeg-devel package includes the header files and static libraries 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. %prep %setup -q -n jpeg-6b %patch0 -p1 -b .arm %patch1 -p1 -b .c++ %patch2 -p1 -b .ppcshared %patch3 -p1 %build # libtoolize --hack cp /usr/share/libtool/{config.guess,config.sub,ltmain.sh} . %configure --enable-shared --enable-static %ifos darwin cp /usr/bin/glibtool libtool %endif make libdir=%{_libdir} %{?_smp_mflags} LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD make test %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/{include,bin} mkdir -p $RPM_BUILD_ROOT%{_libdir} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 %makeinstall # Work around the broken makefiles... mv $RPM_BUILD_ROOT%{_mandir}/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 /sbin/ldconfig -n $RPM_BUILD_ROOT/%{_libdir} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %{__defattr} %doc usage.doc README %ifos darwin %{_prefix}/lib/libjpeg.*.%{__soext} %else %{_prefix}/lib/libjpeg.%{__soext}.* %endif %{_bindir}/* %{_mandir}/*/* %files devel %{__defattr} %doc libjpeg.doc coderules.doc structure.doc wizard.doc example.c %{_libdir}/libjpeg.a %{_libdir}/libjpeg.la %{_libdir}/libjpeg.%{__soext} %{_includedir}/*.h %changelog * Fri May 05 2005 Keisuke Fujii 6b-34a - 1st release on MacOS X Release 10.4 * Sun Jan 04 2004 Keisuke Fujii 6b-29a - 1st release on MacOS X Release 10.2 * 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 Rosenkränzer - 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