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

Revision 7727, 15.3 KB checked in by kudoh, 11 years ago (diff)

--force-log

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