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 Requires: 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}
75 The files needed for developing applications using t1lib.
77 %description devel -l pl
78 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
81 Summary: Static libraries for t1lib
82 Summary(pl): Biblioteki statyczne dla t1lib
83 Group: Development/Libraries
84 Group(fr): Development/Librairies
85 Group(pl): Programowanie/Biblioteki
86 Requires: %{name}-devel = %{version}
89 Static libraries for t1lib.
91 %description devel -l pl
92 Biblioteki statyczne dla t1lib.
95 %setup -q -n T1-%{version}
102 LDFLAGS="-s"; export LDFLAGS
108 rm -rf $RPM_BUILD_ROOT
109 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
110 $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm}
112 %{__make} install DESTDIR=$RPM_BUILD_ROOT
114 install Fonts/afm/*.afm $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
115 install Fonts/type1/*.pfb $RPM_BUILD_ROOT%{_fontdir}/Type1
116 cp -a Fonts/enc $RPM_BUILD_ROOT%{_datadir}/%{name}
118 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so.*.*
120 gzip -9nf Changes README.t1* doc/*.dvi
122 %post -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
127 %{_bindir}/type1inst -nolog
131 %{_bindir}/type1inst -nolog
134 rm -r $RPM_BUILD_ROOT
137 %defattr(644,root,root,755)
138 %doc {Changes,README.t1*,doc/*.dvi}.gz
139 %doc doc/*.{tex,eps,fig}
141 %attr(755,root,root) %{_bindir}/*
142 %attr(755,root,root) %{_libdir}/*.so.*.*
144 %dir %{_datadir}/%{name}
145 %{_datadir}/%{name}/enc
147 %config(noreplace) %{_datadir}/%{name}/t1lib.config
150 %defattr(644,root,root,755)
151 %{_fontdir}/Type1/afm/*
152 %{_fontdir}/Type1/*.pfb
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_libdir}/*.so
157 %attr(755,root,root) %{_libdir}/*.la
161 %defattr(644,root,root,755)