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 Patch0: %{name}2-DESTDIR.patch
16 Patch1: %{name}2-gsf-segv.patch
17 Patch2: %{name}2-bytecode.patch
18 URL: http://www.freetype.org/
19 BuildRequires: SysVinit
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The FreeType engine is a free and portable TrueType font rendering
25 engine. It has been developed to provide TrueType support to a great
26 variety of platforms and environments.
28 Note that FreeType is a *library*. It is not a font server for your
29 favorite platform, even though it was designed to be used in many of
30 them. Note also that it is *not* a complete text-rendering library.
31 Its purpose is simply to open and manage font files, as well as load,
32 hint and render individual glyphs efficiently. You can also see it as
33 a "TrueType driver" for a higher-level library, though rendering text
34 with it is extremely easy, as demo-ed by the test programs.
37 FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Kody
38 ¼ród³owe napisane s± w ANSI C oraz PASCAL'u.
41 Summary: Header files and development documentation
42 Summary(pl): Pliki nag³ówkowe biblioteki freetype i dokumentacja
43 Group: Development/Libraries
44 Requires: %{name} = %{version}
45 Obsoletes: freetype2-devel
46 Obsoletes: freetype2-static
49 This package includes the header files documentations and libraries
50 necessary to develop applications that use freetype.
52 %description devel -l pl
53 Pakiet ten zawiera pliki nag³ówkowe oraz biblioteki niezbêdne przy
54 kompilowaniu programów wykorzystuj±cych bibliotekê freetype.
57 Summary: Freetype static libraries
58 Summary(pl): Biblioteki statyczne freetype
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}
61 Obsoletes: freetype2-static
64 Static freetype libraries.
66 %description static -l pl
67 Biblioteki statyczne freetype.
73 %{!?_without_bytecode:%patch2 -p1}
76 CFLAGS="%{rpmcflags}" %{__make} setup CFG="--prefix=%{_prefix}"
81 rm -rf $RPM_BUILD_ROOT
84 DESTDIR="$RPM_BUILD_ROOT"
86 gzip -9nf docs/{BUGS,CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt}
89 rm -rf $RPM_BUILD_ROOT
91 %post -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
95 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/lib*so.*.*
100 %defattr(644,root,root,755)
101 %doc docs/*.html docs/{design,freetype2,glyphs,reference,tutorial}
102 %attr(755,root,root) %{_bindir}/*
103 %attr(755,root,root) %{_libdir}/lib*.so
104 %attr(755,root,root) %{_libdir}/lib*.la
105 %{_includedir}/freetype2
109 %defattr(644,root,root,755)