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