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