source: projects/specs/tags/6_0_REL/f/freetype2/freetype2-vl.spec @ 2269

Revision 2269, 14.5 KB checked in by daisuke, 13 years ago (diff)

freetype2: update to 2.4.4

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: 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* Fri Dec 03 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.4-1
292- new upstream release
293
294* Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.4.2-2
295- build with rpm-4.8.1-1 for pkg-config file
296
297* Mon Aug 16 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.2-1
298- new upstream release
299
300* Tue Jul 27 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.1-1
301- new upstream release
302
303* Thu Jul 15 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4.0-1
304- new upstream release
305
306* Sun May 09 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.12-2
307- enable bytecode interpreter, the patent is now expired.
308
309* Tue Feb 16 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.12-1
310- new upstream release
311
312* Tue Oct 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.11-1
313- new upstream release
314- update patch201
315
316* Sun Aug 16 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-6
317- rebuild with gpg signing
318
319* Wed Jul 29 2009 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.3.9-5
320- fixed "Invalid Outline" error on x86_64.
321
322* Sun May 03 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.3.9-4
323- removed %%if !%%{build_compat32} case condition
324- removed CC='gcc -m32' before make setup
325
326* Sun Apr 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-3
327- enable Patch200 again
328
329* Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-2
330- split static library to freetype2-static
331  - needed by tuxonice-userui
332- disable Patch200
333
334* Sat Mar 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.9-1
335- new upstream release
336
337* Wed Jan 14 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.8-1
338- new upstream release
339
340* Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 2.3.7-2
341- removed *.la
342
343* Wed Jul 02 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.7-1
344- new upstream release
345
346* Wed Jun 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.6-1
347- new upstream release
348
349* Sun May 11 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-3
350- add Provides: freetype-utils = %%{version} to freetype2-demos
351
352* Thu Apr 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-2
353- remove %%{_bindir}/* from -devel
354
355* Fri Mar 21 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.5-1
356- new upstream release
357- add freetype2-demos
358  - Obsoletes: freetype-utils
359
360* Wed May 23 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.3.4-0vl2
361- add Patch201 (CVE-2007-2754)
362
363* Sun May 20 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.4-0vl1
364- new upstream release
365
366* Thu Aug 17 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 2.1.10-0vl8
367- add Requires: zlib-devel (devel package)
368- compat32
369  - add BuildRequires: compat32-zlib-devel
370  - add Requires: compat32-zlib-devel (devel package)
371
372* Thu Jul 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl7
373- add Patch200 to adjust synthetic-embold font weight.
374  - default value is too heavy...
375
376* Sat Jun 17 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl6
377- add Patch100 for autofit-cjk
378
379* Fri Feb 24 2006 Shu KONNO <owa@bg.wakwak.com> 2.1.10-0vl5
380- added --libdir=%%{_libdir} to make setup
381- added CC='gcc -m32' before make setup if compat32
382
383* Sun Feb 12 2006 NAKAMURA Kenta <kenta@c.csce.kyushu-u.ac.jp> 2.1.10-0vl4
384- added compat32-* packages for x86_64 architecture support
385
386* Thu Oct 13 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl3
387- add upstream patches (from MDK)
388  - add Patch13 to fix memleak
389  - add Patch14 to put back internal API, used by XOrg
390  - add Patch15 to fix bad anti-aliasing
391
392* Sat Oct 01 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.10-0vl2
393- add upstream patches (from MDK)
394  - add Patch10 to add fixes from CVS
395  - add Patch11 to fix autofit render setup
396  - add Patch12 to fix kerning
397- add Patch20 (enable bytecode interpreter), but not applied by default
398
399* Tue Sep  6 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.10-0vl1
400- new upstream release
401- drop Patch1 (auto-hinter has been replaced with a new module)
402- drop Patch2 (included in freetype-2.1.8)
403- add pkgconfig file
404
405* Fri Apr 16 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.7-0vl4
406- add xtt2-1.2a related patch which is merged in CVS.
407  (http://x-tt.sourceforge.jp/index_nippon.html)
408
409* Thu Apr 01 2004 Tomoya TAKA <taka@vinelinux.org> 2.1.7-0vl3
410- add a fix from Fedora freetype-2.1.7-3
411  * Wed Mar 10 2004 Mike A. Harris <mharris@redhat.com> 2.1.7-3
412  - Added -fno-strict-aliasing to CFLAGS and CXXFLAGS to try to fix SEGV and
413    SIGILL crashes in mkfontscale which have been traced into freetype and seem
414    to be caused by aliasing issues in freetype macros
415
416* Wed Dec 10 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 2.1.7-0vl2
417- update patch1
418
419* Sun Nov 09 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.7-0vl1
420- new upstream release
421
422* Sat Sep 27 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.5-0vl2
423- rebuild for VineSeed
424
425* Sat Sep 27 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.5-0vl1
426- source upgrade
427- add Patch1 from http://www.kde.gr.jp/~akito/
428- remove Source1
429- remove Patch0 (no need to 2.1.5)
430
431* Wed Aug 06 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.4-0vl2
432- correct License tag from GPL to GPL/FTL dual license
433  - FTL: The FreeType Project License
434
435* Wed Apr  9 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.4-0vl1
436- source upgrade
437
438* Sat Dec  7 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.3-0vl1
439- source and patch upgrade
440
441* Thu Dec  5 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl3
442- rebuild with new toolchain
443
444* Wed Aug 21 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl2
445- add Patch0 to fix problem to Dyna-Font
446
447* Mon Jul 23 2002 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.1.2-0vl1
448- source upgrade
449- add %{_datadir}/aclocal/freetype2.m4 to -devel
450
451* Mon Jan 28 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.6-0vl2
452- modified %%build section
453
454* Wed Jan 16 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 2.0.6-0vl1
455- source update
456- add ftdocs
457
458* Fri Nov 23 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.1-0vl5
459- small build fix
460
461* Wed May  9 2001 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl4
462- Added Requires for -devel
463- Fixed config path
464
465* Mon Apr 23 2001 Kazuhisa TAKEI <takei@vinelinux.org> 2.0.1-0vl3
466- add %{_bindir} in devel package's %file section.
467
468* Tue Jan  9 2001 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl2
469- Added %defattr.
470
471* Sun Dec 17 2000 Akira TAGOH <tagoh@gnome.gr.jp> 2.0.1-0vl1
472- Initial revision.
473
Note: See TracBrowser for help on using the repository browser.