packages gd.spec
      Pages: < 1 >  DOWNLOAD      
%define libname libgd

Name:          gd
Version:       2.0.35
Release:       4mamba
Summary:       A library used to create PNG, JPEG, or WBMP images
Group:         System/Libraries
Vendor:        openmamba
Distribution:  openammba
Packager:      Silvan Calarco <silvan.calarco@...>
URL:           http://www.boutell.com/gd/
Source:        http://www.libgd.org/releases/%{name}-%{version}.tar.bz2
Patch0:        %{name}-2.0.35-CVE_2007_0455.patch
Patch1:        %{name}-2.0.35-gd_gif_loop.patch
# see "DEFAULT_FONTPATH" in index.html
Patch2:        %{name}-2.0.35-default_fontpath.patch
License:       BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
BuildRequires: libX11-devel
BuildRequires: libXpm-devel
BuildRequires: libz-devel
BuildRequires: perl-devel
## AUTOBUILDREQ-END
BuildRequires: gettext-devel >= 0.14.4
BuildRoot:     %{_tmppath}/%{name}-%{version}-root

%description
GD is a graphics library.
It allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and write out the result as a PNG or JPEG file. GD does not create GIF images.

%package -n %{libname}
Summary:       A library used to create PNG, JPEG, or WBMP images
Group:         System/Libraries

%description -n %{libname}
GD is a graphics library.
It allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and write out the result as a PNG or JPEG file. GD does not create GIF images.

%package -n %{libname}-devel
Summary:       Static libraries and headers for %{name}
Group:         Development/Libraries
Requires:      libgd = %{version}-%{release}

%description -n %{libname}-devel
GD is a graphics library.
It allows your code to quickly draw images complete with lines, arcs, text, multiple colors, cut and paste from other images, and flood fills, and write out the result as a PNG or JPEG file. GD does not create GIF images.

This package contains static libraries and header files need for development.

%package utils
Summary:       The utils files for %{name}
Group:         Applications/Multimedia
Requires:      %{libname} = %{version}-%{release}

%description utils
The gd-utils package includes utility programs supplied with gd, a graphics library for creating PNG and JPEG images.

%prep
%setup -q -n gd-%{version}
%patch0 -p1 -b .CVE-2007-0455
%patch1 -p1 -b .gif_loop
%patch2 -p1 -b .default_fontpath
chmod 644 README.TXT COPYING README-JPEG.TXT

%build
%configure
%make

%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall

%post   -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig

%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.*
%doc COPYING README-JPEG.TXT README.TXT

%files -n %{libname}-devel
%defattr(-,root,root)
%{_bindir}/gdlib-config
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/*.la
%{_libdir}/*.so

%files utils
%defattr(-,root,root)
%{_bindir}/*
%exclude %{_bindir}/gdlib-config
%doc index.html

%changelog
* Fri Jul 02 2010 Silvan Calarco <silvan.calarco@...> 2.0.35-4mamba
- rebuilt with libpng 1.4 and libjpeg 8

* Thu Jun 03 2010 Silvan Calarco <silvan.calarco@...> 2.0.35-3mamba
- rebuilt with current libjpeg

* Sat Oct 25 2008 Aleph0 <aleph0@...> 2.0.35-2mamba
- fixed permissions of the documentation files
- security update: CVE-2007-0455 (gd buffer overrun)
- prevent from an infinite loop when decoding bad GIF images

* Mon Jun 16 2008 Silvan Calarco <silvan.calarco@...> 2.0.35-1mamba
- update to 2.0.35

* Mon Mar 19 2007 Silvan Calarco <silvan.calarco@...> 2.0.34-1qilnx
- update to version 2.0.34 by autospec

* Thu Jun 29 2006 Davide Madrisan <davide.madrisan@...> 2.0.33-3qilnx
- security update: CAN-2006-2906 (qibug:186)

* Wed Apr 13 2005 Davide Madrisan <davide.madrisan@...> 2.0.33-2qilnx
- added gd-utils package
- fixed security issue QSA-2005-043 (CAN-2004-0941)
- added %%post and %%postun scripts

* Fri Nov 05 2004 Davide Madrisan <davide.madrisan@...> 2.0.33-1qilnx
- update to version 2.0.33 by autospec
- also fix security issue QSA-2004-050 (CAN-2004-0990)

* Tue Jul 27 2004 Silvan Calarco <silvan.calarco@...> 2.0.28-1qilnx
- new version build

* Tue Jul 01 2004 Silvan Calarco <silvan.calarco@...> 2.0.26-2qilnx
- added *.so inclusion in devel package

* Tue Jun 29 2004 Silvan Calarco <silvan.calarco@...> 2.0.26-1qilnx
- new version build

* Tue Dec 30 2003 Silvan Calarco <silvan.calarco@...> 2.0.17-1qilnx
- new version rebuild

* Fri Jun 06 2003 Silvan Calarco <silvan.calarco@...> 2.0.15-1qilnx
- creation of libgd package