Blame SPECS/gd.spec

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