]> git.pld-linux.org Git - packages/t1lib.git/blob - t1lib.spec
- xglyph moved to separate package - now main package doesn't depend on X11.
[packages/t1lib.git] / t1lib.spec
1 Summary:        A library for character- and string-glyphs from Adobe Type 1 fonts
2 Name:           t1lib
3 Version:        1.0.1
4 Release:        3
5 License:        LGPL
6 Group:          Libraries
7 Group(fr):      Librairies
8 Group(pl):      Biblioteki
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
15 BuildRequires:  tetex
16 BuildRequires:  tetex-latex
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _fontdir        /usr/share/fonts
20
21 %description
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
27 of the features:
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
31   runtime
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
36   call
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
47   and white
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.
51
52 %package fonts
53 Summary:        Type 1 fonts
54 Summary(pl):    Fonty Type 1
55 Group:          X11/Fonts
56 Group(pl):      X11/Fonty
57 Requires:       %{name} = %{version}
58 Requires:       type1inst >= 0.6.1
59
60 %description fonts
61 Type 1 fonts.
62
63 %description fonts -l pl
64 Zestaw fontów Type 1.
65
66 %package devel
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}
73
74 %description devel
75 The files needed for developing applications using t1lib.
76
77 %description devel -l pl
78 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
79
80 %package static
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}
87
88 %description static
89 Static libraries for t1lib.
90
91 %description devel -l pl
92 Biblioteki statyczne dla t1lib.
93
94 %package xglyph
95 Summary:        Test program for t1lib with X11 interface
96 Summary:        Program testowy dla t1lib z interfejsem X11
97 Group:          X11/Applications
98 Group(pl):      X11/Aplikacje
99 Requires:       %{name}-devel = %{version}
100
101 %description xglyph
102 Test program for t1lib with X11 interface.
103
104 %description xglyph -l pl
105 Program testowy dla t1lib z interfejsem X11.
106
107 %prep
108 %setup -q -n T1-%{version}
109 %patch0 -p1
110 %patch1 -p0
111 %patch2 -p0
112
113 %build
114 autoconf
115 LDFLAGS="-s"; export LDFLAGS
116 %configure
117
118 %{__make}
119
120 %install
121 rm -rf $RPM_BUILD_ROOT
122 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
123         $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm} \
124         $RPM_BUILD_ROOT/usr/X11R6/bin
125
126 %{__make} install DESTDIR=$RPM_BUILD_ROOT
127
128 install Fonts/afm/*.afm         $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
129 install Fonts/type1/*.pfb       $RPM_BUILD_ROOT%{_fontdir}/Type1
130 cp -a Fonts/enc                 $RPM_BUILD_ROOT%{_datadir}/%{name}
131
132 mv $RPM_BUILD_ROOT{%{_bindir}/xglyph,/usr/X11R6/bin}
133
134 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so.*.*
135
136 gzip -9nf Changes README.t1* doc/*.dvi
137
138 %post   -p /sbin/ldconfig
139 %postun -p /sbin/ldconfig
140
141 %post fonts
142 cd %{_fontdir}/Type1
143 %{_bindir}/type1inst -nolog
144
145 %postun fonts
146 cd %{_fontdir}/Type1
147 %{_bindir}/type1inst -nolog
148
149 %clean
150 rm -r $RPM_BUILD_ROOT
151
152 %files
153 %defattr(644,root,root,755)
154 %doc {Changes,README.t1*,doc/*.dvi}.gz 
155 %doc doc/*.{tex,eps,fig}
156
157 %attr(755,root,root) %{_bindir}/type1afm
158 %attr(755,root,root) %{_libdir}/*.so.*.*
159
160 %dir %{_datadir}/%{name}
161 %{_datadir}/%{name}/enc
162
163 %config(noreplace) %{_datadir}/%{name}/t1lib.config
164
165 %files fonts
166 %defattr(644,root,root,755)
167 %{_fontdir}/Type1/afm/*
168 %{_fontdir}/Type1/*.pfb
169
170 %files devel
171 %defattr(644,root,root,755)
172 %attr(755,root,root) %{_libdir}/*.so
173 %attr(755,root,root) %{_libdir}/*.la
174 %{_includedir}/*
175
176 %files static
177 %defattr(644,root,root,755)
178 %{_libdir}/*.a
179
180 %files xglyph
181 %defattr(644,root,root,755)
182 %attr(755,root,root) /usr/X11R6/bin/xglyph
This page took 0.041098 seconds and 4 git commands to generate.