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