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