From 8640cbea9a18f8edefd55b0aa3a7ee1c4f2eea4f Mon Sep 17 00:00:00 2001 From: Marcin Garski Date: Fri, 13 Apr 2007 11:58:17 +0000 Subject: [PATCH] jomolhari-fonts package import --- .cvsignore | 1 + jomolhari-fonts.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 71 insertions(+) create mode 100644 jomolhari-fonts.spec diff --git a/.cvsignore b/.cvsignore index e69de29..c8b2759 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +jomolhari-alpha003c.zip diff --git a/jomolhari-fonts.spec b/jomolhari-fonts.spec new file mode 100644 index 0000000..f76de8a --- /dev/null +++ b/jomolhari-fonts.spec @@ -0,0 +1,69 @@ +%define fontdir %{_datadir}/fonts/jomolhari + +Name: jomolhari-fonts +Version: 0.003 +Release: 3%{?dist} +Summary: Jomolhari a Bhutanese style font for Tibetan and Dzongkha + +Group: User Interface/X +License: SIL Open Font License +URL: http://www.btinternet.com/~c.fynn/tibetan/fonts/jomolhari.html +Source0: http://www.btinternet.com/~c.fynn/tibetan/fonts/download/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 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 diff --git a/sources b/sources index e69de29..f6abec5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0d03b98a7184a966815b85e7556e8bcb jomolhari-alpha003c.zip