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