From 963d12f9a31e56cad5d6c68f4d526925887cb28e Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 15 Jul 2020 09:50:52 +0200 Subject: fix gdImageStringFT() fails for empty strings https://github.com/libgd/libgd/issues/615 --- gd.spec | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'gd.spec') diff --git a/gd.spec b/gd.spec index 9ab9c57..fc66ff4 100644 --- a/gd.spec +++ b/gd.spec @@ -37,7 +37,7 @@ Name: gd Name: gd-last %endif Version: 2.3.0 -Release: 1%{?prever}%{?short}%{?dist} +Release: 2%{?prever}%{?short}%{?dist} License: MIT URL: http://libgd.github.io/ %if 0%{?commit:1} @@ -50,6 +50,8 @@ Source0: https://github.com/libgd/libgd/releases/download/gd-%{version}/li # Missing, temporary workaround, fixed upstream for next version Source1: https://raw.githubusercontent.com/libgd/libgd/gd-%{version}/config/getlib.sh +Patch0: gd-bug615.patch + BuildRequires: freetype-devel BuildRequires: fontconfig-devel BuildRequires: gettext-devel @@ -76,6 +78,7 @@ BuildRequires: pkgconfig BuildRequires: libtool BuildRequires: perl BuildRequires: perl-generators +BuildRequires: perl(FindBin) # for fontconfig/basic test BuildRequires: liberation-sans-fonts %if 0%{?fedora} >= 29 @@ -147,6 +150,7 @@ files for gd, a graphics library for creating PNG and JPEG graphics. %prep %setup -q -n libgd-%{version}%{?prever:-%{prever}} +%patch0 -p1 install -m 0755 %{SOURCE1} config/ : $(perl config/getver.pl) @@ -218,7 +222,7 @@ XFAIL_TESTS="freetype/bug00132 $XFAIL_TESTS" export XFAIL_TESTS : Upstream test suite -make check +make check %{?_smp_mflags} : Check content of pkgconfig grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc @@ -245,6 +249,10 @@ grep %{version} $RPM_BUILD_ROOT%{_libdir}/pkgconfig/gdlib.pc %changelog +* Wed Jul 15 2020 Remi Collet - 2.3.0-2 +- fix gdImageStringFT() fails for empty strings + https://github.com/libgd/libgd/issues/615 + * Tue Mar 24 2020 Remi Collet - 2.3.0-1 - update to 2.3.0 - add dependency on libraqm -- cgit