Summary: A graphics library for quick creation of PNG or JPEG images Name: gd Version: 2.0.35 Release: 1 Group: System Environment/Libraries License: BSD-style URL: http://www.libgd.org/Main_Page Source0: http://www.libgd.org/releases/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Requires: freetype, fontconfig, xpm Requires: libjpeg, libpng, zlib, pkg-config BuildRequires: freetype-devel, fontconfig-devel, xpm-devel BuildRequires: libjpeg-devel, libpng-devel, zlib-devel, pkg-config %description The gd graphics library allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and to write out the result as a PNG or JPEG file. This is particularly useful in Web applications, where PNG and JPEG are two of the formats accepted for inline images by most browsers. Note that gd is not a paint program. %package progs Requires: gd = %{version}-%{release} Summary: Utility programs that use libgd Group: Applications/Multimedia %description progs The gd-progs package includes utility programs supplied with gd, a graphics library for creating PNG and JPEG images. If you install these, you must also install gd. %package devel Summary: The development libraries and header files for gd Group: Development/Libraries Requires: gd = %{version}-%{release} Requires: xpm-devel, libjpeg-devel, freetype-devel Requires: libpng-devel, zlib-devel, fontconfig-devel Requires: pkg-config %description devel The gd-devel package contains the development libraries and header files for gd, a graphics library for creating PNG and JPEG graphics. %prep %setup -q %build ./configure --prefix=%{_prefix} --enable-static --enable-shared make %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING README-JPEG.TXT index.html entities.html %{_libdir}/*.a %files progs %defattr(-,root,root,-) %{_bindir}/bdftogd %{_bindir}/gd2copypal %{_bindir}/gd2togif %{_bindir}/gd2topng %{_bindir}/gdcmpgif %{_bindir}/gdparttopng %{_bindir}/gdtopng %{_bindir}/giftogd2 %{_bindir}/pngtogd %{_bindir}/pngtogd2 %{_bindir}/webpng %{_libdir}/*.a %files devel %defattr(-,root,root,-) %doc index.html %{_bindir}/gdlib-config %{_includedir}/* %{_libdir}/*.la %changelog * Fri Sep 28 2007 Michael Perzl - 2.0.35-1 - first version for AIX V5.1 and higher