1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
2 | Summary: A graphics library for drawing .png files. |
---|
3 | Summary(ja): PNGイメージファイルを描写するためのグラフィックライブラリ |
---|
4 | Name: gd |
---|
5 | Version: 2.0.35 |
---|
6 | Release: 9%{_dist_release} |
---|
7 | Source0: http://www.libgd.org/releases/gd-%{version}.tar.bz2 |
---|
8 | Patch0: gd-2.0.33-freetype.patch |
---|
9 | Patch3: gd-2.0.34-multilib.patch |
---|
10 | Patch4: gd-loop.patch |
---|
11 | Patch5: gd-2.0.34-sparc64.patch |
---|
12 | Patch6: gd-2.0.35-overflow.patch |
---|
13 | Patch7: gd-2.0.35-AALineThick.patch |
---|
14 | Patch8: gd-2.0.33-BoxBound.patch |
---|
15 | Patch9: gd-2.0.34-fonts-vine.patch |
---|
16 | Patch10: gd-2.0.35-time.patch |
---|
17 | Patch11: gd-2.0.35-security3.patch |
---|
18 | Patch12: gd-2.0.35-runtests.patch |
---|
19 | |
---|
20 | Patch101: 0001_fix_leak_in_gdImageCopyResized.patch |
---|
21 | Patch103: 0003_fix_support_large_images.patch |
---|
22 | Patch104: 0004_fix_fprint_string_formatting.patch |
---|
23 | Patch105: 0005_CVE-2014-2497.patch |
---|
24 | Patch106: 0006_CVE-2014-9709.patch |
---|
25 | Patch107: 0007_gd2-handle-corrupt-images-better-CVE-2016-3074.patch |
---|
26 | Patch108: 0008_CVE-2015-8874.patch |
---|
27 | Patch109: 0009_CVE-2016-5766.patch |
---|
28 | Patch110: 0010_CVE-2016-6161.patch |
---|
29 | Patch119: 0019-Patch-for-security-bug-https-bugs.php.net-bug.php-id.patch |
---|
30 | Patch120: 0020-Fix-invalid-read-in-gdImageCreateFromTiffPtr.patch |
---|
31 | Patch121: 0021_CVE-2016-9933.patch |
---|
32 | Patch122: 0022_CVE-2016-9317.patch |
---|
33 | Patch123: 0023_CVE-2016-10168.patch |
---|
34 | Patch124: 0024_CVE-2016-10167.patch |
---|
35 | Patch130: 0030-Close-339-Fix-unitialized-memory-read-vulnerability-.patch |
---|
36 | Patch131: 0031-Fix-381-libgd-double-free-vulnerability.patch |
---|
37 | |
---|
38 | License: BSD-style |
---|
39 | URL: http://www.libgd.org/ |
---|
40 | Group: System Environment/Libraries |
---|
41 | |
---|
42 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
43 | BuildRequires: libjpeg-devel zlib-devel freetype2-devel |
---|
44 | BuildRequires: libpng-devel >= 2:1.2.5 |
---|
45 | BuildRequires: libX11-devel libXpm-devel |
---|
46 | BuildConflicts: automake19 |
---|
47 | |
---|
48 | Vendor: Project Vine |
---|
49 | Distribution: Vine Linux |
---|
50 | Packager: daisuke |
---|
51 | |
---|
52 | %description |
---|
53 | Gd is a graphics library for drawing .png files. Gd allows your code to |
---|
54 | quickly draw images (lines, arcs, text, multiple colors, cutting and |
---|
55 | pasting from other images, flood fills) and write out the result as a |
---|
56 | .png file. Gd is particularly useful in web applications, where .pngs |
---|
57 | are commonly used as inline images. Note, however, that gd is not a |
---|
58 | paint program. |
---|
59 | |
---|
60 | Install gd if you are developing applications which need to draw .png |
---|
61 | files. If you install gd, you'll also need to install the gd-devel |
---|
62 | package. |
---|
63 | |
---|
64 | %description -l ja |
---|
65 | GdはPNGファイルを描写するためのグラフックライブラリです。 Gdを使って、 |
---|
66 | 画像(線や弧, テキスト, カラー, 他の画像からのカット&ペースト等々)を |
---|
67 | 簡単に描写して、PNGファイルへ結果を出力することができます。 |
---|
68 | Gdは特に、一般にPNG画像を埋め込む必要のあるウェブアプリケーションで |
---|
69 | 便利です。ただし、注意して欲しいのは, Gdはペイントツールではありませ |
---|
70 | ん。 |
---|
71 | |
---|
72 | PNGファイルを描写する必要のあるアプリケーションを開発する場合、 |
---|
73 | Gdをインストールしてください。gdをインストールした場合、gd-devel |
---|
74 | パッケージも必要になります。 |
---|
75 | |
---|
76 | %package progs |
---|
77 | Summary: Utility programs that use libgd. |
---|
78 | Summary(ja): libgd を用いたユーティリティプログラム |
---|
79 | Group: Applications/Graphics |
---|
80 | Requires: gd = %{version}, perl |
---|
81 | |
---|
82 | %description progs |
---|
83 | These are utility programs supplied with gd, the .png graphics library. |
---|
84 | If you install these, you must install gd. |
---|
85 | |
---|
86 | %description progs -l ja |
---|
87 | これは PNG グラフィックライブラリ gd によって提供されるユーティリティ |
---|
88 | プログラムです。これをインストールするには, gdをインストールする必要 |
---|
89 | があります。 |
---|
90 | |
---|
91 | %package devel |
---|
92 | Requires: gd = %{version} |
---|
93 | Summary: The development libraries and header files for gd. |
---|
94 | Summary(ja): gd用の開発ライブラリとヘッダファイル |
---|
95 | Group: Development/Libraries |
---|
96 | |
---|
97 | %description devel |
---|
98 | These are the development libraries and header files for gd, the .png |
---|
99 | graphics library. |
---|
100 | |
---|
101 | If you're installing the gd graphics library, you must install gd-devel. |
---|
102 | |
---|
103 | %description devel -l ja |
---|
104 | これらは開発ライブラリです。 |
---|
105 | PNGグラフィックライブラリ gd 用の開発ライブラリおよびヘッダファイル |
---|
106 | です。 |
---|
107 | |
---|
108 | gdをインストールした場合、gd-develパッケージも必要になります。 |
---|
109 | |
---|
110 | |
---|
111 | ## to build compat32 for x86_64 architecture support |
---|
112 | %package -n compat32-%{name} |
---|
113 | Summary: A graphics library for drawing .png files. |
---|
114 | Group: System Environment/Libraries |
---|
115 | %description -n compat32-%{name} |
---|
116 | Gd is a graphics library for drawing .png files. Gd allows your code to |
---|
117 | quickly draw images (lines, arcs, text, multiple colors, cutting and |
---|
118 | pasting from other images, flood fills) and write out the result as a |
---|
119 | .png file. Gd is particularly useful in web applications, where .pngs |
---|
120 | are commonly used as inline images. Note, however, that gd is not a |
---|
121 | paint program. |
---|
122 | |
---|
123 | Install gd if you are developing applications which need to draw .png |
---|
124 | files. If you install gd, you'll also need to install the gd-devel |
---|
125 | package. |
---|
126 | |
---|
127 | %package -n compat32-%{name}-devel |
---|
128 | Summary: The development libraries and header files for gd. |
---|
129 | Group: Development/Libraries |
---|
130 | %description -n compat32-%{name}-devel |
---|
131 | These are the development libraries and header files for gd, the .png |
---|
132 | graphics library. |
---|
133 | |
---|
134 | If you're installing the gd graphics library, you must install gd-devel. |
---|
135 | |
---|
136 | |
---|
137 | %prep |
---|
138 | %setup -q |
---|
139 | %patch0 -p1 -b .freetype |
---|
140 | %patch3 -p1 -b .mlib |
---|
141 | %patch4 -p1 -b .loop |
---|
142 | %patch6 -p1 -b .overflow |
---|
143 | %patch5 -p1 -b .sparc64 |
---|
144 | %patch7 -p1 -b .AALineThick |
---|
145 | %patch8 -p1 -b .bb |
---|
146 | %patch9 -p1 -b .fonts-vine |
---|
147 | %patch10 -p1 -b .time |
---|
148 | %patch11 -p1 -b .sec3 |
---|
149 | %patch12 -p1 -b .runtests |
---|
150 | |
---|
151 | %patch101 -p1 -b .fix_leak_in_gdImageCopyResized |
---|
152 | %patch103 -p1 -b .fix_support_large_images |
---|
153 | %patch104 -p1 -b .fix_fprint_string_formatting |
---|
154 | %patch105 -p1 -b .CVE-2014-2497 |
---|
155 | %patch106 -p1 -b .CVE-2014-9709 |
---|
156 | %patch107 -p1 -b .CVE-2016-3074 |
---|
157 | %patch108 -p1 -b .CVE-2015-8874 |
---|
158 | %patch109 -p1 -b .CVE-2016-5766 |
---|
159 | %patch110 -p1 -b .CVE-2016-6161 |
---|
160 | %patch119 -p1 -b .Patch-for-security-bug-https-bugs.php.net-bug.php-id |
---|
161 | %patch120 -p1 -b .Fix-invalid-read-in-gdImageCreateFromTiffPtr |
---|
162 | %patch121 -p1 -b .CVE-2016-9933 |
---|
163 | %patch122 -p1 -b .CVE-2016-9317 |
---|
164 | %patch123 -p1 -b .CVE-2016-10168 |
---|
165 | %patch124 -p1 -b .CVE-2016-10167 |
---|
166 | %patch130 -p1 -b .Close-339-Fix-unitialized-memory-read-vulnerability |
---|
167 | %patch131 -p1 -b .Fix-381-libgd-double-free-vulnerability |
---|
168 | |
---|
169 | %build |
---|
170 | |
---|
171 | #fix version mistake |
---|
172 | cp -a configure configure.tmp |
---|
173 | cat configure.tmp|sed s/2.0.34/2.0.35/ > configure |
---|
174 | |
---|
175 | %configure CPPFLAGS="-DHAVE_ICONV -DHAVE_STDARG_H -DHAVE_ERRNO_H" |
---|
176 | make %{?_smp_mflags} |
---|
177 | |
---|
178 | %install |
---|
179 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT |
---|
180 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
181 | ## remove unuse files |
---|
182 | rm -rf $RPM_BUILD_ROOT%{_libdir}/*.{a,la} |
---|
183 | |
---|
184 | %clean |
---|
185 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT |
---|
186 | |
---|
187 | %post -p /sbin/ldconfig |
---|
188 | %postun -p /sbin/ldconfig |
---|
189 | |
---|
190 | %if %{build_compat32} |
---|
191 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
192 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
193 | %endif |
---|
194 | |
---|
195 | %files |
---|
196 | %defattr(-,root,root) |
---|
197 | %doc COPYING README* |
---|
198 | %{_libdir}/*.so.* |
---|
199 | |
---|
200 | %files progs |
---|
201 | %defattr(-,root,root) |
---|
202 | %{_bindir}/* |
---|
203 | %exclude %{_bindir}/gdlib-config |
---|
204 | |
---|
205 | %files devel |
---|
206 | %defattr(-,root,root) |
---|
207 | %{_bindir}/gdlib-config |
---|
208 | %{_includedir}/* |
---|
209 | %{_libdir}/*.so |
---|
210 | %{_libdir}/pkgconfig/*.pc |
---|
211 | |
---|
212 | %if %{build_compat32} |
---|
213 | %files -n compat32-%{name} |
---|
214 | %defattr(-,root,root) |
---|
215 | %{_libdir}/*.so.* |
---|
216 | %files -n compat32-%{name}-devel |
---|
217 | %defattr(-,root,root) |
---|
218 | %{_libdir}/*.so |
---|
219 | %endif |
---|
220 | |
---|
221 | %changelog |
---|
222 | * Thu Nov 16 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-9 |
---|
223 | - add patch101-131 to fix security issues (from debian wheezy) |
---|
224 | - add pc files into -devel package |
---|
225 | - add verion fix |
---|
226 | - add BuildConflicts: automake19 (adhoc) |
---|
227 | |
---|
228 | * Tue Feb 19 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.35-8 |
---|
229 | - import patches from fedora package |
---|
230 | - modified font path patch for Vine Linux |
---|
231 | - drop static library |
---|
232 | - remove "-DJISX0208" |
---|
233 | - add "-DHAVE_ICONV -DHAVE_STDARG_H -DHAVE_ERRNO_H" |
---|
234 | |
---|
235 | * Fri Mar 09 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.0.35-7 |
---|
236 | - move gdlib-config from gd-progs subpackage to gd-devel subpackage |
---|
237 | |
---|
238 | * Thu Apr 14 2011 IWAI, Masaharu <iwai@alib.jp> 2.0.35-6 |
---|
239 | - build on current VineSeed |
---|
240 | |
---|
241 | * Tue Nov 3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-5 |
---|
242 | - fix build_compat32 if-endif sections |
---|
243 | |
---|
244 | * Sat Oct 31 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-4 |
---|
245 | - add patch2 for fix CVE-2009-3546 (_gdGetColors()) |
---|
246 | |
---|
247 | * Wed Apr 8 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.35-3 |
---|
248 | - updated URL |
---|
249 | - changed progs Group to Applications/Graphics |
---|
250 | - added %%postun section |
---|
251 | |
---|
252 | * Fri Sep 26 2008 Shu KONNO <owa@bg.wakwak.com> 2.0.35-2 |
---|
253 | - removed *.la |
---|
254 | - spec in utf-8 |
---|
255 | |
---|
256 | * Sat Apr 05 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-1 |
---|
257 | - add patch1 from centos5 |
---|
258 | - new versioning policy |
---|
259 | |
---|
260 | * Wed Feb 14 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.35-0vl1 |
---|
261 | - new upstream release with security fix (CVE-2007-2756) |
---|
262 | |
---|
263 | * Wed Feb 14 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.34-0vl1 |
---|
264 | - new upstream release with security fix |
---|
265 | - change source tarball format gz -> bz2 |
---|
266 | |
---|
267 | * Fri Mar 17 2006 Shu KONNO <owa@bg.wakwak.com> 2.0.33-0vl2 |
---|
268 | - added compat32-* packages for x86_64 architecture support |
---|
269 | |
---|
270 | * Sat Nov 6 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.33-0vl1 |
---|
271 | - source upgrade |
---|
272 | |
---|
273 | * Wed Jul 14 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.0.27-0vl1 |
---|
274 | - source update |
---|
275 | - added -DJISX0208 flag |
---|
276 | |
---|
277 | * Thu Jun 17 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.26-0vl1 |
---|
278 | - source upgrade |
---|
279 | - BuildPrereq: XOrg-devel instead of XFree86-devel |
---|
280 | |
---|
281 | * Wed Mar 31 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.22-0vl1 |
---|
282 | - source upgrade |
---|
283 | - remove patch0 (no need for freetype2-2.1.7) |
---|
284 | |
---|
285 | * Wed Nov 19 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.15-0vl2 |
---|
286 | - add patch0 to build against freetype2-2.1.7 |
---|
287 | |
---|
288 | * Sat Jun 7 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.15-0vl1 |
---|
289 | - source upgrade |
---|
290 | - add URL |
---|
291 | - remove all patches |
---|
292 | - use %%configure script |
---|
293 | - add BuildPrereq: freetype2-devel XFree86-devel |
---|
294 | - remove BuildPrereq: VFlib-devel |
---|
295 | - update %%files |
---|
296 | - update Requires: |
---|
297 | - use License tag instead of Copyright |
---|
298 | |
---|
299 | * Fri Apr 18 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.8.3-0vl4 |
---|
300 | - rebuild with libpng-devel-1.2.5-0vl1 |
---|
301 | |
---|
302 | * Sun Apr 13 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.3-0vl3 |
---|
303 | - rebuild with new toolchain |
---|
304 | |
---|
305 | * Sat Sep 02 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
---|
306 | - 1.8.3-0vl2 |
---|
307 | - symlink to libgd.so.1 (for backward compatibility) |
---|
308 | |
---|
309 | * Mon Jun 6 2000 Yasuyuki Furukawa <furukawa@vinelinux.org> |
---|
310 | - first gd 1.8.x release for Vine from rawhide. |
---|
311 | - enable freetype support and defined JISX208 macro. |
---|
312 | |
---|
313 | * Mon May 22 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
314 | - break out a -progs subpackage |
---|
315 | - disable freetype support |
---|
316 | |
---|
317 | * Fri May 19 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
318 | - update to latest version (1.8.2) |
---|
319 | - disable xpm support |
---|
320 | |
---|
321 | * Thu Feb 03 2000 Nalin Dahyabhai <nalin@redhat.com> |
---|
322 | - auto rebuild in the new build environment (release 6) |
---|
323 | |
---|
324 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
325 | - auto rebuild in the new build environment (release 5) |
---|
326 | |
---|
327 | * Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com> |
---|
328 | - buiuld for glibc 2.1 |
---|
329 | |
---|
330 | * Fri Sep 11 1998 Cristian Gafton <gafton@redhat.com> |
---|
331 | - built for 5.2 |
---|