%define major 2 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d %define staticdevelname %mklibname %{name} -d -s Summary: A library used to create PNG, JPEG, or WBMP images Name: gd Version: 2.0.35 Release: %mkrel 20 License: BSD-like Group: System/Libraries URL: http://www.libgd.org/ Source0: http://www.libgd.org/releases/%{name}-%{version}.tar.bz2 Patch0: gd-2.0.35-format_not_a_string_literal_and_no_format_arguments.diff Patch1: 0001_cvs20070904.patch Patch2: 0002_cvs20070916.patch Patch3: gd-2.0.35-CVE-2009-3546.diff Patch4: gd-2.0.35-automake-1.13.patch #It uses freetype2-devel, but uses the old library for gdttf BuildRequires: freetype2-devel BuildRequires: freetype-devel BuildRequires: gettext-devel BuildRequires: jpeg-devel BuildRequires: png-devel #BuildRequires: libx11-devel BuildRequires: libfontconfig-devel BuildRequires: xpm-devel BuildRequires: zlib-devel %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. This is particularly useful in World Wide Webapplications, where PNG and JPEG are two of the formats accepted for in-line images by most browsers. gd is not a paint program. If you are looking for a paint program, you are looking in the wrong place. If you are not a programmer, you are looking in the wrong place. gd does not provide for every possible desirable graphics operation. It is not necessary or desirable for gd to become a kitchen-sink graphics package, but version 1.7.3 incorporates most of the commonly requested features for an 8-bit 2D package. %package -n %{libname} Summary: A library used to create PNG, JPEG, or WBMP images Group: System/Libraries Provides: %{name} = %{version}-%{release} Provides: %{libname} = %{version}-%{release} Obsoletes: %name %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. This is particularly useful in World Wide Webapplications, where PNG and JPEG are two of the formats accepted for in-line images by most browsers. gd is not a paint program. If you are looking for a paint program, you are looking in the wrong place. If you are not a programmer, you are looking in the wrong place. gd does not provide for every possible desirable graphics operation. It is not necessary or desirable for gd to become a kitchen-sink graphics package, but version 1.7.3 incorporates most of the commonly requested features for an 8-bit 2D package. This package contains the library needed to run programs dynamically linked with libgd. %package -n %{develname} Summary: The development libraries and header files for gd Group: Development/C Requires: %{libname} = %{version} Provides: lib%{name}-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} Obsoletes: %{name}-devel Provides: %{mklibname %{name} 2 -d} = %{version}-%{release} Obsoletes: %{mklibname %{name} 2 -d} %description -n %{develname} 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. This is particularly useful in World Wide Webapplications, where PNG and JPEG are two of the formats accepted for in-line images by most browsers. gd is not a paint program. If you are looking for a paint program, you are looking in the wrong place. If you are not a programmer, you are looking in the wrong place. gd does not provide for every possible desirable graphics operation. It is not necessary or desirable for gd to become a kitchen-sink graphics package, but version 1.7.3 incorporates most of the commonly requested features for an 8-bit 2D package. These are the development libraries and header files for gd, the .png and .jpeg graphics library. If you're installing the gd graphics library, you'll probably want to install gd-devel. %package -n %{staticdevelname} Summary: Static GD library Group: Development/C Requires: %{develname} = %{version} Provides: lib%{name}-static-devel = %{version}-%{release} Provides: %{name}-static-devel = %{version}-%{release} Provides: %{mklibname %{name} 2 -d -s} = %{version}-%{release} Obsoletes: %{mklibname %{name} 2 -d -s} %description -n %{staticdevelname} 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. This is particularly useful in World Wide Webapplications, where PNG and JPEG are two of the formats accepted for in-line images by most browsers. gd is not a paint program. If you are looking for a paint program, you are looking in the wrong place. If you are not a programmer, you are looking in the wrong place. gd does not provide for every possible desirable graphics operation. It is not necessary or desirable for gd to become a kitchen-sink graphics package, but version 1.7.3 incorporates most of the commonly requested features for an 8-bit 2D package. This package contains static gd library. %package utils Requires: %{libname} = %{version} Summary: The Utils files for gd Group: System/Libraries %description utils 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. This is particularly useful in World Wide Webapplications, where PNG and JPEG are two of the formats accepted for in-line images by most browsers. gd is not a paint program. If you are looking for a paint program, you are looking in the wrong place. If you are not a programmer, you are looking in the wrong place. gd does not provide for every possible desirable graphics operation. It is not necessary or desirable for gd to become a kitchen-sink graphics package, but version 1.7.3 incorporates most of the commonly requested features for an 8-bit 2D package. This package contains various utilities utilizing the gd library. %prep %setup -q -n gd-%{version} %patch0 -p0 -b .format_not_a_string_literal_and_no_format_arguments %patch1 -p1 -b .cvs20070904 %patch2 -p1 -b .cvs20070916 %patch3 -p0 -b .CVE-2009-3546 %patch4 -p1 -b .automake-1_13 %build autoreconf -fi %configure2_5x %make %install rm -rf %{buildroot} %makeinstall sed -i -e 's!-Wl,--as-needed!!' -e 's!-Wl,--no-undefined!!' %{buildroot}%{_bindir}/gdlib-config %multiarch_binaries %{buildroot}%{_bindir}/gdlib-config %multiarch_includes %{buildroot}%{_includedir}/gd.h install -m0644 gdhelpers.h %{buildroot}%{_includedir}/ rm -f %buildroot%{_libdir}/*.la # Fix upstream perm bug #3053 chmod 644 README.TXT %files -n %{libname} %doc README.TXT %{_libdir}/*.so.%{major} %{_libdir}/*.so.%{major}.* %files -n %{develname} %attr(644,root,root) %doc index.html %{_bindir}/gdlib-config %multiarch %{multiarch_bindir}/gdlib-config %{_libdir}/*.so %{_includedir}/*.h %multiarch %{multiarch_includedir}/*.h %files -n %{staticdevelname} %{_libdir}/lib*.a %files utils %{_bindir}/annotate %{_bindir}/bdftogd %{_bindir}/gd2copypal %{_bindir}/gd2topng %{_bindir}/gdparttopng %{_bindir}/gdtopng %{_bindir}/pngtogd %{_bindir}/pngtogd2 %{_bindir}/webpng %{_bindir}/gd2togif %{_bindir}/gdcmpgif %{_bindir}/giftogd2 %changelog * Fri Jan 11 2013 umeabot <umeabot> 2.0.35-20.mga3 + Revision: 351121 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Jan 04 2013 cjw <cjw> 2.0.35-19.mga3 + Revision: 338554 - patch4: fix build with automake 1.13 * Tue Dec 06 2011 barjac <barjac> 2.0.35-18.mga2 + Revision: 177130 - Fix perm on README.txt and some cleaning * Sat Sep 10 2011 fwang <fwang> 2.0.35-17.mga2 + Revision: 142084 - rebuild for new libpng * Sat Jan 08 2011 blino <blino> 2.0.35-16.mga1 + Revision: 1042 - remove old ldconfig scriptlets - imported package gd