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