]> git.pld-linux.org Git - packages/freetype.git/blob - freetype.spec
- bytecode interpreter seems to give very bad results :/
[packages/freetype.git] / freetype.spec
1 #
2 # Conditional build:
3 %bcond_with     bytecode        # with TT bytecode interpreter
4 #                (patents pending in USA, Japan etc., but now it 
5 #                 includes also patent-free hinting workaround
6 #                 (but it sucks hard! - auto-hinter is much better))
7 %bcond_without  x11
8 #
9 Summary:        TrueType font rasterizer
10 Summary(es):    Biblioteca de render 3D de fuentes TrueType
11 Summary(ko):    ÀÚÀ¯·Ó°Ô ¾îµðµç ¾µ ¼ö Àִ Ʈ·çŸÀÔ ±Û²ÃÀ» ´Ù·ç´Â ¿£Áø
12 Summary(pl):    Rasteryzer fontów TrueType
13 Summary(pt_BR): Biblioteca de renderização de fontes TrueType
14 Summary(ru):    òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× TrueType
15 Summary(uk):    òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆԦנTrueType
16 Name:           freetype
17 Version:        2.1.7
18 Release:        3
19 License:        GPL or FTL
20 Group:          Libraries
21 Source0:        ftp://ftp.freetype.org/freetype/freetype2/%{name}-%{version}.tar.bz2
22 # Source0-md5:  d5c39853f6741c8401bfe272478958a8
23 Source1:        ftp://ftp.freetype.org/freetype/freetype2/ftdocs-%{version}.tar.bz2
24 # Source1-md5:  56579e3610482522061cfafbb788a81b
25 Source2:        ftp://ftp.freetype.org/freetype/freetype2/ft2demos-%{version}.tar.bz2
26 # Source2-md5:  89a5b3fd3177fbc71f9ba7cbc64edfa2
27 URL:            http://www.freetype.org/
28 BuildRequires:  SysVinit
29 %{?with_x11:BuildRequires:      XFree86-devel}
30 BuildRequires:  automake
31 BuildRequires:  zlib-devel
32 Obsoletes:      freetype2
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %define         specflags_ia32  "-fomit-frame-pointer"
36
37 %description
38 The FreeType engine is a free and portable TrueType font rendering
39 engine. It has been developed to provide TrueType support to a great
40 variety of platforms and environments.
41
42 Note that FreeType is a *library*. It is not a font server for your
43 favorite platform, even though it was designed to be used in many of
44 them. Note also that it is *not* a complete text-rendering library.
45 Its purpose is simply to open and manage font files, as well as load,
46 hint and render individual glyphs efficiently. You can also see it as
47 a "TrueType driver" for a higher-level library, though rendering text
48 with it is extremely easy, as demo-ed by the test programs.
49
50 %description -l es
51 FreeType es una máquina libre y portátil para en render de fuentes
52 TrueType. Fue desarrollada para ofrecer soporte TrueType a una gran
53 variedad de plataformas y ambientes. Observa que FreeType es una
54 biblioteca y no una aplicación, a pesar de que algunos utilitarios se
55 incluyan en este paquete.
56
57 %description -l pl
58 FreeType jest bibliotek± s³u¿±c± do rasteryzacji fontów TrueType. Jest
59 to jedynie biblioteka, a nie serwer fontów, chocia¿ zosta³a ona
60 zaprojektowana do u¿ywania tak¿e w takich serwerach. Nie jest to te¿
61 kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko
62 odczytywanie i zarz±dzanie plikami z fontami oraz wczytywanie i
63 wykonywanie hintingu i rasteryzacji poszczególnych glifów. Mo¿e byæ
64 tak¿e uwa¿ana za "sterownik TrueType" dla bibliotek wy¿szego poziomu,
65 jednak u¿ycie samej biblioteki FreeType do rasteryzacji jest bardzo
66 proste, co mo¿na zobaczyæ w programach demonstracyjnych.
67
68 %description -l pt_BR
69 FreeType é uma máquina livre e portável para renderização de fontes
70 TrueType. Ela foi desenvolvida para fornecer suporte TrueType a uma
71 grande variedade de plataformas e ambientes. Note que FreeType é uma
72 biblioteca e não uma aplicação, apesar que alguns utilitários são
73 incluídos neste pacote.
74
75 %description -l ru
76 âÉÂÌÉÏÔÅËÁ FreeType - ÜÔÏ Ó×ÏÂÏÄÎÁÑ ÐÅÒÅÎÏÓÉÍÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ
77 ÒÅÎÄÅÒÉÎÇÁ (ÒÁÓÔÅÒÉÚÁÃÉÉ) ÛÒÉÆÔÏ× TrueType, ÄÏÓÔÕÐÎÁÑ × ÉÓÈÏÄÎÙÈ
78 ÔÅËÓÔÁÈ ÎÁ ANSI C É Pascal. ïÎÁ ÂÙÌÁ ÒÁÚÒÁÂÏÔÁÎÁ ÄÌÑ ÐÏÄÄÅÒÖËÉ TT ÎÁ
79 ÒÁÚÎÏÏÂÒÁÚÎÙÈ ÐÌÁÔÆÏÒÍÁÈ.
80
81 %description -l uk
82 â¦Â̦ÏÔÅËÁ FreeType - ÃŠצÌØÎÁ ÐÅÒÅÎÏÓÉÍÁ Â¦Â̦ÏÔÅËÁ ÄÌÑ ÒÅÎÄÅÒÉÎÇÕ
83 (ÒÁÓÔÅÒÉÚÁæ§) ÛÒÉÆԦנTrueType, ÝÏ ÒÏÚÐÏ×ÓÀÄÖÕ¤ÔØÓÑ Õ ×ÉȦÄÎÉÈ
84 ÔÅËÓÔÁÈ ÎÁ C ÔÁ Pascal. ÷ÏÎÁ ÂÕÌÁ ÒÏÚÒÏÂÌÅÎÁ ÄÌѠЦÄÔÒÉÍËÉ TT ÎÁ
85 Ò¦ÚÎÉÈ ÐÌÁÔÆÏÒÍÁÈ.
86
87 %package devel
88 Summary:        Header files and development documentation
89 Summary(es):    Archivos de inclusión e bibliotecas estáticas para desarrollo con FreeType
90 Summary(ko):    FreeTypeÀ» ¾µ ¶§ ÇÊ¿äÇÑ Á¤Àû ¶óÀ̺귯¸®¿Í ¸Ó¸®¸» ÆÄÀÏ
91 Summary(pl):    Pliki nag³ówkowe biblioteki freetype i dokumentacja
92 Summary(pt_BR): Arquivos de inclusão e bibliotecas estáticas para desenvolvimento com FreeType
93 Summary(ru):    âÉÂÌÉÏÔÅËÉ ÒÁÚÒÁÂÏÔÞÉËÁ ÄÌÑ freetype
94 Summary(uk):    â¦Â̦ÏÔÅËÉ ÐÒÏÇÒÁͦÓÔÁ ÄÌÑ freetype
95 Group:          Development/Libraries
96 Requires:       %{name} = %{version}-%{release}
97 Requires:       zlib-devel
98 Obsoletes:      freetype2-devel
99
100 %description devel
101 This package includes the header files and documentation necessary to
102 develop applications that use FreeType.
103
104 %description devel -l es
105 Este paquete es necesario, si pretendes desarrollar/compilar
106 aplicaciones con la biblioteca FreeType. Si, simplemente, deseas
107 ejecutar aplicaciones existentes, no lo necesitas.
108
109 %description devel -l pl
110 Pakiet ten zawiera pliki nag³ówkowe oraz dokumentacjê potrzebne przy
111 tworzeniu programów wykorzystuj±cych bibliotekê FreeType.
112
113 %description devel -l pt_BR
114 Este pacote é necessário se você pretende desenvolver/compilar
115 aplicações com a biblioteca FreeType. Se você simplesmente deseja
116 rodar aplicações existentes, você não precisa deste pacote.
117
118 %description devel -l ru
119 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÈÅÄÅÒÙ É ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ
120 ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ freetype.
121
122 %description devel -l uk
123 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÈÅÄÅÒÉ ÔÁ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÒÏÚÒÏÂËÉ
124 ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ freetype.
125
126 %package static
127 Summary:        FreeType static libraries
128 Summary(es):    Static libraries for freetype development
129 Summary(pl):    Biblioteki statyczne FreeType
130 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com freetype
131 Summary(ru):    óÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ freetype
132 Summary(uk):    óÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ freetype
133 Group:          Development/Libraries
134 Requires:       %{name}-devel = %{version}-%{release}
135 Obsoletes:      freetype2-static
136
137 %description static
138 Static FreeType libraries.
139
140 %description static -l es
141 Static libraries for freetype development.
142
143 %description static -l pl
144 Biblioteki statyczne FreeType.
145
146 %description static -l pt_BR
147 Bibliotecas estáticas para desenvolvimento com freetype.
148
149 %description static -l ru
150 üÔÏÔ ÐÁËÅÔ ÓÏÄÅÒÖÉÔ ÓÔÁÔÉÞÅÓËÉÅ ÂÉÂÌÉÏÔÅËÉ, ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ÎÁÐÉÓÁÎÉÑ
151 ÐÒÏÇÒÁÍÍ, ÉÓÐÏÌØÚÕÀÝÉÈ freetype.
152
153 %description static -l uk
154 ãÅÊ ÐÁËÅԠͦÓÔÉÔØ ÓÔÁÔÉÞΦ Â¦Â̦ÏÔÅËÉ, ÎÅÏÂȦÄΦ ÄÌÑ ÎÁÐÉÓÁÎÎÑ
155 ÐÒÏÇÒÁÍ, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ freetype.
156
157 %package demos
158 Summary:        FreeType demo programs
159 Summary(ko):    FreeTypeÀ» ½ÃÇèÇغ¼ ¼ö Àִ ÇÁ·Î±×·¥ ¸ðÀ½
160 Summary(pl):    Programy demonstracyjne FreeType
161 Group:          X11/Applications
162 Requires:       %{name} = %{version}-%{release}
163
164 %description demos
165 Demonstration programs for FreeType library.
166
167 %description demos -l pl
168 Programy demonstracyjne do biblioteki FreeType.
169
170 %prep
171 %setup -q -a1 -a2
172
173 mv -f freetype-%{version}/docs/reference/* docs/reference
174
175 %build
176 CFLAGS="%{rpmcflags} %{?with_bytecode:-DTT_CONFIG_OPTION_BYTECODE_INTERPRETER}" \
177 %{__make} setup unix \
178        CFG="--prefix=%{_prefix} --libdir=%{_libdir}"
179
180 %{__make} \
181         X11_LIB="/usr/X11R6/%{_lib}"
182
183 %if %{with x11}
184 %{__make} -C ft2demos-* \
185         TOP_DIR="`pwd`" \
186         X11_LIB="/usr/X11R6/%{_lib}"
187 %endif
188
189 %install
190 rm -rf $RPM_BUILD_ROOT
191 install -d $RPM_BUILD_ROOT%{_bindir}
192
193 %{__make} install \
194         DESTDIR=$RPM_BUILD_ROOT
195
196 %if %{with x11}
197 install ft2demos-*/bin/.libs/ft{multi,timer,view} $RPM_BUILD_ROOT%{_bindir}
198 install ft2demos-*/bin/.libs/ft{dump,lint,memchk} $RPM_BUILD_ROOT%{_bindir}
199 install ft2demos-*/bin/.libs/testname $RPM_BUILD_ROOT%{_bindir}/fttestname
200 %endif
201
202 %clean
203 rm -rf $RPM_BUILD_ROOT
204
205 %post   -p /sbin/ldconfig
206 %postun -p /sbin/ldconfig
207
208 %files
209 %defattr(644,root,root,755)
210 %doc docs/{CHANGES,FTL.txt,PATENTS,license.txt,TODO,modules.txt}
211 %attr(755,root,root) %{_libdir}/lib*.so.*.*
212
213 %files devel
214 %defattr(644,root,root,755)
215 %doc docs/{DEBUG,TRUETYPE} docs/reference
216 %attr(755,root,root) %{_bindir}/freetype-config
217 %attr(755,root,root) %{_libdir}/lib*.so
218 %{_libdir}/lib*.la
219 %{_includedir}/freetype2
220 %{_includedir}/*.h
221 %{_aclocaldir}/*.m4
222 %{_pkgconfigdir}/*.pc
223
224 %files static
225 %defattr(644,root,root,755)
226 %{_libdir}/lib*.a
227
228 %if %{with x11}
229 %files demos
230 %defattr(644,root,root,755)
231 %attr(755,root,root) %{_bindir}/ft*
232 %endif
This page took 0.041744 seconds and 4 git commands to generate.