gd/gd.spec

290 lines
9.3 KiB
RPMSpec
Raw Normal View History

#
# spec file for package gd (Version 2.0.36.RC1)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gd
BuildRequires: fontconfig-devel freetype2-devel libjpeg-devel libpng-devel xorg-x11-libX11-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel xorg-x11-libXpm-devel
License: X11/MIT
Group: System/Libraries
Provides: gdlib
Obsoletes: gdlib
AutoReqProv: on
Version: 2.0.36.RC1
Release: 1
Url: http://www.libgd.org/
Summary: A Drawing Library for Programs That Use PNG and JPEG Output
Source: gd-%{version}.tar.bz2
Patch0: gd-2.0.36RC1-warn.patch
#Patch1: gd-CAN-2004-0941.patch
Patch2: gd-format.patch
Patch3: gd-aliasing.patch
Patch6: gd-fontpath.patch
Patch7: gd-2.0.36RC1-config.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Gd allows your code to quickly draw images complete with lines, arcs,
text, and multiple colors. It supports cut and paste from other images
and flood fills. It outputs PNG, JPEG, and WBMP (for wireless devices)
and is supported by PHP4.
Authors:
--------
Thomas Boutell <boutell@boutell.com>
%package devel
Requires: %{name} = %{version} glibc-devel
License: X11/MIT
Summary: Drawing Library for Programs with PNG and JPEG Output
Group: Development/Libraries/C and C++
%description devel
gd allows code to quickly draw images complete with lines, arcs, text,
multiple colors, cut and paste from other images, and flood fills. gd
writes out the result as a PNG or JPEG file. This is particularly
useful in World Wide Web applications, where PNG and JPEG are two of
the formats accepted for inline images by most browsers.
Authors:
--------
Thomas Boutell <boutell@boutell.com>
%prep
%setup -q
#%patch0
%patch2 -p1
%patch3
%patch6
%patch7
%build
autoreconf -fi
export CFLAGS="$RPM_OPT_FLAGS"
export CPPFLAGS="%{optflags}"
%configure \
--with-freetype \
--with-jpeg \
--with-png \
--with-xpm \
--disable-static \
--with-pic
make
#run test programs
cp test/gdtest_wbmp_to_png.png gdtest.png
./gdtest gdtest.png 2>&1 |tee gdtest.log
grep ERROR gdtest.log && exit 1
./gdtest demoin.png 2>&1 |tee gdtest.log
# wbmp test fails on color image, this is OK
grep -v "gdtest.png, gdtest.wbmp.*ERROR" gdtest.log | grep ERROR && exit 1
./gddemo
# The following would require xorg-x11-fonts-scalable which we do not like to have as requirement
# so disable it.
#for f in `find /usr/share/fonts/truetype /usr/X11R6/lib/X11/fonts/truetype -name "*.ttf"` ; do
# ./gdtestft $f
#done
%install
make install DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING INSTALL README* index.html
/usr/bin/annotate
/usr/bin/bdftogd
/usr/bin/gd2copypal
/usr/bin/gd2togif
/usr/bin/gd2topng
/usr/bin/gdcmpgif
/usr/bin/gdparttopng
/usr/bin/gdtopng
/usr/bin/giftogd2
/usr/bin/pngtogd
/usr/bin/pngtogd2
/usr/bin/webpng
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root)
%{_bindir}/gdlib-config
%{_includedir}/*
%{_libdir}/*.so
%exclude %{_libdir}/*.la
%changelog
* Mon Mar 10 2008 crrodriguez@suse.de
- fix rpm version number, otherwise it wont upgrade later.
* Fri Jan 18 2008 anosek@suse.cz
- updated to version 2.0.36RC1
* Fixed gdImageCopy with true color image, the transparent color was ignored
* Fixed support of PNG grayscale image with alpha channel
* Added Netware builds script
* ease the creation of regexp to match symbols/functions in the sources
* _gdCreateFromFile() can crash if gdImageCreate fails
* gdImageCreateFrom*Ptr() can crash if gdNewDynamicCtxEx() fails
* gdImageRectangle draws 1x1 rectangles as 1x3 rectangles
* Possible integer overflow in gdImageFill()
* Optimization for single pixel line not in correct order
* gdImageColorDeallocate can write outside buffer
* gdImageColorTransparent can write outside buffer
* gdImageWBMPCtx can crash when createwbmp fails
* Fixed decoding of the html entity &thetasym;
* Fixed configure script ignoring --with-png=DIR option
- dropped obsoleted security.patch
* Thu Dec 20 2007 crrodriguez@suse.de
- remove static libraries and "la" files
- devel package dependency cleanup
* Mon Jul 09 2007 anosek@suse.cz
- updated to version 2.0.35
* Fix valgrind error in gdImageFillTiled (Nuno Lopes)
* Add missing custom cmake macros (required for the tests suite)
* Avoid signature buffer copy in gd_gif_c (Nuno Lopes)
* Race condition in gdImageStringFTEx (Antony Dogval, Pierre
Scott MacVicar)
* Reading GIF images is not thread safe (static usage in private
functions) (Roman Nemecek, Nuno Lopes, Pierre)
* GIF Local palette is read twice
* GIF, Use local frame dimension when possible instead of the
logical screen size (Pierre)
* GIF, do not try to use the global colmap if it does not exist
(Nuno Lopes, Pierre)
* gdImageAALine draws axis lines with two pixels width (Pierre)
* gdImageArc CPU usage with large angles (Pierre)
* gdImageFilledRectangle regression fixed when used with reversed
edges (Pierre)
* Possible infinite loop in libgd/gd_png.c, flaw found by Xavier
Roche (Pierre)
* Fixed segfault when an invalid color index is present in a GIF
image data, reported by Elliot <wccode at gmail dot com> (Pierre)
* Possible integer overflow in gdImageCreateTrueColor (Pierre)
gdImageCreateXbm can crash if gdImageCreate fails (Pierre)
- dropped obsolete patches (png-loop-CVE-2007-2756.patch)
* Tue May 29 2007 nadvornik@suse.cz
- fixed infinite loop on truncated png images
CVE-2007-2756 [#276525]
* Thu May 03 2007 prusnak@suse.cz
- changed expat to libexpat-devel in Requires of devel subpackage
* Tue Feb 20 2007 nadvornik@suse.cz
- updated to 2.0.34:
* security fixes merged upstream
* various other bugfixes
* Wed Aug 16 2006 aj@suse.de
- Reduce BuildRequires.
* Wed Aug 16 2006 aj@suse.de
- Remove unneeded BuildRequire xorg-x11.
* Wed Aug 16 2006 aj@suse.de
- Do not use fonts to build package.
* Wed Aug 16 2006 sndirsch@suse.de
- gd-fontpath.diff: fixes new fontpath for Type1 fonts
* Mon Aug 07 2006 nadvornik@suse.cz
- adjusted ttf fonts path for gdtestft
* Fri Jun 23 2006 nadvornik@suse.cz
- fixed another check for return value on error [#186953]
- gdlib-config is moved to devel package [#168628]
* Thu Jun 08 2006 nadvornik@suse.cz
- fixed check for EOF in gd_gif_in.c [#182334]
* Wed Mar 08 2006 sbrabec@suse.cz
- Fixed devel dependencies.
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Jan 12 2006 nadvornik@suse.cz
- compile with -fstack-protector
* Thu Jan 05 2006 nadvornik@suse.cz
- fixed another integer overflow [#138007]
* Thu Nov 24 2005 meissner@suse.de
- fixed 1 aliasing issue.
* Sat Feb 05 2005 meissner@suse.de
- added 1 missign format attribute
* Mon Nov 22 2004 nadvornik@suse.cz
- run test programs during build [#48382]
* Mon Nov 15 2004 nadvornik@suse.cz
- fixed more overflows - CAN-2004-0941 [#47666]
* Tue Nov 02 2004 nadvornik@suse.cz
- updated to 2.0.32:
* fixed several integer overflows [#47666]
* animated gif support
* Tue Aug 24 2004 nadvornik@suse.cz
- updated to 2.0.28:
restored support for reading and writing GIF images
* Fri Feb 20 2004 schwab@suse.de
- Fix missing return value.
* Thu Feb 05 2004 nadvornik@suse.cz
- updated to 2.0.22
- fixed dangerous compiler warnings
* Sat Jan 10 2004 adrian@suse.de
- add %%defattr and %%run_ldconfig
* Tue Jan 06 2004 nadvornik@suse.cz
- updated to 2.0.17
- fixed to build with new freetype
* Thu Jul 24 2003 mjancar@suse.cz
- update to 2.0.15
* Thu Feb 13 2003 nadvornik@suse.cz
- updated to 2.0.11: speed improvements, bugfixes
* Fri Dec 13 2002 prehak@suse.cz
- added gdImageCreateFromXpm() function prototype to gd.h
* Thu Nov 28 2002 nadvornik@suse.cz
- updated to 2.0.8
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Tue May 28 2002 bk@suse.de
- gd-devel requires gd and use prefix, bindir and includedir macros
* Wed Feb 13 2002 nadvornik@suse.cz
- used macro %%{_libdir}
* Fri Feb 01 2002 ro@suse.de
- changed neededforbuild <libpng> to <libpng-devel-packages>
* Mon Nov 05 2001 ro@suse.de
- fix Makefile.am for automake 1.5 (removed duplicated line)
* Fri May 25 2001 pblaha@suse.cz
- fix include on ia64
* Thu Mar 29 2001 ro@suse.de
- use aclocal
* Wed Mar 21 2001 ro@suse.de
- update to 1.8.4
- use freetype2
* Mon Dec 04 2000 pblaha@suse.cz
- move simbolick link libgd.so -> gd-devel
* Thu Nov 30 2000 aj@suse.de
- Add suse_update_config.
* Wed Nov 15 2000 pblaha@suse.cz
- aplied patch from perl-GD and split to gd & gd-devel
* Mon Jun 05 2000 bubnikv@suse.cz
- updated to 1.8.3
* Fri May 12 2000 nadvornik@suse.cz
- update to 1.8.1
- added BuildRoot
* Tue Oct 12 1999 ro@suse.de
- added xpm and ttf support
* Sun Oct 10 1999 ro@suse.de
- added libpng to neededforbuild
* Thu Oct 07 1999 schwab@suse.de
- update to 1.7.3
* Mon Sep 13 1999 bs@suse.de
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Thu Sep 09 1999 bs@suse.de
- fixed call of Check at the end of %%install section
* Wed Jun 16 1999 ro@suse.de
- fixed doc installation
* Tue Jun 15 1999 ro@suse.de
- update to 1.3
* Thu Feb 05 1998 ro@suse.de
- ready for autobuild