]> git.pld-linux.org Git - packages/freetype.git/blob - freetype.spec
- GPL version
[packages/freetype.git] / freetype.spec
1 #
2 # Conditional build:
3 %bcond_without  lcd             # without LCD subpixel color filtering (Microsoft patents in USA)
4 %bcond_without  x11             # don't build examples (X11-based)
5 %bcond_without  apidocs         # disable api docs
6
7 Summary:        TrueType font rasterizer
8 Summary(es.UTF-8):      Biblioteca de render 3D de fuentes TrueType
9 Summary(ko.UTF-8):      자유롭게 어디든 쓸 수 있는 트루타입 글꼴을 다루는 엔진
10 Summary(pl.UTF-8):      Rasteryzer fontów TrueType
11 Summary(pt_BR.UTF-8):   Biblioteca de renderização de fontes TrueType
12 Summary(ru.UTF-8):      Растеризатор шрифтов TrueType
13 Summary(uk.UTF-8):      Растеризатор шрифтів TrueType
14 Name:           freetype
15 Version:        2.4.7
16 Release:        1
17 Epoch:          1
18 License:        GPL v2 or FTL
19 Group:          Libraries
20 Source0:        http://downloads.sourceforge.net/freetype/%{name}-%{version}.tar.bz2
21 # Source0-md5:  dbadce8f0c5e70a0b7c51eadf2dd9394
22 Source1:        http://downloads.sourceforge.net/freetype/%{name}-doc-%{version}.tar.bz2
23 # Source1-md5:  09bfc874435c300252d42b8961564c05
24 Source2:        http://downloads.sourceforge.net/freetype/ft2demos-%{version}.tar.bz2
25 # Source2-md5:  d0118543dfe789bb9fb3b43593b62c05
26 Patch0:         freetype-2.2.1-enable-valid.patch
27 URL:            http://www.freetype.org/
28 BuildRequires:  automake
29 BuildRequires:  python
30 BuildRequires:  python-modules
31 BuildRequires:  rpm >= 4.4.9-56
32 %if "%{pld_release}" == "ac"
33 %{?with_x11:BuildRequires:      XFree86-devel}
34 %else
35 %{?with_x11:BuildRequires:      xorg-lib-libX11-devel}
36 %endif
37 BuildRequires:  zlib-devel
38 Obsoletes:      freetype2
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 %define         specflags_ia32  -fomit-frame-pointer
42 # see <freetype/internal/ftserv.h>, the real horror
43 %define         specflags       -fno-strict-aliasing
44
45 %description
46 The FreeType engine is a free and portable TrueType font rendering
47 engine. It has been developed to provide TrueType support to a great
48 variety of platforms and environments.
49
50 Note that FreeType is a *library*. It is not a font server for your
51 favorite platform, even though it was designed to be used in many of
52 them. Note also that it is *not* a complete text-rendering library.
53 Its purpose is simply to open and manage font files, as well as load,
54 hint and render individual glyphs efficiently. You can also see it as
55 a "TrueType driver" for a higher-level library, though rendering text
56 with it is extremely easy, as demo-ed by the test programs.
57
58 %description -l es.UTF-8
59 FreeType es una máquina libre y portátil para en render de fuentes
60 TrueType. Fue desarrollada para ofrecer soporte TrueType a una gran
61 variedad de plataformas y ambientes. Observa que FreeType es una
62 biblioteca y no una aplicación, a pesar de que algunos utilitarios se
63 incluyan en este paquete.
64
65 %description -l pl.UTF-8
66 FreeType jest biblioteką służącą do rasteryzacji fontów TrueType. Jest
67 to jedynie biblioteka, a nie serwer fontów, chociaż została ona
68 zaprojektowana do używania także w takich serwerach. Nie jest to też
69 kompletna biblioteka do rasteryzacji tekstu. Jej celem jest tylko
70 odczytywanie i zarządzanie plikami z fontami oraz wczytywanie i
71 wykonywanie hintingu i rasteryzacji poszczególnych glifów. Może być
72 także uważana za "sterownik TrueType" dla bibliotek wyższego poziomu,
73 jednak użycie samej biblioteki FreeType do rasteryzacji jest bardzo
74 proste, co można zobaczyć w programach demonstracyjnych.
75
76 %description -l pt_BR.UTF-8
77 FreeType é uma máquina livre e portável para renderização de fontes
78 TrueType. Ela foi desenvolvida para fornecer suporte TrueType a uma
79 grande variedade de plataformas e ambientes. Note que FreeType é uma
80 biblioteca e não uma aplicação, apesar que alguns utilitários são
81 incluídos neste pacote.
82
83 %description -l ru.UTF-8
84 Библиотека FreeType - это свободная переносимая библиотека для
85 рендеринга (растеризации) шрифтов TrueType, доступная в исходных
86 текстах на ANSI C и Pascal. Она была разработана для поддержки TT на
87 разнообразных платформах.
88
89 %description -l uk.UTF-8
90 Бібліотека FreeType - це вільна переносима бібліотека для рендерингу
91 (растеризації) шрифтів TrueType, що розповсюджується у вихідних
92 текстах на C та Pascal. Вона була розроблена для підтримки TT на
93 різних платформах.
94
95 %package devel
96 Summary:        Header files for FreeType development
97 Summary(es.UTF-8):      Archivos de inclusión para desarrollo con FreeType
98 Summary(ko.UTF-8):      FreeType을 쓸 때 필요한 정적 라이브러리와 머리말 파일
99 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki FreeType
100 Summary(pt_BR.UTF-8):   Arquivos de inclusão para desenvolvimento com FreeType
101 Summary(ru.UTF-8):      Библиотеки разработчика для freetype
102 Summary(uk.UTF-8):      Бібліотеки програміста для freetype
103 Group:          Development/Libraries
104 Requires:       %{name} = %{epoch}:%{version}-%{release}
105 Requires:       zlib-devel
106 Obsoletes:      freetype2-devel
107
108 %description devel
109 This package includes the header files necessary to develop
110 applications that use FreeType.
111
112 %description devel -l es.UTF-8
113 Este paquete es necesario, si pretendes desarrollar/compilar
114 aplicaciones con la biblioteca FreeType. Si, simplemente, deseas
115 ejecutar aplicaciones existentes, no lo necesitas.
116
117 %description devel -l pl.UTF-8
118 Pakiet ten zawiera pliki nagłówkowe potrzebne przy tworzeniu programów
119 wykorzystujących bibliotekę FreeType.
120
121 %description devel -l pt_BR.UTF-8
122 Este pacote é necessário se você pretende desenvolver/compilar
123 aplicações com a biblioteca FreeType. Se você simplesmente deseja
124 rodar aplicações existentes, você não precisa deste pacote.
125
126 %description devel -l ru.UTF-8
127 Этот пакет содержит хедеры необходимые для разработки программ,
128 использующих FreeType.
129
130 %description devel -l uk.UTF-8
131 Цей пакет містить хедери необхідні для розробки програм, що
132 використовують FreeType.
133
134 %package apidocs
135 Summary:        FreeType API documetation
136 Summary(pl.UTF-8):      Dokumentacja API FreeType
137 Group:          Documentation
138
139 %description apidocs
140 FreeType API documetation.
141
142 %description apidocs -l pl.UTF-8
143 Dokumentacja API FreeType.
144
145 %package static
146 Summary:        FreeType static libraries
147 Summary(es.UTF-8):      Static libraries for freetype development
148 Summary(pl.UTF-8):      Biblioteki statyczne FreeType
149 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com freetype
150 Summary(ru.UTF-8):      Статические библиотеки freetype
151 Summary(uk.UTF-8):      Статичні бібліотеки freetype
152 Group:          Development/Libraries
153 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
154 Obsoletes:      freetype2-static
155
156 %description static
157 Static FreeType libraries.
158
159 %description static -l es.UTF-8
160 Static libraries for freetype development.
161
162 %description static -l pl.UTF-8
163 Biblioteki statyczne FreeType.
164
165 %description static -l pt_BR.UTF-8
166 Bibliotecas estáticas para desenvolvimento com freetype.
167
168 %description static -l ru.UTF-8
169 Этот пакет содержит статические библиотеки, необходимые для написания
170 программ, использующих freetype.
171
172 %description static -l uk.UTF-8
173 Цей пакет містить статичні бібліотеки, необхідні для написання
174 програм, що використовують freetype.
175
176 %package demos
177 Summary:        FreeType demo programs
178 Summary(ko.UTF-8):      FreeType을 시험해볼 수 있는 프로그램 모음
179 Summary(pl.UTF-8):      Programy demonstracyjne FreeType
180 Group:          X11/Applications
181 Requires:       %{name} = %{epoch}:%{version}-%{release}
182
183 %description demos
184 Demonstration programs for FreeType library.
185
186 %description demos -l pl.UTF-8
187 Programy demonstracyjne do biblioteki FreeType.
188
189 %prep
190 %setup -q -a1 -a2
191 %patch0 -p1
192
193 %build
194 CFLAGS="%{rpmcflags} %{rpmcppflags} \
195 %{?with_lcd:-DFT_CONFIG_OPTION_SUBPIXEL_RENDERING}" \
196 %{__make} setup unix \
197         CFG="--prefix=%{_prefix} --libdir=%{_libdir}"
198
199 %{__make} \
200         X11_LIB=%{?_x_libraries}
201
202 %if %{with x11}
203 %{__make} -C ft2demos-* \
204         TOP_DIR=$(pwd) \
205         X11_LIB=%{?_x_libraries}
206 %endif
207
208 %{__make} refdoc
209
210 %install
211 rm -rf $RPM_BUILD_ROOT
212 install -d $RPM_BUILD_ROOT%{_bindir}
213
214 %{__make} install \
215         DESTDIR=$RPM_BUILD_ROOT
216
217 %if %{with x11}
218 install -p ft2demos-*/bin/.libs/ft* $RPM_BUILD_ROOT%{_bindir}
219 %endif
220
221 %clean
222 rm -rf $RPM_BUILD_ROOT
223
224 %post   -p /sbin/ldconfig
225 %postun -p /sbin/ldconfig
226
227 %files
228 %defattr(644,root,root,755)
229 %doc docs/{CHANGES,FTL.TXT,LICENSE.TXT,TODO,formats.txt,raster.txt}
230 %attr(755,root,root) %{_libdir}/libfreetype.so.*.*.*
231 %attr(755,root,root) %ghost %{_libdir}/libfreetype.so.6
232
233 %files devel
234 %defattr(644,root,root,755)
235 %doc docs/DEBUG
236 %attr(755,root,root) %{_bindir}/freetype-config
237 %attr(755,root,root) %{_libdir}/libfreetype.so
238 %{_libdir}/libfreetype.la
239 %{_includedir}/freetype2
240 %{_includedir}/ft2build.h
241 %{_aclocaldir}/freetype2.m4
242 %{_pkgconfigdir}/freetype2.pc
243
244 %if %{with apidocs}
245 %files apidocs
246 %defattr(644,root,root,755)
247 %doc docs/reference
248 %endif
249
250 %files static
251 %defattr(644,root,root,755)
252 %{_libdir}/libfreetype.a
253
254 %if %{with x11}
255 %files demos
256 %defattr(644,root,root,755)
257 %attr(755,root,root) %{_bindir}/ft*
258 %endif
This page took 0.064842 seconds and 4 git commands to generate.