]> git.pld-linux.org Git - packages/t1lib.git/blob - t1lib.spec
- more %%{__make} macros.
[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:        2
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 %prep
95 %setup -q -n T1-%{version}
96 %patch0 -p1
97 %patch1 -p0
98 %patch2 -p0
99
100 %build
101 autoconf
102 LDFLAGS="-s"; export LDFLAGS
103 %configure
104
105 %{__make}
106
107 %install
108 rm -rf $RPM_BUILD_ROOT
109 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir}} \
110         $RPM_BUILD_ROOT{%{_includedir},%{_fontdir}/Type1/afm}
111
112 %{__make} install DESTDIR=$RPM_BUILD_ROOT
113
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}
117
118 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/*.so.*.*
119
120 gzip -9nf Changes README.t1* doc/*.dvi
121
122 %post   -p /sbin/ldconfig
123 %postun -p /sbin/ldconfig
124
125 %post fonts
126 cd %{_fontdir}/Type1
127 %{_bindir}/type1inst -nolog
128
129 %postun fonts
130 cd %{_fontdir}/Type1
131 %{_bindir}/type1inst -nolog
132
133 %clean
134 rm -r $RPM_BUILD_ROOT
135
136 %files
137 %defattr(644,root,root,755)
138 %doc {Changes,README.t1*,doc/*.dvi}.gz 
139 %doc doc/*.{tex,eps,fig}
140
141 %attr(755,root,root) %{_bindir}/*
142 %attr(755,root,root) %{_libdir}/*.so.*.*
143
144 %dir %{_datadir}/%{name}
145 %{_datadir}/%{name}/enc
146
147 %config(noreplace) %{_datadir}/%{name}/t1lib.config
148
149 %files fonts
150 %defattr(644,root,root,755)
151 %{_fontdir}/Type1/afm/*
152 %{_fontdir}/Type1/*.pfb
153
154 %files devel
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_libdir}/*.so
157 %attr(755,root,root) %{_libdir}/*.la
158 %{_includedir}/*
159
160 %files static
161 %defattr(644,root,root,755)
162 %{_libdir}/*.a
This page took 0.068488 seconds and 4 git commands to generate.