source: projects/specs/branches/6/f/freetype2/freetype2-vl.spec @ 4613

Revision 4613, 14.8 KB checked in by iwamoto, 13 years ago (diff)

freetype2: security fix CVE-2011-0226

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3%bcond_with subpixel_rendering
4
5Summary: FreeType 2 library
6Summary(ja): FreeType 2 ライブラリ
7Name: freetype2
8Version: 2.4.4
9Release: 2%{?_dist_release}
10License: GPL/FTL dual license
11URL: http://www.freetype.org/
12Group: System Environment/Libraries
13
14Source: freetype-%{version}.tar.bz2
15Source1: freetype-doc-%{version}.tar.bz2
16Source2: ft2demos-%{version}.tar.bz2
17
18# enable subpixel rendering
19Patch21: freetype-2.3.0-enable-spr.patch
20# Enable otvalid and gxvalid modules
21Patch46:  freetype-2.2.1-enable-valid.patch
22# Fix multilib conflicts
23Patch88:  freetype-multilib.patch
24# Fix crash https://bugs.freedesktop.org/show_bug.cgi?id=6841
25Patch89:  freetype-2.2.1-memcpy-fix.patch
26
27Patch200: freetype-2.1.10-slight-embolden.patch
28Patch201: freetype-2.4.4-x86_64-invalid_outline.patch
29
30# security fixes
31Patch300: freetype-2.4.4_CVE-2011-0226.patch
32
33BuildRoot: %{_tmppath}/%{name}-%{version}-root
34
35BuildRequires: zlib-devel
36BuildRequires: libX11-devel
37Requires: zlib
38
39Vendor: Project Vine
40Distribution: Vine Linux
41
42%description
43The FreeType project is a team of volunteers who develop free,
44portable and high-quality software solutions for digital typography.
45They specifically target embedded systems and focus on bringing small,
46efficient and ubiquitous products.
47
48The FreeType 2 library is their new software font engine. It has been
49designed to provide the following important features:
50 * A universal and simple API to manage font files
51 * Support for several font formats through loadable modules
52 * High-quality anti-aliasing
53 * High portability & performance
54
55Supported font formats include:
56 * TrueType files (.ttf) and collections (.ttc)
57 * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
58 * Type 1 Multiple Master fonts. The FreeType 2 API also provides
59   routines to manage design instances easily
60 * Type 1 CID-keyed fonts
61 * OpenType/CFF (.otf) fonts
62 * CFF/Type 2 fonts
63 * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
64   the Adobe SVG viewer plugin.
65 * Windows FNT/FON bitmap fonts
66
67This package contains the files needed to run programs that use the
68FreeType 2 library.
69
70
71%package demos
72Summary: A collection of FreeType demos
73Group: System Environment/Libraries
74Requires: %{name} = %{version}-%{release}
75Obsoletes: freetype-utils < 2.0
76Provides: freetype-utils = %{version}
77
78%description demos
79A collection of FreeType demos.
80
81
82%package -n compat32-%{name}
83Summary: FreeType 2 library
84Summary(ja): FreeType 2 ライブラリ
85Group: System Environment/Libraries
86Requires:       %{name} = %{version}-%{release}
87
88
89%description -n compat32-%{name}
90The FreeType project is a team of volunteers who develop free,
91portable and high-quality software solutions for digital typography.
92They specifically target embedded systems and focus on bringing small,
93efficient and ubiquitous products.
94
95The FreeType 2 library is their new software font engine. It has been
96designed to provide the following important features:
97 * A universal and simple API to manage font files
98 * Support for several font formats through loadable modules
99 * High-quality anti-aliasing
100 * High portability & performance
101
102Supported font formats include:
103 * TrueType files (.ttf) and collections (.ttc)
104 * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
105 * Type 1 Multiple Master fonts. The FreeType 2 API also provides
106   routines to manage design instances easily
107 * Type 1 CID-keyed fonts
108 * OpenType/CFF (.otf) fonts
109 * CFF/Type 2 fonts
110 * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
111   the Adobe SVG viewer plugin.
112 * Windows FNT/FON bitmap fonts
113
114This package contains the files needed to run programs that use the
115FreeType 2 library.
116
117
118%package devel
119Summary:        Development files for FreeType 2 library
120Summary(ja):    FreeType 2 ライブラリの開発ファイル
121Group:          Development/Libraries
122Requires:       %{name} = %{version}-%{release}
123Requires:       zlib-devel
124
125
126%description devel
127The FreeType project is a team of volunteers who develop free,
128portable and high-quality software solutions for digital typography.
129They specifically target embedded systems and focus on bringing small,
130efficient and ubiquitous products.
131
132The FreeType 2 library is their new software font engine. It has been
133designed to provide the following important features:
134 * A universal and simple API to manage font files
135 * Support for several font formats through loadable modules
136 * High-quality anti-aliasing
137 * High portability & performance
138
139Supported font formats include:
140 * TrueType files (.ttf) and collections (.ttc)
141 * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
142 * Type 1 Multiple Master fonts. The FreeType 2 API also provides
143   routines to manage design instances easily
144 * Type 1 CID-keyed fonts
145 * OpenType/CFF (.otf) fonts
146 * CFF/Type 2 fonts
147 * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
148   the Adobe SVG viewer plugin.
149 * Windows FNT/FON bitmap fonts
150
151This package contains all supplementary files (static library, headers
152and documentation) you need to develop your own programs using the
153FreeType 2 library.
154
155
156%package -n compat32-%{name}-devel
157Summary:        FreeType 2 library
158Summary(ja):    FreeType 2 ライブラリ
159Group:          Development/Libraries
160Requires:       compat32-%{name} = %{version}-%{release}
161Requires:       %{name}-devel    = %{version}-%{release}
162Requires:       compat32-zlib-devel
163
164%description -n compat32-%{name}-devel
165The FreeType project is a team of volunteers who develop free,
166portable and high-quality software solutions for digital typography.
167They specifically target embedded systems and focus on bringing small,
168efficient and ubiquitous products.
169
170The FreeType 2 library is their new software font engine. It has been
171designed to provide the following important features:
172 * A universal and simple API to manage font files
173 * Support for several font formats through loadable modules
174 * High-quality anti-aliasing
175 * High portability & performance
176
177Supported font formats include:
178 * TrueType files (.ttf) and collections (.ttc)
179 * Type 1 font files both in ASCII (.pfa) or binary (.pfb) format
180 * Type 1 Multiple Master fonts. The FreeType 2 API also provides
181   routines to manage design instances easily
182 * Type 1 CID-keyed fonts
183 * OpenType/CFF (.otf) fonts
184 * CFF/Type 2 fonts
185 * Adobe CEF fonts (.cef), used to embed fonts in SVG documents with
186   the Adobe SVG viewer plugin.
187 * Windows FNT/FON bitmap fonts
188
189This package contains all supplementary files (static library, headers
190and documentation) you need to develop your own programs using the
191FreeType 2 library.
192
193%package static
194Summary:        Static ilbrary for FreeType 2
195Summary(ja):    FreeType 2 のスタティックライブラリ
196Group:          Development/Libraries
197Requires:       %{name}-devel = %{version}-%{release}
198
199%description static
200This package contains the static library for %{name}
201
202%prep
203%setup -q -n freetype-%{version} -b 1 -a 2
204
205%if %{with subpixel_rendering}
206%patch21 -p1 -b .enable-spr
207%endif
208
209%patch46 -p1 -b .enable-valid
210%patch88 -p1 -b .multilib
211%patch89 -p1 -b .memcpy
212
213%patch200 -p1 -b .slight-embolden
214
215%ifarch x86_64
216%patch201 -p1 -b .invalid_outline
217%endif
218
219# security fixes
220%patch300 -p1 -b .CVE-2011-0226
221
222%build
223%configure
224%__make %{?_smp_mflags}
225
226# Build demos
227pushd ft2demos-%{version}
228make TOP_DIR=".."
229popd
230
231
232%install
233[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
234
235%makeinstall gnulocaledir=$RPM_BUILD_ROOT%{_datadir}/locale
236
237for ftdemo in ftbench ftdump ftlint ftvalid ftdiff ftgamma ftgrid ftmulti ftstring ftview
238do
239  builds/unix/libtool --mode=install install -m 755 ft2demos-%{version}/bin/$ftdemo $RPM_BUILD_ROOT/%{_bindir}
240done
241
242## remove unuse files
243rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
244
245
246%clean
247[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
248
249
250%post -p /sbin/ldconfig
251
252%postun -p /sbin/ldconfig
253
254%post -n compat32-%{name} -p /sbin/ldconfig
255
256%postun -n compat32-%{name} -p /sbin/ldconfig
257
258%files
259%defattr(-, root, root)
260%{_libdir}/*.so*
261%doc docs
262
263%files devel
264%defattr(-, root, root)
265%{_bindir}/freetype-config
266%{_libdir}/*.so
267%{_libdir}/pkgconfig/*.pc
268%{_includedir}/*
269%{_datadir}/aclocal/freetype2.m4
270
271%files static
272%defattr(-, root, root)
273%{_libdir}/*.a
274
275%files demos
276%defattr(-,root,root)
277%{_bindir}/ftbench
278%{_bindir}/ftdump
279%{_bindir}/ftlint
280%{_bindir}/ftvalid
281%{_bindir}/ftdiff
282%{_bindir}/ftgamma
283%{_bindir}/ftgrid
284%{_bindir}/ftmulti
285%{_bindir}/ftstring
286%{_bindir}/ftview
287
288%if %{build_compat32}
289%files -n compat32-%{name}
290%defattr(-, root, root)
291%{_libdir}/*.so*
292
293%files -n compat32-%{name}-devel
294%defattr(-, root, root)
295%{_libdir}/*.so
296%{_libdir}/pkgconfig/*.pc
297%endif
298
299%changelog
300* Tue Aug 16 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.4-2
301- add patch300 for fix CVE-2011-0226 (t1decode)
302- add Vendor/Distri Tags
303
304* Fri Dec 03 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.4-1
305- new upstream release
306
307* Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.4.2-2
308- build with rpm-4.8.1-1 for pkg-config file
309
310* Mon Aug 16 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1
311- new upstream release
312
313* Tue Jul 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1
314- new upstream release
315
316* Thu Jul 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1
317- new upstream release
318
319* Sun May 09 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.12-2
320- enable bytecode interpreter, the patent is now expired.
321
322* Tue Feb 16 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.12-1
323- new upstream release
324
325* Tue Oct 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.11-1
326- new upstream release
327- update patch201
328
329* Sun Aug 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-6
330- rebuild with gpg signing
331
332* Wed Jul 29 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.9-5
333- fixed "Invalid Outline" error on x86_64.
334
335* Sun May 03 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.3.9-4
336- removed %%if !%%{build_compat32} case condition
337- removed CC='gcc -m32' before make setup
338
339* Sun Apr 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-3
340- enable Patch200 again
341
342* Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-2
343- split static library to freetype2-static
344  - needed by tuxonice-userui
345- disable Patch200
346
347* Sat Mar 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-1
348- new upstream release
349
350* Wed Jan 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.8-1
351- new upstream release
352
353* Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 2.3.7-2
354- removed *.la
355
356* Wed Jul 02 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.7-1
357- new upstream release
358
359* Wed Jun 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.6-1
360- new upstream release
361
362* Sun May 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-3
363- add Provides: freetype-utils = %%{version} to freetype2-demos
364
365* Thu Apr 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-2
366- remove %%{_bindir}/* from -devel
367
368* Fri Mar 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-1
369- new upstream release
370- add freetype2-demos
371  - Obsoletes: freetype-utils
372
373* Wed May 23 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.3.4-0vl2
374- add Patch201 (CVE-2007-2754)
375
376* Sun May 20 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.4-0vl1
377- new upstream release
378
379* Thu Aug 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.1.10-0vl8
380- add Requires: zlib-devel (devel package)
381- compat32
382  - add BuildRequires: compat32-zlib-devel
383  - add Requires: compat32-zlib-devel (devel package)
384
385* Thu Jul 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl7
386- add Patch200 to adjust synthetic-embold font weight.
387  - default value is too heavy...
388
389* Sat Jun 17 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl6
390- add Patch100 for autofit-cjk
391
392* Fri Feb 24 2006 Shu KONNO <owa@bg.wakwak.com> 2.1.10-0vl5
393- added --libdir=%%{_libdir} to make setup
394- added CC='gcc -m32' before make setup if compat32
395
396* Sun Feb 12 2006 NAKAMURA Kenta <kenta@c.csce.kyushu-u.ac.jp> 2.1.10-0vl4
397- added compat32-* packages for x86_64 architecture support
398
399* Thu Oct 13 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl3
400- add upstream patches (from MDK)
401  - add Patch13 to fix memleak
402  - add Patch14 to put back internal API, used by XOrg
403  - add Patch15 to fix bad anti-aliasing
404
405* Sat Oct 01 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl2
406- add upstream patches (from MDK)
407  - add Patch10 to add fixes from CVS
408  - add Patch11 to fix autofit render setup
409  - add Patch12 to fix kerning
410- add Patch20 (enable bytecode interpreter), but not applied by default
411
412* Tue Sep  6 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.10-0vl1
413- new upstream release
414- drop Patch1 (auto-hinter has been replaced with a new module)
415- drop Patch2 (included in freetype-2.1.8)
416- add pkgconfig file
417
418* Fri Apr 16 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.7-0vl4
419- add xtt2-1.2a related patch which is merged in CVS.
420  (http://x-tt.sourceforge.jp/index_nippon.html)
421
422* Thu Apr 01 2004 Tomoya TAKA <taka@vinelinux.org> 2.1.7-0vl3
423- add a fix from Fedora freetype-2.1.7-3
424  * Wed Mar 10 2004 Mike A. Harris <mharris@redhat.com> 2.1.7-3
425  - Added -fno-strict-aliasing to CFLAGS and CXXFLAGS to try to fix SEGV and
426    SIGILL crashes in mkfontscale which have been traced into freetype and seem
427    to be caused by aliasing issues in freetype macros
428
429* Wed Dec 10 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.1.7-0vl2
430- update patch1
431
432* Sun Nov 09 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.7-0vl1
433- new upstream release
434
435* Sat Sep 27 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.5-0vl2
436- rebuild for VineSeed
437
438* Sat Sep 27 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.5-0vl1
439- source upgrade
440- add Patch1 from http://www.kde.gr.jp/~akito/
441- remove Source1
442- remove Patch0 (no need to 2.1.5)
443
444* Wed Aug 06 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.4-0vl2
445- correct License tag from GPL to GPL/FTL dual license
446  - FTL: The FreeType Project License
447
448* Wed Apr  9 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.4-0vl1
449- source upgrade
450
451* Sat Dec  7 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.3-0vl1
452- source and patch upgrade
453
454* Thu Dec  5 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl3
455- rebuild with new toolchain
456
457* Wed Aug 21 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl2
458- add Patch0 to fix problem to Dyna-Font
459
460* Mon Jul 23 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl1
461- source upgrade
462- add %{_datadir}/aclocal/freetype2.m4 to -devel
463
464* Mon Jan 28 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.6-0vl2
465- modified %%build section
466
467* Wed Jan 16 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 2.0.6-0vl1
468- source update
469- add ftdocs
470
471* Fri Nov 23 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.1-0vl5
472- small build fix
473
474* Wed May  9 2001 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl4
475- Added Requires for -devel
476- Fixed config path
477
478* Mon Apr 23 2001 Kazuhisa TAKEI <takei@vinelinux.org> 2.0.1-0vl3
479- add %{_bindir} in devel package's %file section.
480
481* Tue Jan  9 2001 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl2
482- Added %defattr.
483
484* Sun Dec 17 2000 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl1
485- Initial revision.
486
Note: See TracBrowser for help on using the repository browser.