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

Revision 1460, 14.2 KB checked in by daisuke, 14 years ago (diff)

freetype2: update to 2.4.1

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