3 # _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: 6b5d79840ec2be72b506c12abb040a60
17 Source1: %{name}-fonts.Fontmap
18 Source2: %{name}-fonts.fonts.scale
19 Patch0: %{name}-DESTDIR.patch
20 Patch1: %{name}-doc.patch
21 Patch2: %{name}-config.patch
22 Patch4: %{name}-KernMapSize.patch
23 Patch5: %{name}-man.patch
24 Patch6: %{name}-%{name}config.patch
25 Patch7: %{name}-xglyph.patch
26 BuildRequires: XFree86-devel
27 BuildRequires: autoconf
28 BuildRequires: automake
29 BuildRequires: libtool
30 %if %{!?_without_doc:1}0
31 BuildRequires: tetex-dvips
32 BuildRequires: tetex-latex
33 BuildRequires: tetex-makeindex
34 BuildRequires: tetex-format-latex
35 BuildRequires: tetex-tex-babel
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 Obsoletes: libt1lib1.3.1
39 Obsoletes: libt1lib1.3.1-progs
41 %define _xbindir /usr/X11R6/bin
42 %define _t1fontsdir %{_fontsdir}/Type1
43 %define _t1afmdir %{_t1fontsdir}/afm
47 t1lib is a library distributed under the GNU General Public Library
48 License for generating character- and string-glyphs from Adobe Type 1
49 fonts under UNIX. t1lib uses most of the code of the X11 rasterizer
50 donated by IBM to the X11-project. But some disadvantages of the
51 rasterizer being included in X11 have been eliminated. Here are some
53 - t1lib is completely independent of X11 (although the program
54 provided for testing the library needs X11)
55 - fonts are made known to library by means of a font database file at
57 - searchpaths for all types of input files are configured by means of
58 a configuration file at runtime
59 - characters are rastered as they are needed
60 - characters and complete strings may be rastered by a simple function
62 - when rastering strings, pairwise kerning information from .afm-files
63 may optionally be taken into account
64 - an interface to ligature-information of afm-files is provided
65 - a program to generate afm-files from Type 1 font files is included
66 - rotation is supported at any angles
67 - there's support for extending and slanting fonts
68 - underlining, overlining and overstriking is supported
69 - new encoding vectors may be loaded at runtime and fonts may be
70 reencoded using these encoding vectors
71 - antialiasing is implemented using three gray-levels between black
73 - An interactive test program called "xglyph" is included in the
74 distribution (as separate package). This program allows to test all of
75 the features of the library. It requires X11.
78 t1lib jest wypuszczon± na LGPL bibliotek± do generowania znakowych i
79 ³añcuchowych glifów z fontów Adobe Type 1. t1lib u¿ywa wiêkszo¶ci kodu
80 rasteryzera X11 (wspomaganego przez IBM), ale niektóre wady tego
81 rasteryzera zosta³y usuniête. Niektóre cechy t1lib:
82 - ca³kowita niezale¿no¶æ od X11 (tylko program dostarczony do testów
84 - fonty s± znane bibliotece poprzez dodanie do pliku z baz± danych o
85 fontach - w czasie uruchamiania
86 - ¶cie¿ki wyszukiwania wszystkich plików wej¶ciowych s± konfigurowalne
88 - znaki s± rasteryzowane kiedy s± potrzebne
89 - znaki i ca³kowite ³añcuchy mog± byæ zrasteryzowane prostym
91 - przy rasteryzacji ³añcuchów opcjonalnie mog± byæ brane pod uwagê
92 informacje o kerningu z plików .afm
93 - interfejs do informacji o ligaturach z plików .afm
94 - do³±czony program do generowania plików .afm z fontów Type 1
95 - obroty o dowolny k±t
96 - wsparcie do rozszerzania i pochylania znaków
97 - wsparcie dla podkre¶lania, nadkre¶lania, przekre¶lania
98 - nowe wektory kodowania mog± byæ wczytane w czasie dzia³ania i fonty
99 mog± byæ ponownie zakodowane przy u¿yciu tych wektorów
100 - antyaliasing zaimplementowany przy u¿yciu trzech stopni szaaro¶ci
101 pomiêdzy czerni± a biel±
102 - interaktywny program testowy xglyph - w osobnym pakiecie (wymaga X).
104 %description -l pt_BR
105 Rasterizador de fontes Type 1 da Adobe.
108 T1lib - ÜÔÏ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÓÏÚÄÁÎÉÑ ÇÌÉÆÏ× ÓÉÍ×ÏÌÏ× É ÃÅÐÏÞÅË ÓÉÍ×ÏÌÏ×
109 ÉÚ ÛÒÉÆÔÏ× Adobe Type 1. T1lib ÉÓÐÏÌØÚÕÅÔ ËÏÄ ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÄÌÑ X11
110 ÐÏÄÁÒÅÎÎÏÇÏ ÆÉÒÍÏÊ IBM ÐÒÏÅËÔÕ X11. îÏ ÎÅËÏÔÏÒÙÅ ÎÅÄÏÓÔÁÔËÉ
111 ×ËÌÀÞÅÎÎÏÇÏ × X11 ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÂÙÌÉ ÕÓÔÒÁÎÅÎÙ. T1lib ×ËÌÀÞÁÅÔ ÔÁËÖÅ
112 ÐÏÄÄÅÒÖËÕ ÁÎÔÉÁÌÉÁÓÉÎÇÁ.
115 T1lib - ʦÂ̦ÏÔÅËÁ ÄÌÑ ÓÔ×ÏÒÅÎÎÎÑ ÇÌ¦Æ¦× ÓÉÍ×ÏÌ¦× ÔÁ ÌÁÎÃÀÖ˦×
116 ÓÉÍ×ÏÌ¦× Ú ÛÒÉÆÔ¦× Adobe Type 1. T1lib ×ÉËÏÒÉÓÔÏ×Õ¤ ËÏÄ ÒÁÓÔÅÒÉÚÁÔÏÒÁ
117 ÄÌÑ X11 ÐÏÄÁÒÏ×ÁÎÏÇÏ Æ¦ÒÍÏÀ IBM ÐÒÏÅËÔÕ X11. áÌÅ ÄÅÑ˦ ÎÅÄÏ̦ËÉ
118 ×ËÌÀÞÅÎÏÇÏ × X11 ÒÁÓÔÅÒÉÚÁÔÏÒÁ ÂÕÌÉ ÐÒÉÂÒÁΦ. T1lib ÔÁËÏÖ ×ËÌÀÞÁ¤
119 ЦÄÔÒÉÍËÕ ÁÎÔÉÁ̦ÁÓÉÎÇÁ.
122 Summary: Type 1 fonts
123 Summary(pl): Fonty Type 1
125 Requires(post,postun): fileutils
126 Requires(post,postun): textutils
131 %description fonts -l pl
132 Zestaw fontów Type 1.
135 Summary: Development files for t1lib
136 Summary(pl): Pliki nag³ówkowe i biblioteki dla t1lib
137 Summary(pt_BR): Arquivos de inclusão e bibliotecas para o desenvolvimento com a T1lib
138 Summary(ru): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔÏ× Type 1 - ÆÁÊÌÙ ÄÌÑ ÒÁÚÒÁÂÏÔËÉ ÐÒÏÇÒÁÍÍ
139 Summary(uk): òÁÓÔÅÒÉÚÁÔÏÒ ÛÒÉÆÔ¦× Type 1 - ÆÁÊÌÉ ÄÌÑ ÒÏÚÒÏÂËÉ ÐÒÏÇÒÁÍ
140 Group: Development/Libraries
141 Requires: %{name} = %{version}
142 Obsoletes: libt1lib1.3.1-devel
145 The files needed for developing applications using t1lib.
147 %description devel -l pl
148 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
150 %description devel -l pt_BR
151 Arquivos de inclusão e bibliotecas para o desenvolvimento de programas
154 %description devel -l ru
155 æÁÊÌÙ ÎÅÏÂÈÏÄÉÍÙÅ ÄÌÑ ËÏÍÐÉÌÑÃÉÉ ÉÓÐÏÌØÚÕÀÝÉÈ t1lib ÐÁËÅÔÏ×.
157 %description devel -l uk
158 æÁÊÌÉ ÐÏÔÒ¦ÂΦ ÄÌÑ ËÏÍЦÌÑæ§ ÐÁËÅÔ¦×, ÝÏ ×ÉËÏÒÉÓÔÏ×ÕÀÔØ t1lib.
161 Summary: Static libraries for t1lib
162 Summary(pl): Biblioteki statyczne dla t1lib
163 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com t1lib
164 Group: Development/Libraries
165 Requires: %{name}-devel = %{version}
168 Static libraries for t1lib.
170 %description static -l pl
171 Biblioteki statyczne dla t1lib.
173 %description static -l pt_BR
174 Bibliotecas estáticas para desenvolvimento com t1lib
176 %description static -l ru
177 óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÑ Ó t1lib.
179 %description static -l uk
180 óÔÁÔÉÞÎÁ ¦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁÍÕ×ÁÎÎÑ Ú t1lib.
183 Summary: Test program for t1lib with X11 interface
184 Summary(pl): Program testowy dla t1lib z interfejsem X11
185 Group: X11/Applications
186 Requires: %{name}-devel = %{version}
189 Test program for t1lib with X11 interface.
191 %description xglyph -l pl
192 Program testowy dla t1lib z interfejsem X11.
207 mv -f aclocal.m4 ac-tools
211 %{__make} %{?_without_doc:without_doc}
214 rm -rf $RPM_BUILD_ROOT
215 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
216 $RPM_BUILD_ROOT{%{_includedir},%{_xbindir}} \
217 $RPM_BUILD_ROOT{%{_t1fontsdir},%{_t1afmdir}} \
218 $RPM_BUILD_ROOT%{_mandir}/man{1,5,8}
220 %{__make} install DESTDIR=$RPM_BUILD_ROOT
222 cp -a Fonts/enc $RPM_BUILD_ROOT%{_datadir}/%{name}
223 install Fonts/afm/*.afm $RPM_BUILD_ROOT%{_t1afmdir}
224 install Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_t1fontsdir}
225 install %{SOURCE1} $RPM_BUILD_ROOT%{_t1fontsdir}/Fontmap.%{name}-fonts
226 install %{SOURCE2} $RPM_BUILD_ROOT%{_t1fontsdir}/fonts.scale.%{name}-fonts
228 install debian/t1libconfig $RPM_BUILD_ROOT%{_bindir}
230 touch $RPM_BUILD_ROOT%{_datadir}/%{name}/FontDatabase
232 for sec in 1 5 8 ; do
233 install debian/*.${sec} $RPM_BUILD_ROOT%{_mandir}/man${sec}
236 mv -f $RPM_BUILD_ROOT%{_bindir}/xglyph $RPM_BUILD_ROOT%{_xbindir}
239 rm -rf $RPM_BUILD_ROOT
241 %post -p /sbin/ldconfig
242 %postun -p /sbin/ldconfig
247 rm -f fonts.scale.bak Fontmap.bak
248 cat fonts.scale.* | sort -u > fonts.scale.tmp
249 cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale
250 cat fonts.scale.tmp >> fonts.scale
251 rm -f fonts.scale.tmp
252 ln -sf fonts.scale fonts.dir
253 cat Fontmap.* > Fontmap
258 rm -f fonts.scale.bak Fontmap.bak
259 cat fonts.scale.* 2>/dev/null | sort -u > fonts.scale.tmp
260 cat fonts.scale.tmp | wc -l | tr -d ' ' > fonts.scale
261 cat fonts.scale.tmp >> fonts.scale
262 rm -f fonts.scale.tmp
263 ln -sf fonts.scale fonts.dir
264 cat Fontmap.* > Fontmap 2>/dev/null
267 %defattr(644,root,root,755)
268 %doc Changes README.t1*
269 %if %{?_without_doc:0}%{!?_without_doc:1}
272 %doc doc/*.{tex,eps,fig}
274 %attr(755,root,root) %{_bindir}/type1afm
275 %attr(755,root,root) %{_bindir}/t1libconfig
276 %attr(755,root,root) %{_libdir}/*.so.*.*
278 %dir %{_datadir}/%{name}
279 %{_datadir}/%{name}/enc
281 %config(noreplace) %{_datadir}/%{name}/t1lib.config
282 %config(noreplace) %{_datadir}/%{name}/FontDatabase
285 %{_mandir}/man1/type1afm.1*
288 %defattr(644,root,root,755)
291 %{_t1fontsdir}/*.%{name}-fonts
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{_libdir}/*.so
300 %defattr(644,root,root,755)
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_xbindir}/xglyph
306 %{_mandir}/man1/xglyph.1*