%define fontdir %{_datadir}/fonts/jomolhari Name: jomolhari-fonts Version: 0.003 Release: 4%{?dist} Summary: Jomolhari a Bhutanese style font for Tibetan and Dzongkha Group: User Interface/X License: OFL URL: http://www.btinternet.com/~c.fynn/tibetan/fonts/jomolhari.html 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 * Fri Aug 31 2007 Marcin Garski 0.003-4 - Fix license tag * Fri Apr 06 2007 Marcin Garski 0.003-3 - Update to 0.003c - Change license from GPL to OFL * Fri Mar 23 2007 Marcin Garski 0.003-2 - Extend description section * Mon Mar 12 2007 Marcin Garski 0.003-1 - Initial specfile