3 # _without_bytecode - without TT bytecode interpreter
4 # (patents pending in USA, Japan...)
6 Summary: TrueType font rasterizer
7 Summary(pl): Rasteryzer fontów TrueType
13 Source0: ftp://ftp.freetype.org/freetype/freetype2/%{name}-%{version}.tar.bz2
14 Source1: ftp://ftp.freetype.org/freetype/freetype2/ftdocs-%{version}.tar.bz2
15 Source2: ftp://ftp.freetype.org/freetype/freetype2/ft2demos-%{version}.tar.bz2
16 Patch0: %{name}2-DESTDIR.patch
17 Patch1: %{name}2-bytecode.patch
18 URL: http://www.freetype.org/
19 BuildRequires: SysVinit
20 BuildRequires: XFree86-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 %define _xbindir /usr/X11R6/bin
27 The FreeType engine is a free and portable TrueType font rendering
28 engine. It has been developed to provide TrueType support to a great
29 variety of platforms and environments.
31 Note that FreeType is a *library*. It is not a font server for your
32 favorite platform, even though it was designed to be used in many of
33 them. Note also that it is *not* a complete text-rendering library.
34 Its purpose is simply to open and manage font files, as well as load,
35 hint and render individual glyphs efficiently. You can also see it as
36 a "TrueType driver" for a higher-level library, though rendering text
37 with it is extremely easy, as demo-ed by the test programs.
40 FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Jest
41 to jedynie biblioteka, a nie serwer fontów, chocia¿ zosta³a ona
42 zaprojektowana do u¿ywania tak¿e w takich serwerach. Nie jest to te¿
43 kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko
44 odczytywanie i zarz±dzanie plikami z fontami oraz wczytywanie i
45 wykonywanie hintingu i rasteryzacji poszczególnych glifów. Mo¿e byæ
46 tak¿e uwa¿ana za "sterownik TrueType" dla bibliotek wy¿szego poziomu,
47 jednak u¿ycie samej biblioteki FreeType do rasteryzacji jest bardzo
48 proste, co mo¿na zobaczyæ w programach demonstracyjnych.
51 Summary: Header files and development documentation
52 Summary(pl): Pliki nag³ówkowe biblioteki freetype i dokumentacja
53 Group: Development/Libraries
54 Requires: %{name} = %{version}
55 Obsoletes: freetype2-devel
58 This package includes the header files and documentation necessary
59 to develop applications that use FreeType.
61 %description devel -l pl
62 Pakiet ten zawiera pliki nag³ówkowe oraz dokumentacjê potrzebne przy
63 tworzeniu programów wykorzystuj±cych bibliotekê FreeType.
66 Summary: FreeType static libraries
67 Summary(pl): Biblioteki statyczne FreeType
68 Group: Development/Libraries
69 Requires: %{name}-devel = %{version}
70 Obsoletes: freetype2-static
73 Static FreeType libraries.
75 %description static -l pl
76 Biblioteki statyczne FreeType.
79 Summary: FreeType demo programs
80 Summary(pl): Programy demonstracyjne FreeType
81 Group: X11/Applications
82 Requires: %{name} = %{version}
85 Demonstration programs for FreeType library.
87 %description demos -l pl
88 Programy demonstracyjne do biblioteki FreeType.
93 %{!?_without_bytecode:%patch1 -p1}
96 CFLAGS="%{rpmcflags}" %{__make} setup CFG="--prefix=%{_prefix}"
100 %{__make} TOP="`pwd`" -C ft2demos-*
103 rm -rf $RPM_BUILD_ROOT
106 DESTDIR="$RPM_BUILD_ROOT"
109 install -d $RPM_BUILD_ROOT{%{_bindir},%{_xbindir}}
110 install ft2demos-*/bin/.libs/ft{multi,timer,view} $RPM_BUILD_ROOT%{_xbindir}
111 install ft2demos-*/bin/.libs/ft{dump,lint,memchk} $RPM_BUILD_ROOT%{_bindir}
112 install ft2demos-*/bin/.libs/testnames $RPM_BUILD_ROOT%{_bindir}/fttestnames
114 gzip -9nf docs/{BUGS,CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt}
117 rm -rf $RPM_BUILD_ROOT
119 %post -p /sbin/ldconfig
120 %postun -p /sbin/ldconfig
123 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/lib*so.*.*
128 %defattr(644,root,root,755)
129 %doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial}
130 %attr(755,root,root) %{_bindir}/freetype-config
131 %attr(755,root,root) %{_libdir}/lib*.so
132 %attr(755,root,root) %{_libdir}/lib*.la
133 %{_includedir}/freetype2
137 %defattr(644,root,root,755)
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_bindir}/ft*
143 %attr(755,root,root) %{_xbindir}/ft*