source: projects/specs/trunk/f/freetype2/freetype2-vl.spec @ 4843

Revision 4843, 14.6 KB checked in by daisuke, 13 years ago (diff)

freetype2: update to 2.4.6

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