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