Sophie

Sophie

distrib > Mandriva > 7.2 > i586 > by-pkgid > 09892e44244bc1d1670d85144eb2e1ab > files > 4

ttfprint-0.9-3mdk.src.rpm

%define name ttfprint
%define version 0.9
%define release 3mdk

Name: %{name}
Version: %{version}
Release: %{release}
Summary: ttfprint generates Chinese compliant postscript files for printing.
Copyright: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Source: ftp://linux.cis.nctu.edu.tw/packages/chinese/print/ttfprint/%{name}-%{version}.tar.bz2
# BSD has this font, so there's no resaon why we can't use it ..
Source1: ftp://ftp.ncu.edu.tw/Linux/packages/chinese/fonts/twmoefont/ttf/moe_sung.ttf.bz2
Patch: ttfprint.c.patch.bz2
Requires: locales-zh
Group: System/Internationalization

%description
ttfprint is a program for generating Chinese-compliant postscript files for
printing on the printer.

To generate a file, just issue ttfprint < myfile.txt > myfile.ps on console.

This package also includes the moe_sung True type font file. Note however,
while the program itself is free, the font is not "free".

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q
%patch -p1


%build
make

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT/var/spool/ttprint
mkdir -p $RPM_BUILD_ROOT%{_libdir}/ttfprint/{hdr,tpl}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/fonts/ttf/big5
install -m755 ttfprint $RPM_BUILD_ROOT%{_bindir}
bzip2 -dc %SOURCE1 > $RPM_BUILD_ROOT%{_datadir}/fonts/ttf/big5/moe_sung.ttf

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/*
/var/spool/ttprint
%{_libdir}/ttfprint/hdr
%{_libdir}/ttfprint/tpl
%{_datadir}/fonts/ttf/big5/*

%doc INSTALL README USAGE.TXT 

%changelog
* Tue Sep 12 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.9-3mdk
- rebuild it with requires locales-zh (Denis.)
- add a better description for the font.

* Sat Sep 2 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.9-2mdk
- include the moe_sung.ttf file.

* Fri Sep 1 2000 Geoffrey Lee <snailtalk@mandrakesoft.com> 0.9-2mdk
- first mandrake rpm.