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