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