]> git.pld-linux.org Git - packages/t1lib.git/blob - t1lib.spec
- removed empty Group(de).
[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:        5
5 License:        LGPL
6 Group:          Libraries
7 Group(de):      Libraries
8 Group(fr):      Librairies
9 Group(pl):      Biblioteki
10 Source0:        ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
11 Patch0:         %{name}-DESTDIR.patch
12 Patch1:         %{name}-doc.patch
13 Patch2:         %{name}-config.patch
14 URL:            http://www.windowmaker.org/
15 BuildRequires:  XFree86-devel
16 BuildRequires:  tetex
17 BuildRequires:  tetex-latex
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _fontdir        /usr/share/fonts
21
22 %description
23 t1lib is a library distributed under the GNU General Public Library
24 License for generating character- and string-glyphs from Adobe Type 1
25 fonts under UNIX. t1lib uses most of the code of the X11 rasterizer
26 donated by IBM to the X11-project. But some disadvantages of the
27 rasterizer being included in X11 have been eliminated. Here are some
28 of the features:
29 - t1lib is completely independent of X11 (although the program
30   provided for testing the library needs X11)
31 - fonts are made known to library by means of a font database file at
32   runtime
33 - searchpaths for all types of input files are configured by means of
34   a configuration file at runtime
35 - characters are rastered as they are needed
36 - characters and complete strings may be rastered by a simple function
37   call
38 - when rastering strings, pairwise kerning information from .afm-files
39   may optionally be taken into account
40 - an interface to ligature-information of afm-files is provided
41 - a program to generate afm-files from Type 1 font files is included
42 - rotation is supported at any angles
43 - there's support for extending and slanting fonts
44 - underlining, overlining and overstriking is supported
45 - new encoding vectors may be loaded at runtime and fonts may be
46   reencoded using these encoding vectors
47 - antialiasing is implemented using three gray-levels between black
48   and white
49 - An interactive test program called "xglyph" is included in the
50   distribution. This program allows to test all of the features of the
51   library. It requires X11.
52
53 %package fonts
54 Summary:        Type 1 fonts
55 Summary(pl):    Fonty Type 1
56 Group:          X11/Fonts
57 Group(pl):      X11/Fonty
58 Requires:       %{name} = %{version}
59 Prereq:         type1inst >= 0.6.1
60
61 %description fonts
62 Type 1 fonts.
63
64 %description fonts -l pl
65 Zestaw fontów Type 1.
66
67 %package devel
68 Summary:        Development files for t1lib
69 Summary(pl):    Pliki nag³ówkowe i biblioteki dla t1lib
70 Group:          Development/Libraries
71 Group(de):      Entwicklung/Libraries
72 Group(fr):      Development/Librairies
73 Group(pl):      Programowanie/Biblioteki
74 Requires:       %{name} = %{version}
75 Prereq:         type1inst
76
77 %description devel
78 The files needed for developing applications using t1lib.
79
80 %description devel -l pl
81 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
82
83 %package static
84 Summary:        Static libraries for t1lib
85 Summary(pl):    Biblioteki statyczne dla t1lib
86 Group:          Development/Libraries
87 Group(de):      Entwicklung/Libraries
88 Group(fr):      Development/Librairies
89 Group(pl):      Programowanie/Biblioteki
90 Requires:       %{name}-devel = %{version}
91
92 %description static
93 Static libraries for t1lib.
94
95 %description devel -l pl
96 Biblioteki statyczne dla t1lib.
97
98 %package xglyph
99 Summary:        Test program for t1lib with X11 interface
100 Summary:        Program testowy dla t1lib z interfejsem X11
101 Group:          X11/Applications
102 Group(de):      X11/Applikationen
103 Group(pl):      X11/Aplikacje
104 Requires:       %{name}-devel = %{version}
105
106 %description xglyph
107 Test program for t1lib with X11 interface.
108
109 %description xglyph -l pl
110 Program testowy dla t1lib z interfejsem X11.
111
112 %prep
113 %setup -q -n T1-%{version}
114 %patch0 -p1
115 %patch1 -p0
116 %patch2 -p0
117
118 %build
119 autoconf
120 %configure
121
122 %{__make}
123
124 %install
125 rm -rf $RPM_BUILD_ROOT
126 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
127         $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm} \
128         $RPM_BUILD_ROOT/usr/X11R6/bin
129
130 %{__make} install DESTDIR=$RPM_BUILD_ROOT
131
132 install Fonts/afm/*.afm         $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
133 install Fonts/type1/*.pfb       $RPM_BUILD_ROOT%{_fontdir}/Type1
134 cp -a Fonts/enc                 $RPM_BUILD_ROOT%{_datadir}/%{name}
135
136 mv -f $RPM_BUILD_ROOT%{_bindir}/xglyph $RPM_BUILD_ROOT/usr/X11R6/bin
137
138 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so.*.*
139
140 gzip -9nf Changes README.t1* doc/*.dvi
141
142 %post   -p /sbin/ldconfig
143 %postun -p /sbin/ldconfig
144
145 %post fonts
146 cd %{_fontdir}/Type1
147 /usr/bin/type1inst -nolog -q
148
149 %postun fonts
150 cd %{_fontdir}/Type1
151 /usr/bin/type1inst -nolog -q
152
153 %clean
154 rm -rf $RPM_BUILD_ROOT
155
156 %files
157 %defattr(644,root,root,755)
158 %doc {Changes,README.t1*,doc/*.dvi}.gz 
159 %doc doc/*.{tex,eps,fig}
160
161 %attr(755,root,root) %{_bindir}/type1afm
162 %attr(755,root,root) %{_libdir}/*.so.*.*
163
164 %dir %{_datadir}/%{name}
165 %{_datadir}/%{name}/enc
166
167 %config(noreplace) %{_datadir}/%{name}/t1lib.config
168
169 %files fonts
170 %defattr(644,root,root,755)
171 %{_fontdir}/Type1/afm/*
172 %{_fontdir}/Type1/*.pfb
173
174 %files devel
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_libdir}/*.so
177 %attr(755,root,root) %{_libdir}/*.la
178 %{_includedir}/*
179
180 %files static
181 %defattr(644,root,root,755)
182 %{_libdir}/*.a
183
184 %files xglyph
185 %defattr(644,root,root,755)
186 %attr(755,root,root) /usr/X11R6/bin/xglyph
This page took 0.149336 seconds and 3 git commands to generate.