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

Revision 7422, 16.4 KB checked in by iwamoto, 11 years ago (diff)

perl, proftpd, gnupg, freetype2, net-snmp update @ vine6

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