#
# spec file for package ttf-baekmuk
#
# Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define owner dermot
#
%define OSR 1757:20030628
Name: ttf-baekmuk
License: baekmuk
Group: User Interface/X
Version: 2.1
Release: 54
Distribution: Java Desktop System
Vendor: Other
Summary: Korean Baekmuk Truetype Fonts
Source: ftp://ftp.mizi.com/pub/baekmuk/baekmuk-ttf-%{version}.tar.gz
URL: ftp://ftp.mizi.com/pub/baekmuk/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Docdir: %{_defaultdocdir}/doc
Autoreqprov: on
BuildArchitectures: noarch
PreReq: aaa_base
%define font_dir %{_datadir}/fonts/TrueType/baekmuk
%description
Baekmuk Korean TrueType Fonts
%prep
%setup -q -c -n %{name}-%{version}
%install
install -d ${RPM_BUILD_ROOT}%{font_dir}
install --mode=0444 *.ttf ${RPM_BUILD_ROOT}%{font_dir}
if [ -x /usr/bin/mkfontscale -a -x /usr/bin/mkfontdir ]; then
cd ${RPM_BUILD_ROOT}%{font_dir} \
&& /usr/bin/mkfontscale \
&& /usr/bin/mkfontdir \
&& /usr/bin/chmod 0444 fonts.dir fonts.scale
fi
%clean
rm -rf $RPM_BUILD_ROOT
%post
test -x /sbin/SuSEconfig && /sbin/SuSEconfig --module fonts
%postun
test -x /sbin/SuSEconfig && /sbin/SuSEconfig --module fonts
%files
%defattr(-,root,root)
%{font_dir}/*.ttf
%changelog
* Wed Mar 30 2011 - jan.hnatek@oracle.com
- include fonts.dir and fonts.scale files
* Thu Oct 15 2009 - alan.coopersmith@sun.com
- move from /usr/openwin to /usr/share/fonts
* Wed Feb 16 2005 - dermot.mccluskey@sun.com
- prereq aaa_base
* Sat Oct 30 2004 - laca@sun.com
- test if SuSEconfig is installed before running it, fixes 4911608
* Sat May 01 2004 - laca@sun.com
- install fonts into /usr/openwin on Solaris
* Tue Feb 24 2004 - michael.twomey@sun.com
- Updated to Cinnabar.
* Thu Jul 17 2003 - michael.twomey@sun.com
- Changed to invoke SuSEconfig directly.
* Thu Jul 10 2003 - michael.twomey@sun.com
- Initial release