%define libname libgd2 Name: gd Version: 2.2.4 Release: 1mamba Summary: A library used to create PNG, JPEG, or WBMP images Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://libgd.github.io/ Source: https://github.com/libgd/libgd.git/gd-%{version}/libgd-%{version}.tar.bz2 #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 Patch3: gd-2.0.35-libpng-1.6.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: %{libname} = %{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 -n gd2-utils Summary: The utils files for %{name} Group: Applications/Multimedia Requires: %{libname} = %{version}-%{release} %description -n gd2-utils The gd-utils package includes utility programs supplied with gd, a graphics library for creating PNG and JPEG images. %prep %setup -q -n libgd-%{version} #%patch0 -p1 -b .CVE-2007-0455 #%patch1 -p1 -b .gif_loop #%patch2 -p1 -b .default_fontpath #%patch3 -p1 %build autoreconf -i %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 %files -n %{libname}-devel %defattr(-,root,root) %{_bindir}/gdlib-config %{_includedir}/* %{_libdir}/*.a %{_libdir}/*.la %{_libdir}/*.so %{_libdir}/pkgconfig/gdlib.pc #% doc README-JPEG.TXT README.TXT %files -n gd2-utils %defattr(-,root,root) %{_bindir}/* %exclude %{_bindir}/gdlib-config #%doc index.html %changelog * Sat Dec 02 2017 Silvan Calarco 2.2.4-1mamba - update to 2.2.4 * Wed Feb 12 2014 Silvan Calarco 2.0.35-9mamba - rename gd-utils to gd2-utils * Sun Feb 09 2014 Silvan Calarco 2.0.35-8mamba - libgd2-devel: require libgd2 not libgd * Tue Jan 28 2014 Silvan Calarco 2.0.35-7mamba - renamed as legacy package from libgd-* to libgd2-* * Fri Aug 30 2013 Silvan Calarco 2.0.35-6mamba - rebuilt with libpng 1.6 really (added patch) * Tue Aug 27 2013 Silvan Calarco 2.0.35-5mamba - libpng 1.6 mass rebuild * Fri Jul 02 2010 Silvan Calarco 2.0.35-4mamba - rebuilt with libpng 1.4 and libjpeg 8 * Thu Jun 03 2010 Silvan Calarco 2.0.35-3mamba - rebuilt with current libjpeg * Sat Oct 25 2008 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 2.0.35-1mamba - update to 2.0.35 * Mon Mar 19 2007 Silvan Calarco 2.0.34-1qilnx - update to version 2.0.34 by autospec * Thu Jun 29 2006 Davide Madrisan 2.0.33-3qilnx - security update: CAN-2006-2906 (qibug:186) * Wed Apr 13 2005 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 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 2.0.28-1qilnx - new version build * Tue Jul 01 2004 Silvan Calarco 2.0.26-2qilnx - added *.so inclusion in devel package * Tue Jun 29 2004 Silvan Calarco 2.0.26-1qilnx - new version build * Tue Dec 30 2003 Silvan Calarco 2.0.17-1qilnx - new version rebuild * Fri Jun 06 2003 Silvan Calarco 2.0.15-1qilnx - creation of libgd package