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