1%define date 20000213
2
3Summary: True Type Font Manager
4Name: ttfm
5Version: 0.9
6Release: 9
7Copyright: GPL
8Group: System Environment/Base
9Source: ftp://cle.linux.org.tw/pub/CLE/devel/platin/ttfm-%{date}.tgz
10Buildroot: /var/tmp/%{name}-root
11URL: http://cle.linux.org.tw/
12
13%description
14A True Type Font Manager that handles true type font installation,
15uninstallation, list, and default font setting.
16The package containing a module xttfm that create appropriate
17font.dir and font.alias for truetype font in X Window System.
18A program using truetype font should provide a module for ttfm
19so that the font could be controlled automatically.
20
21Release date %{date}.
22
23%prep
24%setup -n ttfm
25
26%build
27make
28
29%install
30rm -rf $RPM_BUILD_ROOT
31mkdir -p $RPM_BUILD_ROOT/usr/bin
32mkdir -p $RPM_BUILD_ROOT/usr/sbin
33mkdir -p $RPM_BUILD_ROOT/usr/share/fonts/install
34prefix=$RPM_BUILD_ROOT/usr make -e install
35
36%clean
37rm -rf $RPM_BUILD_ROOT
38
39%post
40[ "$1" = 1 ] && /usr/sbin/ttfm.sh --initm all
41exit 0
42
43%files
44%defattr(-,root,root)
45%doc README USAGE
46/usr/bin/ttfinst.tk
47/usr/bin/ttfinfo
48/usr/sbin/ttfm.sh
49%dir /usr/share/fonts/install
50#/usr/share/fonts/install/*
51
52%changelog
53* Wed Feb  2 2000 Yuan-Chung Cheng <platin@linux.org.tw>
54- remove all /usr/share/fonts/install/ modules, these modules should be
55  provided by packages using TTF fonts.
56
57* Fri Jan 07 2000 Chih-Wei Huang <cwhuang@linux.org.tw>
58- added USAGE information
59
60* Thu Jan 06 2000 Chih-Wei Huang <cwhuang@linux.org.tw>
61- xttfm updated
62- fixed stupid bug in ttfm.sh
63
64* Wed Jan 05 2000 Chih-Wei Huang <cwhuang@linux.org.tw>
65- added --initm
66- enhanced --list
67- added README
68
69* Tue Jan 04 2000 Chih-Wei Huang <cwhuang@linux.org.tw>
70- first release
71