source: projects/specs/branches/6/g/gd/gd-vl.spec @ 11235

Revision 11235, 11.1 KB checked in by iwamoto, 6 years ago (diff)

gd: 2.0.35-9vl6

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2Summary: A graphics library for drawing .png files.
3Summary(ja): PNGイメージファイルを描写するためのグラフィックライブラリ
4Name: gd
5Version: 2.0.35
6Release: 9%{_dist_release}
7Source0: http://www.libgd.org/releases/gd-%{version}.tar.bz2
8Patch0:        gd-2.0.33-freetype.patch
9Patch3:        gd-2.0.34-multilib.patch
10Patch4:        gd-loop.patch
11Patch5:        gd-2.0.34-sparc64.patch
12Patch6:        gd-2.0.35-overflow.patch
13Patch7:        gd-2.0.35-AALineThick.patch
14Patch8:        gd-2.0.33-BoxBound.patch
15Patch9:        gd-2.0.34-fonts-vine.patch
16Patch10:       gd-2.0.35-time.patch
17Patch11:       gd-2.0.35-security3.patch
18Patch12:       gd-2.0.35-runtests.patch
19
20Patch101:      0001_fix_leak_in_gdImageCopyResized.patch
21Patch103:      0003_fix_support_large_images.patch
22Patch104:      0004_fix_fprint_string_formatting.patch
23Patch105:      0005_CVE-2014-2497.patch
24Patch106:      0006_CVE-2014-9709.patch
25Patch107:      0007_gd2-handle-corrupt-images-better-CVE-2016-3074.patch
26Patch108:      0008_CVE-2015-8874.patch
27Patch109:      0009_CVE-2016-5766.patch
28Patch110:      0010_CVE-2016-6161.patch
29Patch119:      0019-Patch-for-security-bug-https-bugs.php.net-bug.php-id.patch
30Patch120:      0020-Fix-invalid-read-in-gdImageCreateFromTiffPtr.patch
31Patch121:      0021_CVE-2016-9933.patch
32Patch122:      0022_CVE-2016-9317.patch
33Patch123:      0023_CVE-2016-10168.patch
34Patch124:      0024_CVE-2016-10167.patch
35Patch130:      0030-Close-339-Fix-unitialized-memory-read-vulnerability-.patch
36Patch131:      0031-Fix-381-libgd-double-free-vulnerability.patch
37
38License: BSD-style
39URL: http://www.libgd.org/
40Group: System Environment/Libraries
41
42BuildRoot: %{_tmppath}/%{name}-%{version}-root
43BuildRequires: libjpeg-devel zlib-devel freetype2-devel
44BuildRequires: libpng-devel >= 2:1.2.5
45BuildRequires: libX11-devel libXpm-devel
46BuildConflicts: automake19
47
48Vendor: Project Vine
49Distribution: Vine Linux
50Packager: daisuke
51
52%description
53Gd is a graphics library for drawing .png files.  Gd allows your code to
54quickly draw images (lines, arcs, text, multiple colors, cutting and
55pasting from other images, flood fills) and write out the result as a
56.png file. Gd is particularly useful in web applications, where .pngs
57are commonly used as inline images.  Note, however, that gd is not a
58paint program.
59
60Install gd if you are developing applications which need to draw .png
61files.  If you install gd, you'll also need to install the gd-devel
62package.
63
64%description -l ja
65GdはPNGファイルを描写するためのグラフックライブラリです。 Gdを使って、
66画像(線や弧, テキスト, カラー, 他の画像からのカット&ペースト等々)を
67簡単に描写して、PNGファイルへ結果を出力することができます。
68Gdは特に、一般にPNG画像を埋め込む必要のあるウェブアプリケーションで
69便利です。ただし、注意して欲しいのは, Gdはペイントツールではありませ
70ん。
71
72PNGファイルを描写する必要のあるアプリケーションを開発する場合、
73Gdをインストールしてください。gdをインストールした場合、gd-devel
74パッケージも必要になります。
75
76%package progs
77Summary: Utility programs that use libgd.
78Summary(ja): libgd を用いたユーティリティプログラム
79Group: Applications/Graphics
80Requires: gd = %{version}, perl
81
82%description progs
83These are utility programs supplied with gd, the .png graphics library.
84If you install these, you must install gd.
85
86%description progs -l ja
87これは PNG グラフィックライブラリ gd によって提供されるユーティリティ
88プログラムです。これをインストールするには, gdをインストールする必要
89があります。
90
91%package devel
92Requires: gd = %{version}
93Summary: The development libraries and header files for gd.
94Summary(ja): gd用の開発ライブラリとヘッダファイル
95Group: Development/Libraries
96
97%description devel
98These are the development libraries and header files for gd, the .png
99graphics library.
100
101If you're installing the gd graphics library, you must install gd-devel.
102
103%description devel -l ja
104これらは開発ライブラリです。
105PNGグラフィックライブラリ gd 用の開発ライブラリおよびヘッダファイル
106です。
107
108gdをインストールした場合、gd-develパッケージも必要になります。
109
110
111## to build compat32 for x86_64 architecture support
112%package -n compat32-%{name}
113Summary: A graphics library for drawing .png files.
114Group: System Environment/Libraries
115%description -n compat32-%{name}
116Gd is a graphics library for drawing .png files.  Gd allows your code to
117quickly draw images (lines, arcs, text, multiple colors, cutting and
118pasting from other images, flood fills) and write out the result as a
119.png file. Gd is particularly useful in web applications, where .pngs
120are commonly used as inline images.  Note, however, that gd is not a
121paint program.
122
123Install gd if you are developing applications which need to draw .png
124files.  If you install gd, you'll also need to install the gd-devel
125package.
126
127%package -n compat32-%{name}-devel
128Summary: The development libraries and header files for gd.
129Group: Development/Libraries
130%description -n compat32-%{name}-devel
131These are the development libraries and header files for gd, the .png
132graphics library.
133
134If 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
172cp -a configure configure.tmp
173cat configure.tmp|sed s/2.0.34/2.0.35/ > configure
174
175%configure CPPFLAGS="-DHAVE_ICONV -DHAVE_STDARG_H -DHAVE_ERRNO_H"
176make %{?_smp_mflags}
177
178%install
179[ "$RPM_BUILD_ROOT" != "/" ] && rm -fr $RPM_BUILD_ROOT
180make DESTDIR=$RPM_BUILD_ROOT install
181## remove unuse files
182rm -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
Note: See TracBrowser for help on using the repository browser.