]> git.pld-linux.org Git - packages/t1lib.git/blob - t1lib.spec
- switch to rpm 3.0.2
[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
4 Release:        1
5 Group:          Libraries
6 Group(pl):      Biblioteki
7 Copyright:      GPL
8 Source0:        ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
9 URL:            http://www.windowmaker.org/
10 Patch0:         t1lib-DESTDIR.patch
11 Patch1:         t1lib-doc.patch
12 BuildRequires:  XFree86-devel
13 BuildRequires:  tetex
14 BuildRequires:  tetex-latex
15 BuildRoot:      /tmp/%{name}-%{version}-root
16
17 %description
18 t1lib is a library distributed under the GNU General Public Library License
19 for generating character- and string-glyphs from Adobe Type 1 fonts under
20 UNIX. t1lib uses most of the code of the X11 rasterizer donated by IBM to
21 the X11-project. But some disadvantages of the rasterizer being included in
22 X11 have been eliminated. Here are some of the features:
23 - t1lib is completely independent of X11 (although the program provided for
24   testing the library needs X11)
25 - fonts are made known to library by means of a font database file at
26   runtime
27 - searchpaths for all types of input files are configured by means of a
28   configuration file at runtime
29 - characters are rastered as they are needed
30 - characters and complete strings may be rastered by a simple function
31   call
32 - when rastering strings, pairwise kerning information from .afm-files
33   may optionally be taken into account
34 - an interface to ligature-information of afm-files is provided
35 - a program to generate afm-files from Type 1 font files is included
36 - rotation is supported at any angles
37 - there's support for extending and slanting fonts
38 - underlining, overlining and overstriking is supported
39 - new encoding vectors may be loaded at runtime and fonts may be
40   reencoded using these encoding vectors 
41 - antialiasing is implemented using three gray-levels between black and
42   white
43 - An interactive test program called "xglyph" is included in the
44   distribution. This program allows to test all of the features of the
45   library. It requires X11.
46
47 %package devel
48 Summary:        Development files for t1lib
49 Summary(pl):    Pliki nag³ówkowe i biblioteki dla t1lib
50 Group:          Development/Libraries
51 Group(pl):      Programowanie/Biblioteki
52 Requires:       %{name} = %{version}
53
54 %description devel
55 The files needed for developing applications using t1lib.
56
57 %description devel -l pl
58 Pliki niezbêdne do tworzenia aplikacji z wykorzystaniem t1lib.
59
60 %package static
61 Summary:        Static libraries for t1lib
62 Summary(pl):    Biblioteki statyczne dla t1lib
63 Group:          Development/Libraries
64 Group(pl):      Programowanie/Biblioteki
65 Requires:       %{name}-devel = %{version}
66
67 %description static
68 Static libraries for t1lib.
69
70 %description devel -l pl
71 Biblioteki statyczne dla t1lib.
72
73 %prep
74 %setup -n T1-%{version}
75 %patch0 -p0
76 %patch1 -p0
77
78 %build
79 CFLAGS=$RPM_OPT_FLAGS \
80 %configure
81
82 make
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT{%{_libdir},%{_datadir},%{_bindir},%{_includedir}}
87
88 make install DESTDIR=$RPM_BUILD_ROOT
89
90 cp -fr Fonts/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
91
92 #CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=/usr --with-static-lib
93 #make
94
95 gzip -9nf Changes README.%{name}-%{version} doc/*.dvi
96
97 %clean
98 rm -r $RPM_BUILD_ROOT
99
100 %files
101 %defattr(644,root,root,755)
102 %doc {Changes,README.%{name}-%{version},doc/*.dvi}.gz 
103 %doc doc/*.{tex,eps,fig}
104 %attr(755,root,root) %{_bindir}/*
105 %attr(755,root,root) %{_libdir}/*.so.*
106 %dir %{_datadir}/%{name}-%{version}
107 %dir %{_datadir}/%{name}-%{version}/enc
108 %dir %{_datadir}/%{name}-%{version}/afm
109 %dir %{_datadir}/%{name}-%{version}/type1
110 %config %{_datadir}/%{name}-%{version}/t1lib.config
111 %{_datadir}/%{name}-%{version}/enc/*
112 %{_datadir}/%{name}-%{version}/afm/*
113 %{_datadir}/%{name}-%{version}/type1/*
114
115 %files devel
116 %{_includedir}/*
117 %{_libdir}/*.so
118 %{_libdir}/*.la
119
120 %files static
121 %defattr(644,root,root,755)
122 %{_libdir}/*.a
This page took 0.063744 seconds and 3 git commands to generate.