Blob Blame History Raw
%define	fontdir		%{_datadir}/fonts/tibetan-machine-uni

Name:		tibetan-machine-uni-fonts
Version:	1.0
Release:	1%{?dist}
Summary:	Tibetan Machine Uni font for Tibetan, Dzongkha and Ladakhi

Group:		User Interface/X
License:	GPL
URL:		http://www.thdl.org/tools/fonts/tibfonts.php?l=uva10928423419921
Source0:	http://www.thdl.org/tools/dls/fonts/TibetanMachineUnicodeFont.zip
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:	noarch

%description
Tibetan Machine Uni is an TrueType OpenType, Unicode font released by THDL
project. The font supports Tibetan, Dzongkha and Ladakhi in dbu-can script
with full support for the Sanskrit combinations found in chos skad text.

%prep
%setup -q -c

%build
# Empty build section

%install
rm -rf $RPM_BUILD_ROOT

install -d -m 0755 $RPM_BUILD_ROOT%{fontdir}
install -p -m 0644 *.ttf $RPM_BUILD_ROOT%{fontdir}

tr -d '\r' < gpl.txt > COPYING

%post
if [ -x %{_bindir}/fc-cache ]; then
	%{_bindir}/fc-cache %{_datadir}/fonts
fi

%postun
if [ "$1" = "0" ]; then
	if [ -x %{_bindir}/fc-cache ]; then
		%{_bindir}/fc-cache %{_datadir}/fonts
	fi
fi

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc COPYING
%{fontdir}/

%changelog
* Mon Mar 12 2007 Marcin Garski <mgarski[AT]post.pl> 1.0-1
- Initial specfile