]> git.pld-linux.org Git - packages/t1lib.git/blob - t1lib.spec
- x32 rebuild
[packages/t1lib.git] / t1lib.spec
1 #
2 # Conditional build:
3 %bcond_without  doc     # do not build documentation with LaTeX
4
5 Summary:        A library for character- and string-glyphs from Adobe Type 1 fonts
6 Summary(pl.UTF-8):      Biblioteka znakowych i łańcuchowych glifów z fontów Adobe Type 1
7 Summary(pt_BR.UTF-8):   Rasterizador de fontes Type 1
8 Summary(ru.UTF-8):      Растеризатор шрифтов Type 1
9 Summary(uk.UTF-8):      Растеризатор шрифтів Type 1
10 Name:           t1lib
11 Version:        5.1.2
12 Release:        8
13 License:        GPL v2
14 Group:          Libraries
15 Source0:        ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
16 # Source0-md5:  a5629b56b93134377718009df1435f3c
17 Source1:        %{name}-fonts.Fontmap
18 Source2:        %{name}-fonts.fonts.scale
19 Source3:        %{name}config
20 Source4:        %{name}config.8
21 Patch0:         %{name}-doc.patch
22 Patch1:         %{name}-config.patch
23 Patch2:         %{name}-KernMapSize.patch
24 Patch3:         %{name}-man.patch
25 Patch4:         %{name}-xglyph.patch
26 Patch5:         %{name}-aclocal.patch
27 Patch6:         %{name}-link.patch
28 Patch7:         %{name}-5.1.2-CVE-2010-2642.patch
29 Patch8:         format-security.patch
30 BuildRequires:  autoconf
31 BuildRequires:  automake
32 BuildRequires:  libtool
33 BuildRequires:  rpm >= 4.4.9-56
34 %if "%{pld_release}" == "ac"
35 BuildRequires:  XFree86-devel
36 %else
37 BuildRequires:  xorg-lib-libX11-devel
38 BuildRequires:  xorg-lib-libXaw-devel
39 BuildRequires:  xorg-lib-libXt-devel
40 %endif
41 %if %{with doc}
42 BuildRequires:  tetex-dvips
43 BuildRequires:  tetex-format-latex
44 BuildRequires:  tetex-latex
45 BuildRequires:  tetex-makeindex
46 BuildRequires:  tetex-tex-babel
47 %endif
48 Requires:       findutils
49 Requires:       fontpostinst >= 0.1-6
50 Requires(post): /sbin/ldconfig
51 Obsoletes:      libt1lib1.3.1
52 Obsoletes:      libt1lib1.3.1-progs
53 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
55 %define         _t1fontsdir     %{_fontsdir}/Type1
56 %define         _t1afmdir       %{_t1fontsdir}/afm
57 %define         _datadir        /etc
58 %define         specflags_ia32   -fomit-frame-pointer
59
60 %description
61 t1lib is a library distributed under the GNU General Public Library
62 License for generating character- and string-glyphs from Adobe Type 1
63 fonts under UNIX. t1lib uses most of the code of the X11 rasterizer
64 donated by IBM to the X11-project. But some disadvantages of the
65 rasterizer being included in X11 have been eliminated. Here are some
66 of the features:
67 - t1lib is completely independent of X11 (although the program
68   provided for testing the library needs X11)
69 - fonts are made known to library by means of a font database file at
70   runtime
71 - searchpaths for all types of input files are configured by means of
72   a configuration file at runtime
73 - characters are rastered as they are needed
74 - characters and complete strings may be rastered by a simple function
75   call
76 - when rastering strings, pairwise kerning information from .afm-files
77   may optionally be taken into account
78 - an interface to ligature-information of afm-files is provided
79 - a program to generate afm-files from Type 1 font files is included
80 - rotation is supported at any angles
81 - there's support for extending and slanting fonts
82 - underlining, overlining and overstriking is supported
83 - new encoding vectors may be loaded at runtime and fonts may be
84   reencoded using these encoding vectors
85 - antialiasing is implemented using three gray-levels between black
86   and white
87 - An interactive test program called "xglyph" is included in the
88   distribution (as separate package). This program allows to test all of
89   the features of the library. It requires X11.
90
91 %description -l pl.UTF-8
92 t1lib jest wypuszczoną na LGPL biblioteką do generowania znakowych i
93 łańcuchowych glifów z fontów Adobe Type 1. t1lib używa większości kodu
94 rasteryzera X11 (wspomaganego przez IBM), ale niektóre wady tego
95 rasteryzera zostały usunięte. Niektóre cechy t1lib:
96 - całkowita niezależność od X11 (tylko program dostarczony do testów
97   wymaga X11)
98 - fonty są znane bibliotece poprzez dodanie do pliku z bazą danych o
99   fontach - w czasie uruchamiania
100 - ścieżki wyszukiwania wszystkich plików wejściowych są konfigurowalne
101   w czasie uruchamiania
102 - znaki są rasteryzowane kiedy są potrzebne
103 - znaki i całkowite łańcuchy mogą być zrasteryzowane prostym
104   wywołaniem funkcji
105 - przy rasteryzacji łańcuchów opcjonalnie mogą być brane pod uwagę
106   informacje o kerningu z plików .afm
107 - interfejs do informacji o ligaturach z plików .afm
108 - dołączony program do generowania plików .afm z fontów Type 1
109 - obroty o dowolny kąt
110 - wsparcie do rozszerzania i pochylania znaków
111 - wsparcie dla podkreślania, nadkreślania, przekreślania
112 - nowe wektory kodowania mogą być wczytane w czasie działania i fonty
113   mogą być ponownie zakodowane przy użyciu tych wektorów
114 - antyaliasing zaimplementowany przy użyciu trzech stopni szarości
115   pomiędzy czernią a bielą
116 - interaktywny program testowy xglyph - w osobnym pakiecie (wymaga X).
117
118 %description -l pt_BR.UTF-8
119 Rasterizador de fontes Type 1 da Adobe.
120
121 %description -l ru.UTF-8
122 T1lib - это библиотека для создания глифов символов и цепочек символов
123 из шрифтов Adobe Type 1. T1lib использует код растеризатора для X11
124 подаренного фирмой IBM проекту X11. Но некоторые недостатки
125 включенного в X11 растеризатора были устранены. T1lib включает также
126 поддержку антиалиасинга.
127
128 %description -l uk.UTF-8
129 T1lib - це бібліотека для створенння гліфів символів та ланцюжків
130 символів з шрифтів Adobe Type 1. T1lib використовує код растеризатора
131 для X11 подарованого фірмою IBM проекту X11. Але деякі недоліки
132 включеного в X11 растеризатора були прибрані. T1lib також включає
133 підтримку антиаліасинга.
134
135 %package devel
136 Summary:        Development files for t1lib
137 Summary(pl.UTF-8):      Pliki programistyczne t1lib
138 Summary(pt_BR.UTF-8):   Arquivos de inclusão para o desenvolvimento com a T1lib
139 Summary(ru.UTF-8):      Растеризатор шрифтов Type 1 - файлы для разработки программ
140 Summary(uk.UTF-8):      Растеризатор шрифтів Type 1 - файли для розробки програм
141 Group:          Development/Libraries
142 Requires:       %{name} = %{version}-%{release}
143 Obsoletes:      libt1lib1.3.1-devel
144
145 %description devel
146 The files needed for developing applications using t1lib.
147
148 %description devel -l pl.UTF-8
149 Pliki niezbędne do tworzenia aplikacji z wykorzystaniem t1lib.
150
151 %description devel -l pt_BR.UTF-8
152 Arquivos de inclusão para o desenvolvimento de programas t1lib.
153
154 %description devel -l ru.UTF-8
155 Файлы необходимые для компиляции использующих t1lib пакетов.
156
157 %description devel -l uk.UTF-8
158 Файли потрібні для компіляції пакетів, що використовують t1lib.
159
160 %package static
161 Summary:        Static t1lib library
162 Summary(pl.UTF-8):      Biblioteka statyczna t1lib
163 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com t1lib
164 Group:          Development/Libraries
165 Requires:       %{name}-devel = %{version}-%{release}
166
167 %description static
168 Static t1lib library.
169
170 %description static -l pl.UTF-8
171 Biblioteka statyczna t1lib.
172
173 %description static -l pt_BR.UTF-8
174 Bibliotecas estáticas para desenvolvimento com t1lib
175
176 %description static -l ru.UTF-8
177 Статическая библиотека для программирования с t1lib.
178
179 %description static -l uk.UTF-8
180 Статична бібліотека для програмування з t1lib.
181
182 %package doc
183 Summary:        Manual for t1lib
184 Summary(fr.UTF-8):      Documentation pour t1lib
185 Summary(it.UTF-8):      Documentazione di t1lib
186 Summary(pl.UTF-8):      Podręcznik dla t1lib
187 Group:          Documentation
188
189 %description doc
190 Documentation for t1lib.
191
192 %description doc -l fr.UTF-8
193 Documentation pour t1lib.
194
195 %description doc -l it.UTF-8
196 Documentazione di t1lib.
197
198 %package x
199 Summary:        libt1x library (X11 XImage interface)
200 Summary(pl.UTF-8):      Biblioteka libt1x (interfejs X11 XImage)
201 Group:          X11/Libraries
202 Requires:       %{name} = %{version}-%{release}
203
204 %description x
205 libt1x is a library of functions for generating glyphs with data in
206 X11 XImage format.
207
208 %description x -l pl.UTF-8
209 libt1x to biblioteka funkcjo do generowania glifów z danymi w formacie
210 X11 XImage.
211
212 %package x-devel
213 Summary:        Header file for libt1x library
214 Summary(pl.UTF-8):      Plik nagłówkowy biblioteki libt1x
215 Group:          X11/Development/Libraries
216 Requires:       %{name}-devel = %{version}-%{release}
217 Requires:       %{name}-x = %{version}-%{release}
218 Requires:       xorg-lib-libX11-devel
219
220 %description x-devel
221 Header file for libt1x library.
222
223 %description x-devel -l pl.UTF-8
224 Plik nagłówkowy biblioteki libt1x.
225
226 %package x-static
227 Summary:        Static libt1x library
228 Summary(pl.UTF-8):      Statyczna biblioteka libt1x
229 Group:          X11/Development/Libraries
230 Requires:       %{name}-x-devel = %{version}-%{release}
231
232 %description x-static
233 Static libt1x library.
234
235 %description x-static -l pl.UTF-8
236 Statyczna biblioteka libt1x.
237
238 %package fonts
239 Summary:        Type 1 fonts
240 Summary(pl.UTF-8):      Fonty Type 1
241 Group:          Fonts
242 Requires(post,postun):  fontpostinst >= 0.1-6
243 Requires:       %{_fontsdir}/Type1
244
245 %description fonts
246 Type 1 fonts.
247
248 %description fonts -l pl.UTF-8
249 Zestaw fontów Type 1.
250
251 %package xglyph
252 Summary:        Test program for t1lib with X11 interface
253 Summary(pl.UTF-8):      Program testowy dla t1lib z interfejsem X11
254 Group:          X11/Applications
255 Requires:       %{name}-x = %{version}-%{release}
256
257 %description xglyph
258 Test program for t1lib with X11 interface.
259
260 %description xglyph -l pl.UTF-8
261 Program testowy dla t1lib z interfejsem X11.
262
263 %prep
264 %setup -q
265 %patch0 -p0
266 %patch1 -p0
267 %patch2 -p1
268 %patch3 -p1
269 %patch4 -p1
270 %patch5 -p1
271 %patch6 -p1
272 %patch7 -p1
273 %patch8 -p1
274
275 rm -f ac-tools/aclocal.m4
276
277 %build
278 %{__libtoolize}
279 %{__aclocal} -I ac-tools
280 %{__autoconf}
281 %configure
282
283 %{__make} %{!?with_doc:without_doc}
284
285 %install
286 rm -rf $RPM_BUILD_ROOT
287 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir},%{_includedir}} \
288         $RPM_BUILD_ROOT{%{_t1fontsdir},%{_t1afmdir}} \
289         $RPM_BUILD_ROOT%{_mandir}/man{1,5,8}
290
291 %{__make} install \
292         DESTDIR=$RPM_BUILD_ROOT
293
294 cp -a Fonts/enc $RPM_BUILD_ROOT%{_datadir}/%{name}
295 cp -a Fonts/afm/*.afm $RPM_BUILD_ROOT%{_t1afmdir}
296 cp -a Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_t1fontsdir}
297 cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_t1fontsdir}/Fontmap.%{name}-fonts
298 cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_t1fontsdir}/fonts.scale.%{name}-fonts
299
300 install -p %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}
301
302 > $RPM_BUILD_ROOT%{_datadir}/%{name}/FontDatabase
303
304 for sec in 1 5; do
305         cp -a debian/*.${sec} $RPM_BUILD_ROOT%{_mandir}/man${sec}
306 done
307 cp -a %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8
308
309 # let autodeps work
310 chmod 755 $RPM_BUILD_ROOT%{_libdir}/lib*.so*
311
312 %clean
313 rm -rf $RPM_BUILD_ROOT
314
315 %post
316 /sbin/ldconfig
317 fontpostinst Type1
318
319 %postun -p /sbin/ldconfig
320
321 %post   x -p /sbin/ldconfig
322 %postun x -p /sbin/ldconfig
323
324 %post fonts
325 fontpostinst Type1
326
327 %postun fonts
328 fontpostinst Type1
329
330 %files
331 %defattr(644,root,root,755)
332 %doc Changes README.t1*
333 %attr(755,root,root) %{_bindir}/type1afm
334 %attr(755,root,root) %{_bindir}/t1libconfig
335 %attr(755,root,root) %{_libdir}/libt1.so.*.*.*
336 %attr(755,root,root) %ghost %{_libdir}/libt1.so.5
337 %dir %{_datadir}/%{name}
338 %{_datadir}/%{name}/enc
339 %ghost %{_datadir}/%{name}/t1lib.config
340 %ghost %{_datadir}/%{name}/FontDatabase
341 %{_mandir}/man1/type1afm.1*
342 %{_mandir}/man5/FontDatabase.5*
343 %{_mandir}/man8/t1libconfig.8*
344
345 %files devel
346 %defattr(644,root,root,755)
347 %attr(755,root,root) %{_libdir}/libt1.so
348 %{_libdir}/libt1.la
349 %{_includedir}/t1lib.h
350
351 %files static
352 %defattr(644,root,root,755)
353 %{_libdir}/libt1.a
354
355 %if %{with doc}
356 %files doc
357 %defattr(644,root,root,755)
358 %doc doc/*.{tex,eps,fig} %{?with_doc:doc/*.dvi}
359 %endif
360
361 %files x
362 %defattr(644,root,root,755)
363 %attr(755,root,root) %{_libdir}/libt1x.so.*.*.*
364 %attr(755,root,root) %ghost %{_libdir}/libt1x.so.5
365
366 %files x-devel
367 %defattr(644,root,root,755)
368 %attr(755,root,root) %{_libdir}/libt1x.so
369 %{_libdir}/libt1x.la
370 %{_includedir}/t1libx.h
371
372 %files x-static
373 %defattr(644,root,root,755)
374 %{_libdir}/libt1x.a
375
376 %files fonts
377 %defattr(644,root,root,755)
378 %{_t1fontsdir}/*.pfb
379 %{_t1afmdir}/*.afm
380 %{_t1fontsdir}/*.%{name}-fonts
381
382 %files xglyph
383 %defattr(644,root,root,755)
384 %attr(755,root,root) %{_bindir}/xglyph
385 %{_mandir}/man1/xglyph.1*
This page took 0.059177 seconds and 3 git commands to generate.