3 %bcond_without doc # do not build documentation with LaTeX
5 Summary: A library for character- and string-glyphs from Adobe Type 1 fonts
6 Summary(pl): Biblioteka znakowych i ³añcuchowych glifów z fontów Adobe Type 1
7 Summary(pt_BR): Rasterizador de fontes Type 1
8 Summary(ru): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× Type 1
9 Summary(uk): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔ¦× Type 1
15 Source0: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
16 # Source0-md5: a05bed4aa63637052e60690ccde70421
17 Source1: %{name}-fonts.Fontmap
18 Source2: %{name}-fonts.fonts.scale
19 Source3: %{name}config
20 Source4: %{name}config.8
21 Patch0: %{name}-DESTDIR.patch
22 Patch1: %{name}-doc.patch
23 Patch2: %{name}-config.patch
24 Patch3: %{name}-KernMapSize.patch
25 Patch4: %{name}-man.patch
26 Patch5: %{name}-xglyph.patch
27 Patch6: %{name}-link.patch
28 Patch7: %{name}-aclocal.patch
29 BuildRequires: autoconf
30 BuildRequires: automake
31 BuildRequires: libtool
32 BuildRequires: xorg-lib-libX11-devel
33 BuildRequires: xorg-lib-libXaw-devel
34 BuildRequires: xorg-lib-libXt-devel
36 BuildRequires: tetex-dvips
37 BuildRequires: tetex-format-latex
38 BuildRequires: tetex-latex
39 BuildRequires: tetex-makeindex
40 BuildRequires: tetex-tex-babel
42 Requires(post): fontpostinst >= 0.1-6
43 Obsoletes: libt1lib1.3.1
44 Obsoletes: libt1lib1.3.1-progs
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 %define _t1fontsdir %{_fontsdir}/Type1
48 %define _t1afmdir %{_t1fontsdir}/afm
50 %define specflags_ia32 -fomit-frame-pointer
53 t1lib is a library distributed under the GNU General Public Library
54 License for generating character- and string-glyphs from Adobe Type 1
55 fonts under UNIX. t1lib uses most of the code of the X11 rasterizer
56 donated by IBM to the X11-project. But some disadvantages of the
57 rasterizer being included in X11 have been eliminated. Here are some
59 - t1lib is completely independent of X11 (although the program
60 provided for testing the library needs X11)
61 - fonts are made known to library by means of a font database file at
63 - searchpaths for all types of input files are configured by means of
64 a configuration file at runtime
65 - characters are rastered as they are needed
66 - characters and complete strings may be rastered by a simple function
68 - when rastering strings, pairwise kerning information from .afm-files
69 may optionally be taken into account
70 - an interface to ligature-information of afm-files is provided
71 - a program to generate afm-files from Type 1 font files is included
72 - rotation is supported at any angles
73 - there's support for extending and slanting fonts
74 - underlining, overlining and overstriking is supported
75 - new encoding vectors may be loaded at runtime and fonts may be
76 reencoded using these encoding vectors
77 - antialiasing is implemented using three gray-levels between black
79 - An interactive test program called "xglyph" is included in the
80 distribution (as separate package). This program allows to test all of
81 the features of the library. It requires X11.
84 t1lib jest wypuszczon± na LGPL bibliotek± do generowania znakowych i
85 ³añcuchowych glifów z fontów Adobe Type 1. t1lib u¿ywa wiêkszo¶ci kodu
86 rasteryzera X11 (wspomaganego przez IBM), ale niektóre wady tego
87 rasteryzera zosta³y usuniête. Niektóre cechy t1lib:
88 - ca³kowita niezale¿no¶æ od X11 (tylko program dostarczony do testów
90 - fonty s± znane bibliotece poprzez dodanie do pliku z baz± danych o
91 fontach - w czasie uruchamiania
92 - ¶cie¿ki wyszukiwania wszystkich plików wej¶ciowych s± konfigurowalne
94 - znaki s± rasteryzowane kiedy s± potrzebne
95 - znaki i ca³kowite ³añcuchy mog± byæ zrasteryzowane prostym
97 - przy rasteryzacji ³añcuchów opcjonalnie mog± byæ brane pod uwagê
98 informacje o kerningu z plików .afm
99 - interfejs do informacji o ligaturach z plików .afm
100 - do³±czony program do generowania plików .afm z fontów Type 1
101 - obroty o dowolny k±t
102 - wsparcie do rozszerzania i pochylania znaków
103 - wsparcie dla podkre¶lania, nadkre¶lania, przekre¶lania
104 - nowe wektory kodowania mog± byæ wczytane w czasie dzia³ania i fonty
105 mog± byæ ponownie zakodowane przy u¿yciu tych wektorów
106 - antyaliasing zaimplementowany przy u¿yciu trzech stopni szaro¶ci
107 pomiêdzy czerni± a biel±
108 - interaktywny program testowy xglyph - w osobnym pakiecie (wymaga X).
110 %description -l pt_BR
111 Rasterizador de fontes Type 1 da Adobe.
114 T1lib - ÜÔÏ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÓÏÚÄÁÎÉÑ ÇÌÉÆÏ× ÓÉÍ×ÏÌÏ× É ÃÅÐÏÞÅË ÓÉÍ×ÏÌÏ×
115 ÉÚ ÛÒÉÆÔÏ× Adobe Type 1. T1lib ÉÓÐÏÌØÚÕÅÔ ËÏÄ ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÄÌÑ X11
116 ÐÏÄÁÒÅÎÎÏÇÏ ÆÉÒÍÏÊ IBM ÐÒÏÅËÔÕ X11. îÏ ÎÅËÏÔÏÒÙÅ ÎÅÄÏÓÔÁÔËÉ
117 ×ËÌÀÞÅÎÎÏÇÏ × X11 ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÂÙÌÉ ÕÓÔÒÁÎÅÎÙ. T1lib ×ËÌÀÞÁÅÔ ÔÁËÖÅ
118 ÐÏÄÄÅÒÖËÕ ÁÎÔÉÁÌÉÁÓÉÎÇÁ.
121 T1lib - ʦÂ̦ÏÔÅËÁ ÄÌÑ ÓÔ×ÏÒÅÎÎÎÑ ÇÌ¦Æ¦× ÓÉÍ×ÏÌ¦× ÔÁ ÌÁÎÃÀÖ˦×
122 ÓÉÍ×ÏÌ¦× Ú ÛÒÉÆÔ¦× Adobe Type 1. T1lib ×ÉËÏÒÉÓÔÏ×Õ¤ ËÏÄ ÒÁÓÔÅÒÉÚÁÔÏÒÁ
123 ÄÌÑ X11 ÐÏÄÁÒÏ×ÁÎÏÇÏ Æ¦ÒÍÏÀ IBM ÐÒÏÅËÔÕ X11. áÌÅ ÄÅÑ˦ ÎÅÄÏ̦ËÉ
124 ×ËÌÀÞÅÎÏÇÏ × X11 ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÂÕÌÉ ÐÒÉÂÒÁΦ. T1lib ÔÁËÏÖ ×ËÌÀÞÁ¤
125 ЦÄÔÒÉÍËÕ ÁÎÔÉÁ̦ÁÓÉÎÇÁ.
128 Summary: Type 1 fonts
129 Summary(pl): Fonty Type 1
131 Requires(post,postun): fontpostinst >= 0.1-6
132 Requires: %{_fontsdir}/Type1
137 %description fonts -l pl
138 Zestaw fontów Type 1.
141 Summary: Development files for t1lib
142 Summary(pl): Pliki nag³ówkowe i biblioteki dla t1lib
143 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o desenvolvimento com a T1lib
144 Summary(ru): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× Type 1 - ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ
145 Summary(uk): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔ¦× Type 1 - ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ
146 Group: Development/Libraries
147 Requires: %{name} = %{version}-%{release}
148 Obsoletes: libt1lib1.3.1-devel
151 The files needed for developing applications using t1lib.
153 %description devel -l pl
154 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
156 %description devel -l pt_BR
157 Arquivos de inclusão e bibliotecas para o desenvolvimento de programas
160 %description devel -l ru
161 æÁÊÌÙ ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ËÏÍÐÉÌÑÃÉÉ ÉÓÐÏÌØÚÕÀÝÉÈ t1lib ÐÁËÅÔÏ×.
163 %description devel -l uk
164 æÁÊÌÉ ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑæ§ ÐÁËÅÔ¦×, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ t1lib.
167 Summary: Static libraries for t1lib
168 Summary(pl): Biblioteki statyczne dla t1lib
169 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com t1lib
170 Group: Development/Libraries
171 Requires: %{name}-devel = %{version}-%{release}
174 Static libraries for t1lib.
176 %description static -l pl
177 Biblioteki statyczne dla t1lib.
179 %description static -l pt_BR
180 Bibliotecas estáticas para desenvolvimento com t1lib
182 %description static -l ru
183 óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó t1lib.
185 %description static -l uk
186 óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú t1lib.
189 Summary: Test program for t1lib with X11 interface
190 Summary(pl): Program testowy dla t1lib z interfejsem X11
191 Group: X11/Applications
192 Requires: %{name}-devel = %{version}-%{release}
195 Test program for t1lib with X11 interface.
197 %description xglyph -l pl
198 Program testowy dla t1lib z interfejsem X11.
211 rm -f ac-tools/aclocal.m4
215 %{__aclocal} -I ac-tools
219 %{__make} %{!?with_doc:without_doc}
222 rm -rf $RPM_BUILD_ROOT
223 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir},%{_includedir}} \
224 $RPM_BUILD_ROOT{%{_t1fontsdir},%{_t1afmdir}} \
225 $RPM_BUILD_ROOT%{_mandir}/man{1,5,8}
228 DESTDIR=$RPM_BUILD_ROOT
230 cp -a Fonts/enc $RPM_BUILD_ROOT%{_datadir}/%{name}
231 install Fonts/afm/*.afm $RPM_BUILD_ROOT%{_t1afmdir}
232 install Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_t1fontsdir}
233 install %{SOURCE1} $RPM_BUILD_ROOT%{_t1fontsdir}/Fontmap.%{name}-fonts
234 install %{SOURCE2} $RPM_BUILD_ROOT%{_t1fontsdir}/fonts.scale.%{name}-fonts
236 install %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}
238 > $RPM_BUILD_ROOT%{_datadir}/%{name}/FontDatabase
241 install debian/*.${sec} $RPM_BUILD_ROOT%{_mandir}/man${sec}
243 install %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8
246 rm -rf $RPM_BUILD_ROOT
252 %postun -p /sbin/ldconfig
261 %defattr(644,root,root,755)
262 %doc Changes README.t1*
266 %doc doc/*.{tex,eps,fig}
268 %attr(755,root,root) %{_bindir}/type1afm
269 %attr(755,root,root) %{_bindir}/t1libconfig
270 %attr(755,root,root) %{_libdir}/*.so.*.*
272 %dir %{_datadir}/%{name}
273 %{_datadir}/%{name}/enc
275 %ghost %{_datadir}/%{name}/t1lib.config
276 %ghost %{_datadir}/%{name}/FontDatabase
279 %{_mandir}/man1/type1afm.1*
282 %defattr(644,root,root,755)
285 %{_t1fontsdir}/*.%{name}-fonts
288 %defattr(644,root,root,755)
289 %attr(755,root,root) %{_libdir}/*.so
294 %defattr(644,root,root,755)
298 %defattr(644,root,root,755)
299 %attr(755,root,root) %{_bindir}/xglyph
300 %{_mandir}/man1/xglyph.1*