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