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