Blame SPECS/gd.spec

afb210
Summary:       A graphics library for quick creation of PNG or JPEG images
afb210
Name:          gd
afb210
Version:       2.0.35
afb210
Release:       26%{?dist}
afb210
Group:         System Environment/Libraries
afb210
License:       MIT
afb210
URL:           http://www.libgd.org/Main_Page
afb210
Source0:       http://www.libgd.org/releases/%{name}-%{version}.tar.bz2
afb210
Patch0:        gd-2.0.33-freetype.patch
afb210
Patch3:        gd-2.0.34-multilib.patch
afb210
Patch4:        gd-loop.patch
afb210
Patch5:        gd-2.0.34-sparc64.patch
afb210
Patch6:        gd-2.0.35-overflow.patch
afb210
Patch7:        gd-2.0.35-AALineThick.patch
afb210
Patch8:        gd-2.0.33-BoxBound.patch
afb210
Patch9:        gd-2.0.34-fonts.patch
afb210
Patch10:       gd-2.0.35-time.patch
afb210
Patch11:       gd-2.0.35-security3.patch
afb210
Patch12:       gd-2.0.35-runtests.patch
afb210
Patch13:       gd-sa1.patch
afb210
Patch14:       gd-sa2.patch
afb210
Patch15:       gd-sa3.patch
afb210
Patch16:       gd-sa4.patch
afb210
Patch17:       gd-aarch64.patch
afb210
BuildRequires: freetype-devel, fontconfig-devel, libX11-devel, libXpm-devel
afb210
BuildRequires: libjpeg-devel, libpng-devel, zlib-devel, pkgconfig
afb210
# we need cmake for building test suite
afb210
BuildRequires: cmake, chrpath
afb210
afb210
%description
afb210
The gd graphics library allows your code to quickly draw images
afb210
complete with lines, arcs, text, multiple colors, cut and paste from
afb210
other images, and flood fills, and to write out the result as a PNG or
afb210
JPEG file. This is particularly useful in Web applications, where PNG
afb210
and JPEG are two of the formats accepted for inline images by most
afb210
browsers. Note that gd is not a paint program.
afb210
afb210
afb210
%package progs
afb210
Requires:       gd = %{version}-%{release}
afb210
Summary:        Utility programs that use libgd
afb210
Group:          Applications/Multimedia
afb210
afb210
%description progs
afb210
The gd-progs package includes utility programs supplied with gd, a
afb210
graphics library for creating PNG and JPEG images. 
afb210
afb210
afb210
%package devel
afb210
Summary:  The development libraries and header files for gd
afb210
Group:    Development/Libraries
afb210
Requires: gd = %{version}-%{release}
afb210
Requires: libX11-devel, libXpm-devel, libjpeg-devel, freetype-devel
afb210
Requires: libpng-devel, zlib-devel, fontconfig-devel
afb210
Requires: pkgconfig
afb210
afb210
%description devel
afb210
The gd-devel package contains the development libraries and header
afb210
files for gd, a graphics library for creating PNG and JPEG graphics.
afb210
afb210
%prep
afb210
%setup -q
afb210
%patch0 -p1 -b .freetype
afb210
%patch3 -p1 -b .mlib
afb210
%patch4 -p1 -b .loop
afb210
%patch6 -p1 -b .overflow
afb210
%patch5 -p1 -b .sparc64 
afb210
%patch7 -p1 -b .AALineThick
afb210
%patch8 -p1 -b .bb
afb210
%patch9 -p1 -b .fonts
afb210
%patch10 -p1 -b .time
afb210
%patch11 -p1 -b .sec3
afb210
%patch12 -p1 -b .runtests
afb210
%patch13 -p1 -b .sa1
afb210
%patch14 -p1 -b .sa2
afb210
%patch15 -p1 -b .sa3
afb210
%patch16 -p1 -b .sa4
afb210
%patch17 -p1 -b .aarch64
afb210
afb210
%build
afb210
%configure --disable-rpath
afb210
make %{?_smp_mflags}
afb210
afb210
%install
afb210
make install INSTALL='install -p' DESTDIR=$RPM_BUILD_ROOT 
afb210
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.la
afb210
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgd.a
afb210
afb210
# Using the last resort to remove rpath, another tricks didn't help
afb210
chrpath --delete $RPM_BUILD_ROOT%{_bindir}/{pngtogd,gdparttopng,annotate,gdcmpgif,gdtopng,webpng,pngtogd2,gd2togif,gd2copypal,giftogd2,gd2topng}
afb210
afb210
%check
afb210
pushd tests
afb210
cmake -DBUILD_TEST=1 \
afb210
      -DGD_INCLUDE_DIR="`pwd`/.." \
afb210
      -DGD_LIBS_DIR="`pwd`/../.libs" \
afb210
      -DGD_SOURCE_DIR="`pwd`/.." .
afb210
CPATH="`pwd`/gdtest" make
afb210
make test
afb210
popd
afb210
afb210
%post -p /sbin/ldconfig
afb210
afb210
%postun -p /sbin/ldconfig
afb210
afb210
%files
afb210
%doc COPYING README-JPEG.TXT index.html NEWS
afb210
%{_libdir}/*.so.*
afb210
afb210
%files progs
afb210
%{_bindir}/*
afb210
%exclude %{_bindir}/gdlib-config
afb210
afb210
%files devel
afb210
%doc index.html
afb210
%{_bindir}/gdlib-config
afb210
%{_includedir}/*
afb210
%{_libdir}/*.so
afb210
%{_libdir}/pkgconfig/gdlib.pc
afb210
afb210
%changelog
afb210
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.0.35-26
afb210
- Mass rebuild 2014-01-24
afb210
afb210
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.0.35-25
afb210
- Mass rebuild 2013-12-27
afb210
afb210
* Mon Mar 25 2013 Honza Horak <hhorak@redhat.com> - 2.0.35-24
afb210
- Fix build on aarch64
afb210
afb210
* Mon Mar 25 2013 Honza Horak <hhorak@redhat.com> - 2.0.35-23
afb210
- Fix issues found by Coverity
afb210
afb210
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.35-22
afb210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
afb210
afb210
* Fri Jan 18 2013 Adam Tkac <atkac redhat com> - 2.0.35-21
afb210
- rebuild due to "jpeg8-ABI" feature drop
afb210
afb210
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 2.0.35-20
afb210
- rebuild against new libjpeg
afb210
afb210
* Tue Aug 28 2012 Honza Horak <hhorak@redhat.com> - 2.0.35-19
afb210
- Spec file cleanup
afb210
- Compile and run test suite during build
afb210
- Using chrpath to get rid of --rpath in gd-progs
afb210
afb210
* Fri Jul 27 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.35-18
afb210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
afb210
afb210
* Mon Jun 11 2012 Honza Horak <hhorak@redhat.com> - 2.0.35-17
afb210
- fixed CVE-2009-3546 gd: insufficient input validation in _gdGetColors()
afb210
  Resolves: #830745
afb210
afb210
* Tue Feb 28 2012 Honza Horak <hhorak@redhat.com> - 2.0.35-16
afb210
- Fixed AALineThick.patch to display vertical lines correctly
afb210
  Resolves: #798255
afb210
afb210
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.35-15
afb210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
afb210
afb210
* Tue Nov 08 2011 Adam Jackson <ajax@redhat.com> 2.0.35-14
afb210
- Rebuild for libpng 1.5
afb210
afb210
* Wed Oct 26 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.35-13
afb210
- Rebuilt for glibc bug#747377
afb210
afb210
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.35-12
afb210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
afb210
afb210
* Wed Jan  6 2010 Jiri Moskovcak <jmoskovc@redhat.com> - 2.0.35-11
afb210
- more spec file fixes
afb210
afb210
* Wed Jan  6 2010 Jiri Moskovcak <jmoskovc@redhat.com> - 2.0.35-10
afb210
- spec file fixes based on merge review
afb210
afb210
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.35-9
afb210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
afb210
afb210
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.35-8
afb210
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
afb210
afb210
* Tue Jan  6 2009 Ivana Varekova <varekova@redhat.com> - 2.0.35-7
afb210
- do minor spec file cleanup 
afb210
afb210
* Mon Jul 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.35-6
afb210
- fix license tag (nothing in this is GPL)
afb210
afb210
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.0.35-5
afb210
- Autorebuild for GCC 4.3
afb210
afb210
* Tue Nov 20 2007 Ivana Varekova <varekova@redhat.com> 2.0.35-4
afb210
- remove static library
afb210
afb210
* Mon Nov 19 2007 Ivana Varekova <varekova@redhat.com> 2.0.35-3
afb210
- spec file cleanup
afb210
afb210
* Mon Nov 19 2007 Ivana Varekova <varekova@redhat.com> 2.0.35-2
afb210
- fix gdlib.pc file
afb210
afb210
* Tue Sep 18 2007 Ivana Varekova <varekova@redhat.com> 2.0.35-1
afb210
- update to 2.0.35
afb210
afb210
* Tue Sep  4 2007 Ivana Varekova <varekova@redhat.com> 2.0.34-3
afb210
- fix font paths (#225786#5)
afb210
- fix pkgconfig Libs flag (#225786#4)
afb210
afb210
* Thu Feb 22 2007 Ivana Varekova <varekova@redhat.com> 2.0.34-2
afb210
- incorporate package review feedback
afb210
afb210
* Thu Feb  8 2007 Ivana Varekova <varekova@redhat.com> 2.0.34-1
afb210
- update to 2.0.34
afb210
afb210
* Mon Jan 29 2007 Ivana Varekova <varekova@redhat.com> 2.0.33-12
afb210
- Resolves: #224610
afb210
  CVE-2007-0455 gd buffer overrun
afb210
afb210
* Tue Nov 21 2006 Ivana Varekova <varekova@redhat.com> 2.0.33-11
afb210
- Fix problem with to large box boundaries
afb210
  Resolves: #197747
afb210
afb210
* Thu Nov 16 2006 Ivana Varekova <varekova@redhat.com> 2.0.33-10
afb210
- added 'thick' - variable support for AA line (#198042)
afb210
afb210
* Tue Oct 31 2006 Adam Tkac <atkac@redhat.com> 2.0.33-9.4
afb210
- patched some additionals overflows in gd (#175414)
afb210
afb210
* Wed Sep 13 2006 Jitka Kudrnacova <jkudrnac@redhat.com> - 2.0.33 - 9.3
afb210
- gd-devel now requires fontconfig-devel (#205834)
afb210
afb210
* Wed Jul 19 2006 Jitka Kudrnacova <jkudrnac@redhat.com> - 2.0.33 - 9.2
afb210
- use CFLAGS on sparc64 (#199363)
afb210
afb210
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.0.33 - 9.1
afb210
- rebuild
afb210
afb210
* Mon Jul 10 2006 Jitka Kudrnacova <jkudrnac@redhat.com> 2.0.33-9
afb210
- prevent from an infinite loop when decoding bad GIF images (#194520)
afb210
 
afb210
* Thu May 25 2006 Ivana Varekova <varekova@redhat.com> - 2.0.33-7
afb210
- fix multilib problem (add pkgconfig)
afb210
afb210
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.0.33-6.2
afb210
- bump again for double-long bug on ppc(64)
afb210
afb210
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.0.33-6.1
afb210
- rebuilt for new gcc4.1 snapshot and glibc changes
afb210
afb210
* Fri Jan 20 2006 Phil Knirsch <pknirsch@redhat.com> 2.0.33-6
afb210
- Included a few more overflow checks (#177907)
afb210
afb210
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
afb210
- rebuilt
afb210
afb210
* Wed Nov 02 2005 Phil Knirsch <pknirsch@redhat.com> 2.0.33-5
afb210
- Switched BuildPreReqs and Requires to modular xorg-x11 style
afb210
afb210
* Mon Oct 10 2005 Phil Knirsch <pknirsch@redhat.com> 2.0.33-4
afb210
- Fixed possible gd crash when drawing AA line near image borders (#167843)
afb210
afb210
* Wed Sep 07 2005 Phil Knirsch <pknirsch@redhat.com> 2.0.33-3
afb210
- Fixed broken freetype-config --libs flags in configure (#165875)
afb210
afb210
* Sun Apr 17 2005 Warren Togami <wtogami@redhat.com> 2.0.33-2
afb210
- devel reqs (#155183 thias)
afb210
afb210
* Tue Mar 22 2005 Than Ngo <than@redhat.com> 2.0.33-1
afb210
- 2.0.33 #150717
afb210
- apply the patch from Jose Pedro Oliveira
afb210
  - Added the release macro to the subpackages requirements versioning
afb210
  - Handled the gdlib-config movement to gd-devel in a differment manner
afb210
  - Added fontconfig-devel to the build requirements
afb210
  - Added xorg-x11-devel to the build requirements (Xpm)
afb210
  - Removed explicit /sbin/ldconfig requirement (gd rpm)
afb210
  - Removed explicit perl requirement (gd-progs rpm)
afb210
  - Added several missing documentation files (including the license file)
afb210
  - Replaced %%makeinstall by make install DESTDIR=...
afb210
afb210
* Thu Mar 10 2005 Than Ngo <than@redhat.com> 2.0.32-3
afb210
- move gdlib-config in devel
afb210
afb210
* Wed Mar 02 2005 Phil Knirsch <pknirsch@redhat.com> 2.0.32-2
afb210
- bump release and rebuild with gcc 4
afb210
afb210
* Wed Nov 03 2004 Phil Knirsch <pknirsch@redhat.com> 2.0.32-1
afb210
- Update to 2.0.32 which includes all the security fixes
afb210
afb210
* Wed Oct 27 2004 Phil Knirsch <pknirsch@redhat.com> 2.0.28-2
afb210
- Fixed several buffer overflows for gdMalloc() calls
afb210
afb210
* Tue Jul 27 2004 Phil Knirsch <pknirsch@redhat.com> 2.0.28-1
afb210
- Update to 2.0.28
afb210
afb210
* Fri Jul 02 2004 Phil Knirsch <pknirsch@redhat.com> 2.0.27-1
afb210
- Updated to 2.0.27 due to:
afb210
  o Potential memory overruns in gdImageFilledPolygon. Thanks to John Ellson.
afb210
  o The sign of Y-axis values returned in the bounding box by gdImageStringFT
afb210
    was incorrect. Thanks to John Ellson and Riccardo Cohen.
afb210
afb210
* Wed Jun 30 2004 Phil Knirsch <pknirsch@redhat.com> 2.0.26-1
afb210
- Update to 2.0.26
afb210
afb210
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
afb210
- rebuilt
afb210
afb210
* Wed Apr 21 2004 Phil Knirsch <pknirsch@redhat.com> 2.0.21-3
afb210
- Disable rpath usage.
afb210
afb210
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
afb210
- rebuilt
afb210
afb210
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
afb210
- rebuilt
afb210
afb210
* Mon Feb 02 2004 Phil Knirsch <pknirsch@redhat.com> 2.0.21-1
afb210
- Updated to 2.0.21
afb210
afb210
* Tue Aug 12 2003 Florian La Roche <Florian.LaRoche@redhat.de>
afb210
- update to 2.0.15
afb210
afb210
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
afb210
- rebuilt
afb210
afb210
* Tue May 06 2003 Phil Knirsch <pknirsch@redhat.com> 2.0.12-1
afb210
- Update to 2.0.12
afb210
afb210
* Wed Jan 22 2003 Tim Powers <timp@redhat.com> 1.8.4-11
afb210
- rebuilt
afb210
afb210
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 1.8.4-10
afb210
- rebuild on all arches
afb210
afb210
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
afb210
- automated rebuild
afb210
afb210
* Thu May 23 2002 Tim Powers <timp@redhat.com>
afb210
- automated rebuild
afb210
afb210
* Thu Jan 24 2002 Phil Knirsch <pknirsch@redhat.com>
afb210
- Specfile update to add URL for homepage (#54608)
afb210
afb210
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
afb210
- automated rebuild
afb210
afb210
* Wed Oct 31 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.8.4-5
afb210
- Rebuild with current libpng
afb210
afb210
* Mon Aug 13 2001 Philipp Knirsch <pknirsch@redhat.de> 1.8.4-4
afb210
- Fixed a wrong double ownership of libgd.so (#51599).
afb210
afb210
* Fri Jul 20 2001 Bernhard Rosenkraenzer <bero@redhat.com> 1.8.4-3
afb210
- There's really no reason to link against both freetype 1.x and 2.x,
afb210
  especially when gd is configured to use just freetype 2.x. ;)
afb210
afb210
* Mon Jun 25 2001 Philipp Knirsch <pknirsch@redhat.de>
afb210
- Forgot to include the freetype library in the shared library linking. Fixed.
afb210
afb210
* Thu Jun 21 2001 Philipp Knirsch <pknirsch@redhat.de>
afb210
- Update to 1.8.4
afb210
afb210
* Tue Dec 19 2000 Philipp Knirsch <pknirsch@redhat.de>
afb210
- Updates the descriptions to get rid of al references to gif
afb210
afb210
* Tue Dec 12 2000 Philipp Knirsch <Philipp.Knirsch@redhat.de>
afb210
- Fixed bug #22001 where during installation the .so.1 and the so.1.8 links
afb210
  didn't get installed and therefore updates had problems.
afb210
afb210
* Wed Oct  4 2000 Nalin Dahyabhai <nalin@redhat.com>
afb210
- define HAVE_LIBTTF to actually enable ttf support (oops, #18299)
afb210
- remove explicit dependencies on libpng, libjpeg, et. al.
afb210
- add BuildPrereq: freetype-devel
afb210
afb210
* Wed Aug  2 2000 Matt Wilson <msw@redhat.com>
afb210
- rebuilt against new libpng
afb210
afb210
* Mon Jul 31 2000 Nalin Dahyabhai <nalin@redhat.com>
afb210
- add %%postun run of ldconfig (#14915)
afb210
afb210
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
afb210
- automatic rebuild
afb210
afb210
* Tue Jun 27 2000 Nalin Dahyabhai <nalin@redhat.com> 
afb210
- update to 1.8.3
afb210
afb210
* Sat Jun  4 2000 Nalin Dahyabhai <nalin@redhat.com> 
afb210
- rebuild in new environment
afb210
afb210
* Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com> 
afb210
- break out a -progs subpackage
afb210
- disable freetype support
afb210
afb210
* Fri May 19 2000 Nalin Dahyabhai <nalin@redhat.com> 
afb210
- update to latest version (1.8.2)
afb210
- disable xpm support
afb210
afb210
* Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com> 
afb210
- auto rebuild in the new build environment (release 6)
afb210
afb210
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
afb210
- auto rebuild in the new build environment (release 5)
afb210
afb210
* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
afb210
- buiuld for glibc 2.1
afb210
afb210
* Fri Sep 11 1998 Cristian Gafton <gafton@redhat.com>
afb210
- built for 5.2