]> git.pld-linux.org Git - packages/t1lib.git/blame - t1lib.spec
- t1lib patches
[packages/t1lib.git] / t1lib.spec
CommitLineData
48de8a08 1Summary: A library for character- and string-glyphs from Adobe Type 1 fonts.
2Name: t1lib
3Version: 0.9
4Release: 1
5Group: Libraries
6Copyright: GPL
48de8a08 7Source0: ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
48de8a08 8URL: http://www.windowmaker.org/
9BuildRoot: /tmp/%{name}-%{version}-root
cacb99e5 10
11%description
48de8a08 12t1lib is a library distributed under the GNU General Public Library License
13for generating character- and string-glyphs from Adobe Type 1 fonts under
14UNIX. t1lib uses most of the code of the X11 rasterizer donated by IBM to
15the X11-project. But some disadvantages of the rasterizer being included in
16X11 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 56Summary: Development files for t1lib
57Group: Development/Libraries
86f33587 58Requires: %{name} = %{version}
cacb99e5 59
60%description devel
61The files needed for developing applications using t1lib.
62
86f33587
JR
63%package static
64Summary: Static library for t1lib
65Group: Development/Libraries
66Requires: %{name}-devel = %{version}
67
68%description static
69The files needed for developing applications using t1lib.
70
cacb99e5 71%prep
72%setup -n T1-%{version}
86f33587 73#%patch0 -p1
cacb99e5 74
75%build
76CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=/usr
77make
78
79%install
80if [ -d $RPM_BUILD_ROOT ]; then rm -r $RPM_BUILD_ROOT; fi
81mkdir -p $RPM_BUILD_ROOT/usr/{lib,share,bin,include}
82make prefix=$RPM_BUILD_ROOT/usr install
86f33587
JR
83
84cp -fr Fonts/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
85
cacb99e5 86CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=/usr --with-static-lib
87make
88
86f33587
JR
89gzip -9nf Changes README.%{name}-%{version} doc/*
90
48de8a08 91%clean
92rm -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
This page took 0.280132 seconds and 4 git commands to generate.