]> git.pld-linux.org Git - packages/t1lib.git/blob - t1lib.spec
- small fixes in %install
[packages/t1lib.git] / t1lib.spec
1 Summary:        A library for character- and string-glyphs from Adobe Type 1 fonts.
2 Name:           t1lib
3 Version:        0.9.2
4 Release:        1
5 Group:          Libraries
6 Group(pl):      Biblioteki
7 License:        LGPL
8 Source:         ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
9 Patch0:         t1lib-DESTDIR.patch
10 Patch1:         t1lib-doc.patch
11 Patch2:         t1lib-datadir.patch
12 Patch3:         t1lib-config.patch
13 URL:            http://www.windowmaker.org/
14 BuildRequires:  XFree86-devel
15 BuildRequires:  tetex
16 BuildRequires:  tetex-latex
17 BuildRequires:  type1inst >= 0.6.1
18 BuildRoot:      /tmp/%{name}-%{version}-root
19
20 %define         _fontdir        /usr/share/fonts
21
22 %description
23 t1lib is a library distributed under the GNU General Public Library License
24 for generating character- and string-glyphs from Adobe Type 1 fonts under
25 UNIX. t1lib uses most of the code of the X11 rasterizer donated by IBM to
26 the X11-project. But some disadvantages of the rasterizer being included in
27 X11 have been eliminated. Here are some of the features:
28 - t1lib is completely independent of X11 (although the program provided for
29   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 a
33   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 and
47   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(pl):      Programowanie/Biblioteki
71 Requires:       %{name} = %{version}
72
73 %description devel
74 The files needed for developing applications using t1lib.
75
76 %description devel -l pl
77 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
78
79 %package static
80 Summary:        Static libraries for t1lib
81 Summary(pl):    Biblioteki statyczne dla t1lib
82 Group:          Development/Libraries
83 Group(pl):      Programowanie/Biblioteki
84 Requires:       %{name}-devel = %{version}
85
86 %description static
87 Static libraries for t1lib.
88
89 %description devel -l pl
90 Biblioteki statyczne dla t1lib.
91
92 %prep
93 %setup -q -n T1-%{version}
94 %patch0 -p0
95 %patch1 -p0
96 %patch2 -p0
97 %patch3 -p0
98
99 %build
100 autoconf
101 LDFLAGS="-s"; export LDFLAGS
102 %configure
103
104 make
105
106 %install
107 rm -rf $RPM_BUILD_ROOT
108 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir}/enc,%{_bindir}} \
109         $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm}
110
111 make install DESTDIR=$RPM_BUILD_ROOT
112
113 install Fonts/afm/*.afm         $RPM_BUILD_ROOT%{_fontdir}/Type1/afm
114 install Fonts/type1/*.pfb       $RPM_BUILD_ROOT%{_fontdir}/Type1
115 install Fonts/enc/*             $RPM_BUILD_ROOT%{_datadir}/%{name}/enc
116
117 gzip -9nf Changes README.t1* doc/*.dvi
118
119
120 %post   -p /sbin/ldconfig
121 %postun -p /sbin/ldconfig
122
123 %post fonts
124 cd %{_fontdir}/Type1
125 /usr/bin/type1inst -nogs -nolog
126
127 %postun fonts
128 cd %{_fontdir}/Type1
129 /usr/bin/type1inst -nogs -nolog
130
131 %clean
132 rm -r $RPM_BUILD_ROOT
133
134 %files
135 %defattr(644,root,root,755)
136 %doc {Changes,README.t1*,doc/*.dvi}.gz 
137 %doc doc/*.{tex,eps,fig}
138
139 %attr(755,root,root) %{_bindir}/*
140 %attr(755,root,root) %{_libdir}/*.so.*.*
141
142 %dir %{_datadir}/%{name}
143 %{_datadir}/%{name}/enc
144
145 %config(noreplace) %{_datadir}/%{name}/t1lib.config
146
147 %files fonts
148 %defattr(644,root,root,755)
149 %{_fontdir}/Type1/afm/*
150 %{_fontdir}/Type1/*.pfb
151
152 %files devel
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_libdir}/*.so
155 %attr(755,root,root) %{_libdir}/*.la
156 %{_includedir}/*
157
158 %files static
159 %defattr(644,root,root,755)
160 %{_libdir}/*.a
This page took 0.043554 seconds and 4 git commands to generate.