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

Revision 11322, 16.8 KB checked in by tomop, 6 years ago (diff)

freetype2-2.8.1-1

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