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