1 Summary: A library for character- and string-glyphs from Adobe Type 1 fonts
9 Source0: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
10 Patch0: t1lib-DESTDIR.patch
11 Patch1: t1lib-doc.patch
12 Patch2: t1lib-config.patch
13 URL: http://www.windowmaker.org/
14 BuildRequires: XFree86-devel
16 BuildRequires: tetex-latex
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _fontdir /usr/share/fonts
22 t1lib is a library distributed under the GNU General Public Library
23 License for generating character- and string-glyphs from Adobe Type 1
24 fonts under UNIX. t1lib uses most of the code of the X11 rasterizer
25 donated by IBM to the X11-project. But some disadvantages of the
26 rasterizer being included in X11 have been eliminated. Here are some
28 - t1lib is completely independent of X11 (although the program
29 provided for testing the library needs X11)
30 - fonts are made known to library by means of a font database file at
32 - searchpaths for all types of input files are configured by means of
33 a configuration file at runtime
34 - characters are rastered as they are needed
35 - characters and complete strings may be rastered by a simple function
37 - when rastering strings, pairwise kerning information from .afm-files
38 may optionally be taken into account
39 - an interface to ligature-information of afm-files is provided
40 - a program to generate afm-files from Type 1 font files is included
41 - rotation is supported at any angles
42 - there's support for extending and slanting fonts
43 - underlining, overlining and overstriking is supported
44 - new encoding vectors may be loaded at runtime and fonts may be
45 reencoded using these encoding vectors
46 - antialiasing is implemented using three gray-levels between black
48 - An interactive test program called "xglyph" is included in the
49 distribution. This program allows to test all of the features of the
50 library. It requires X11.
54 Summary(pl): Fonty Type 1
57 Requires: %{name} = %{version}
58 Prereq: type1inst >= 0.6.1
63 %description fonts -l pl
67 Summary: Development files for t1lib
68 Summary(pl): Pliki nag³ówkowe i biblioteki dla t1lib
69 Group: Development/Libraries
70 Group(fr): Development/Librairies
71 Group(pl): Programowanie/Biblioteki
72 Requires: %{name} = %{version}
76 The files needed for developing applications using t1lib.
78 %description devel -l pl
79 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
82 Summary: Static libraries for t1lib
83 Summary(pl): Biblioteki statyczne dla t1lib
84 Group: Development/Libraries
85 Group(fr): Development/Librairies
86 Group(pl): Programowanie/Biblioteki
87 Requires: %{name}-devel = %{version}
90 Static libraries for t1lib.
92 %description devel -l pl
93 Biblioteki statyczne dla t1lib.
96 Summary: Test program for t1lib with X11 interface
97 Summary: Program testowy dla t1lib z interfejsem X11
98 Group: X11/Applications
99 Group(pl): X11/Aplikacje
100 Requires: %{name}-devel = %{version}
103 Test program for t1lib with X11 interface.
105 %description xglyph -l pl
106 Program testowy dla t1lib z interfejsem X11.
109 %setup -q -n T1-%{version}
116 LDFLAGS="-s"; export LDFLAGS
122 rm -rf $RPM_BUILD_ROOT
123 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
124 $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm} \
125 $RPM_BUILD_ROOT/usr/X11R6/bin
127 %{__make} install DESTDIR=$RPM_BUILD_ROOT
129 install Fonts/afm/*.afm $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
130 install Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_fontdir}/Type1
131 cp -a Fonts/enc $RPM_BUILD_ROOT%{_datadir}/%{name}
133 mv $RPM_BUILD_ROOT{%{_bindir}/xglyph,/usr/X11R6/bin}
135 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so.*.*
137 gzip -9nf Changes README.t1* doc/*.dvi
139 %post -p /sbin/ldconfig
140 %postun -p /sbin/ldconfig
144 %{_bindir}/type1inst -nolog -q
148 %{_bindir}/type1inst -nolog -q
151 rm -r $RPM_BUILD_ROOT
154 %defattr(644,root,root,755)
155 %doc {Changes,README.t1*,doc/*.dvi}.gz
156 %doc doc/*.{tex,eps,fig}
158 %attr(755,root,root) %{_bindir}/type1afm
159 %attr(755,root,root) %{_libdir}/*.so.*.*
161 %dir %{_datadir}/%{name}
162 %{_datadir}/%{name}/enc
164 %config(noreplace) %{_datadir}/%{name}/t1lib.config
167 %defattr(644,root,root,755)
168 %{_fontdir}/Type1/afm/*
169 %{_fontdir}/Type1/*.pfb
172 %defattr(644,root,root,755)
173 %attr(755,root,root) %{_libdir}/*.so
174 %attr(755,root,root) %{_libdir}/*.la
178 %defattr(644,root,root,755)
182 %defattr(644,root,root,755)
183 %attr(755,root,root) /usr/X11R6/bin/xglyph