Sophie

Sophie

distrib > Mandriva > 2006.0 > i586 > media > main-src > by-pkgid > 2b8d42695b236ec9392789571b961cf9 > files > 1

fonts-ttf-ethiopic-1.0-1mdk.src.rpm

Summary:	Free Ethiopic TrueType fonts
Name:		fonts-ttf-ethiopic
Version:	1.0
Release:	1mdk
License:	GPL
Group:		System/Fonts/True type
# GFZemen unicode font from
# ftp://ftp.ethiopic.org/pub/fonts/TrueType/gfzemenu.ttf
# the site seems gone now
Source0:	fonts-ttf-ethiopic.tar.bz2

BuildArch:	noarch
BuildRoot:	%_tmppath/%name-%version-%release-root
BuildRequires:	freetype-tools
# And be sure there is TTF support
Requires:	freetype

%description
This Package provides Free Ethiopic TrueType fonts.

%prep

%setup -q -n %{name}

%build

%install
rm -fr %buildroot

mkdir -p %buildroot/%_datadir/fonts/ttf/ethiopic/
cp *.ttf %buildroot/%_datadir/fonts/ttf/ethiopic/

(
cd %buildroot/%_datadir/fonts/ttf/ethiopic/
%_sbindir/ttmkfdir -u -m 1 > fonts.scale
cp fonts.scale fonts.dir
%_bindir/fc-cache . || touch fonts.cache-1
)

%post
if [ -x %_sbindir/chkfontpath ]; then
   %_sbindir/chkfontpath -q -a %_datadir/fonts/ttf/ethiopic
fi
%{_bindir}/fc-cache %{_datadir}/fonts/ 

%postun
# 0 means a real uninstall
if [ "$1" = "0" ]; then
   [ -x %_sbindir/chkfontpath ] && \
   %_sbindir/chkfontpath -q -r %_datadir/fonts/ttf/ethiopic
   %{_bindir}/fc-cache %{_datadir}/fonts/ 
fi

%clean
rm -fr %buildroot

%files
%defattr(0644,root,root,0755)
#%doc *txt
#
%dir %_datadir/fonts/
%dir %_datadir/fonts/ttf/
%dir %_datadir/fonts/ttf/ethiopic/
%_datadir/fonts/ttf/ethiopic/*

%changelog
* Wed Jul 23 2003 Pablo Saratxaga <pablo@mandrakesoft.com> 1.0-1mdk
- first release