cvsdist a46fa6d
Summary: A graphics library for drawing image files in various formats.
cvsdist da0413e
Name: gd
cvsdist d850c3d
Version: 1.8.4
cvsdist d850c3d
Release: 2
cvsdist da0413e
Source0: http://www.boutell.com/gd/http/gd-%{version}.tar.gz
cvsdist d850c3d
Patch0: gd-1.8.4-redhat.patch
cvsdist da0413e
Copyright: BSD-style
cvsdist da0413e
Group: System Environment/Libraries
cvsdist da0413e
BuildRoot: %{_tmppath}/%{name}-root
cvsdist da0413e
Prereq: /sbin/ldconfig
cvsdist a46fa6d
BuildPrereq: freetype-devel, libjpeg-devel, libpng-devel, zlib-devel
cvsdist da0413e
%define shlibver %(echo %{version} | cut -f-2 -d.)
cvsdist da0413e
cvsdist da0413e
%description
cvsdist a46fa6d
Gd is a graphics library for drawing image files in various formats. Gd
cvsdist a46fa6d
allows your code to quickly draw images (lines, arcs, text, multiple colors,
cvsdist a46fa6d
cutting and pasting from other images, flood fills) and write out the result
cvsdist a46fa6d
as a jpeg, png or wbmp file. Gd is particularly useful in web applications,
cvsdist a46fa6d
where jpeg, png or wbmp files are commonly used as inline images.  Note,
cvsdist a46fa6d
however, that gd is not a paint program.
cvsdist a46fa6d
cvsdist a46fa6d
Install gd if you are developing applications which need to draw jpeg, png
cvsdist a46fa6d
or wbmp files. If you install gd, you'll also need to install the gd-devel
cvsdist da0413e
package.
cvsdist da0413e
cvsdist da0413e
%package progs
cvsdist da0413e
Requires: gd = %{version}, perl
cvsdist da0413e
Summary: Utility programs that use libgd.
cvsdist da0413e
Group: Applications/Multimedia
cvsdist da0413e
cvsdist da0413e
%description progs
cvsdist da0413e
These are utility programs supplied with gd, the .jpeg graphics library.
cvsdist da0413e
If you install these, you must install gd.
cvsdist da0413e
cvsdist da0413e
%package devel
cvsdist da0413e
Requires: gd = %{version}
cvsdist da0413e
Summary: The development libraries and header files for gd.
cvsdist da0413e
Group: Development/Libraries
cvsdist da0413e
cvsdist da0413e
%description devel
cvsdist a46fa6d
These are the development libraries and header files for gd, the jpeg,
cvsdist a46fa6d
png or wbmp graphics library.
cvsdist da0413e
cvsdist da0413e
If you're installing the gd graphics library, you must install gd-devel.
cvsdist da0413e
cvsdist da0413e
%prep
cvsdist da0413e
%setup -q
cvsdist da0413e
%patch0 -p1 -b .redhat
cvsdist da0413e
cvsdist da0413e
%build
cvsdist da0413e
make
cvsdist da0413e
gcc -shared -o libgd.so.%{version} -Wl,-soname=libgd.so.%{shlibver} \
cvsdist d850c3d
	`ar t libgd.a` -L/usr/X11R6/lib -lfreetype -lttf -ljpeg -lpng -lz -lm
cvsdist da0413e
cvsdist da0413e
%install
cvsdist da0413e
[ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
cvsdist da0413e
mkdir -p $RPM_BUILD_ROOT{%{_bindir},%{_includedir},%{_libdir}}
cvsdist da0413e
make install \
cvsdist da0413e
	INSTALL_BIN=$RPM_BUILD_ROOT%{_bindir} \
cvsdist da0413e
	INSTALL_INCLUDE=$RPM_BUILD_ROOT%{_includedir} \
cvsdist da0413e
	INSTALL_LIB=$RPM_BUILD_ROOT%{_libdir}
cvsdist da0413e
install -m 755 libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/
cvsdist da0413e
ln -s libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgd.so
cvsdist a46fa6d
ln -s libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgd.so.1
cvsdist a46fa6d
ln -s libgd.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgd.so.1.8
cvsdist da0413e
cvsdist da0413e
%clean
cvsdist da0413e
[ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
cvsdist da0413e
cvsdist da0413e
%post -p /sbin/ldconfig
cvsdist da0413e
cvsdist da0413e
%postun -p /sbin/ldconfig
cvsdist da0413e
cvsdist da0413e
%files
cvsdist da0413e
%defattr(-,root,root)
cvsdist da0413e
%doc readme.txt index.html
cvsdist a46fa6d
%{_libdir}/*.so*
cvsdist da0413e
cvsdist da0413e
%files progs
cvsdist da0413e
%defattr(-,root,root)
cvsdist da0413e
%{_bindir}/*
cvsdist da0413e
cvsdist da0413e
%files devel
cvsdist da0413e
%defattr(-,root,root)
cvsdist da0413e
%{_includedir}/*
cvsdist da0413e
%{_libdir}/*.so
cvsdist da0413e
%{_libdir}/*.a
cvsdist da0413e
cvsdist da0413e
%changelog
cvsdist d850c3d
* Mon Jun 25 2001 Philipp Knirsch <pknirsch@redhat.de>
cvsdist d850c3d
- Forgot to include the freetype library in the shared library linking. Fixed.
cvsdist d850c3d
cvsdist d850c3d
* Thu Jun 21 2001 Philipp Knirsch <pknirsch@redhat.de>
cvsdist d850c3d
- Update to 1.8.4
cvsdist d850c3d
cvsdist a46fa6d
* Tue Dec 19 2000 Philipp Knirsch <pknirsch@redhat.de>
cvsdist a46fa6d
- Updates the descriptions to get rid of al references to gif
cvsdist a46fa6d
cvsdist a46fa6d
* Tue Dec 12 2000 Philipp Knirsch <Philipp.Knirsch@redhat.de>
cvsdist a46fa6d
- Fixed bug #22001 where during installation the .so.1 and the so.1.8 links
cvsdist a46fa6d
  didn't get installed and therefore updates had problems.
cvsdist a46fa6d
cvsdist a46fa6d
* Wed Oct  4 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist a46fa6d
- define HAVE_LIBTTF to actually enable ttf support (oops, #18299)
cvsdist a46fa6d
- remove explicit dependencies on libpng, libjpeg, et. al.
cvsdist a46fa6d
- add BuildPrereq: freetype-devel
cvsdist a46fa6d
cvsdist da0413e
* Wed Aug  2 2000 Matt Wilson <msw@redhat.com>
cvsdist da0413e
- rebuilt against new libpng
cvsdist da0413e
cvsdist da0413e
* Mon Jul 31 2000 Nalin Dahyabhai <nalin@redhat.com>
cvsdist da0413e
- add %%postun run of ldconfig (#14915)
cvsdist da0413e
cvsdist da0413e
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
cvsdist da0413e
- automatic rebuild
cvsdist da0413e
cvsdist da0413e
* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com> 
cvsdist da0413e
- update to 1.8.3
cvsdist da0413e
cvsdist da0413e
* Sat Jun  4 2000 Nalin Dahyabhai <nalin@redhat.com> 
cvsdist da0413e
- rebuild in new environment
cvsdist da0413e
cvsdist da0413e
* Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com> 
cvsdist da0413e
- break out a -progs subpackage
cvsdist da0413e
- disable freetype support
cvsdist da0413e
cvsdist da0413e
* Fri May 19 2000 Nalin Dahyabhai <nalin@redhat.com> 
cvsdist da0413e
- update to latest version (1.8.2)
cvsdist da0413e
- disable xpm support
cvsdist da0413e
cvsdist da0413e
* Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com> 
cvsdist da0413e
- auto rebuild in the new build environment (release 6)
cvsdist da0413e
cvsdist da0413e
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
cvsdist da0413e
- auto rebuild in the new build environment (release 5)
cvsdist da0413e
cvsdist da0413e
* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
cvsdist da0413e
- buiuld for glibc 2.1
cvsdist da0413e
cvsdist da0413e
* Fri Sep 11 1998 Cristian Gafton <gafton@redhat.com>
cvsdist da0413e
- built for 5.2