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