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