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