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

Revision 1591, 14.3 KB checked in by daisuke, 14 years ago (diff)

update to 2.4.2

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