]> git.pld-linux.org Git - packages/t1lib.git/blob - t1lib.spec
- adapterized.
[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(de):      
58 Group(pl):      X11/Fonty
59 Requires:       %{name} = %{version}
60 Prereq:         type1inst >= 0.6.1
61
62 %description fonts
63 Type 1 fonts.
64
65 %description fonts -l pl
66 Zestaw fontów Type 1.
67
68 %package devel
69 Summary:        Development files for t1lib
70 Summary(pl):    Pliki nag³ówkowe i biblioteki dla t1lib
71 Group:          Development/Libraries
72 Group(de):      Entwicklung/Libraries
73 Group(fr):      Development/Librairies
74 Group(pl):      Programowanie/Biblioteki
75 Requires:       %{name} = %{version}
76 Prereq:         type1inst
77
78 %description devel
79 The files needed for developing applications using t1lib.
80
81 %description devel -l pl
82 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
83
84 %package static
85 Summary:        Static libraries for t1lib
86 Summary(pl):    Biblioteki statyczne dla t1lib
87 Group:          Development/Libraries
88 Group(de):      Entwicklung/Libraries
89 Group(fr):      Development/Librairies
90 Group(pl):      Programowanie/Biblioteki
91 Requires:       %{name}-devel = %{version}
92
93 %description static
94 Static libraries for t1lib.
95
96 %description devel -l pl
97 Biblioteki statyczne dla t1lib.
98
99 %package xglyph
100 Summary:        Test program for t1lib with X11 interface
101 Summary:        Program testowy dla t1lib z interfejsem X11
102 Group:          X11/Applications
103 Group(de):      X11/Applikationen
104 Group(pl):      X11/Aplikacje
105 Requires:       %{name}-devel = %{version}
106
107 %description xglyph
108 Test program for t1lib with X11 interface.
109
110 %description xglyph -l pl
111 Program testowy dla t1lib z interfejsem X11.
112
113 %prep
114 %setup -q -n T1-%{version}
115 %patch0 -p1
116 %patch1 -p0
117 %patch2 -p0
118
119 %build
120 autoconf
121 %configure
122
123 %{__make}
124
125 %install
126 rm -rf $RPM_BUILD_ROOT
127 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
128         $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm} \
129         $RPM_BUILD_ROOT/usr/X11R6/bin
130
131 %{__make} install DESTDIR=$RPM_BUILD_ROOT
132
133 install Fonts/afm/*.afm         $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
134 install Fonts/type1/*.pfb       $RPM_BUILD_ROOT%{_fontdir}/Type1
135 cp -a Fonts/enc                 $RPM_BUILD_ROOT%{_datadir}/%{name}
136
137 mv -f $RPM_BUILD_ROOT%{_bindir}/xglyph $RPM_BUILD_ROOT/usr/X11R6/bin
138
139 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so.*.*
140
141 gzip -9nf Changes README.t1* doc/*.dvi
142
143 %post   -p /sbin/ldconfig
144 %postun -p /sbin/ldconfig
145
146 %post fonts
147 cd %{_fontdir}/Type1
148 /usr/bin/type1inst -nolog -q
149
150 %postun fonts
151 cd %{_fontdir}/Type1
152 /usr/bin/type1inst -nolog -q
153
154 %clean
155 rm -rf $RPM_BUILD_ROOT
156
157 %files
158 %defattr(644,root,root,755)
159 %doc {Changes,README.t1*,doc/*.dvi}.gz 
160 %doc doc/*.{tex,eps,fig}
161
162 %attr(755,root,root) %{_bindir}/type1afm
163 %attr(755,root,root) %{_libdir}/*.so.*.*
164
165 %dir %{_datadir}/%{name}
166 %{_datadir}/%{name}/enc
167
168 %config(noreplace) %{_datadir}/%{name}/t1lib.config
169
170 %files fonts
171 %defattr(644,root,root,755)
172 %{_fontdir}/Type1/afm/*
173 %{_fontdir}/Type1/*.pfb
174
175 %files devel
176 %defattr(644,root,root,755)
177 %attr(755,root,root) %{_libdir}/*.so
178 %attr(755,root,root) %{_libdir}/*.la
179 %{_includedir}/*
180
181 %files static
182 %defattr(644,root,root,755)
183 %{_libdir}/*.a
184
185 %files xglyph
186 %defattr(644,root,root,755)
187 %attr(755,root,root) /usr/X11R6/bin/xglyph
This page took 0.038673 seconds and 3 git commands to generate.