jomolhari-fonts/jomolhari-fonts.spec

79 lines
1.9 KiB
RPMSpec

%define fontdir %{_datadir}/fonts/jomolhari
Name: jomolhari-fonts
Version: 0.003
Release: 6%{?dist}
Summary: Jomolhari a Bhutanese style font for Tibetan and Dzongkha
Group: User Interface/X
License: OFL
URL: http://chris.fynn.googlepages.com/jomolhari
Source0: http://download.savannah.nongnu.org/releases/free-tibetan/jomolhari/jomolhari-alpha003c.zip
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
%description
Jomolhari is an TrueType OpenType Bhutanese style font for Dzongkha and
Tibetan text. It is based on Bhutanese manuscript examples, supports the
Unicode and the Chinese encoding for Tibetan.
The font supports the standard combinations used in most texts.
%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}
for i in FONTLOG.txt OFL-FAQ.txt OFL.txt
do
tr -d '\r' < $i > ${i}.tmp
mv -f ${i}.tmp $i
done
%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 FONTLOG.txt OFL-FAQ.txt OFL.txt
%{fontdir}/
%changelog
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.003-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Tue Apr 29 2008 Marcin Garski <mgarski[AT]post.pl> 0.003-5
- Update URL
* Fri Aug 31 2007 Marcin Garski <mgarski[AT]post.pl> 0.003-4
- Fix license tag
* Fri Apr 06 2007 Marcin Garski <mgarski[AT]post.pl> 0.003-3
- Update to 0.003c
- Change license from GPL to OFL
* Fri Mar 23 2007 Marcin Garski <mgarski[AT]post.pl> 0.003-2
- Extend description section
* Mon Mar 12 2007 Marcin Garski <mgarski[AT]post.pl> 0.003-1
- Initial specfile