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