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