File nanum-fonts.spec of Package nanum-fonts

#
# spec file for package nanum-fonts
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

%define	ttf_fontdir     /usr/share/fonts/truetype
%define gothic_name    nanum-gothic-coding
%define gothic_version 2.0
%define nanum_version  20101109

Name:           nanum-fonts
License:        SIL Open Font License
Group:          System/X11/Fonts
AutoReqProv:    on
PreReq:         %suseconfig_fonts_prereq
Provides:       locale(ko)
Recommends:     %{gothic_name}
Version:        %{nanum_version}
Release:        6
Url:            http://hangeul.naver.com/download.nhn
#Url:           http://dev.naver.com/projects/nanumfont/download/ (NanumGothicCoding)
Source0:        %{name}.tar.bz2
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Nanum Korean TrueType Fonts

%description
Collection of Nanum Korean TrueType fonts: NanumBrush, 
NanumGothic, NanumMyeongjo and NanumPen.

Authors:
--------
http://www.naver.com

%package -n %{gothic_name}


License:        SIL Open Font License
Group:          System/X11/Fonts
Summary:        Nanum Gothic Coding Korean TrueType Fonts
Version:        %{gothic_version}
Release:        2
Recommends:     %{name}

%description -n %{gothic_name}
Collection of Nanum Gothic CodingKorean TrueType fonts.

%prep
%setup -q -n %{name}

%build

%install
mkdir -p $RPM_BUILD_ROOT%{ttf_fontdir}/
install -m 644 *.ttf $RPM_BUILD_ROOT%{ttf_fontdir}/
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}
install -m 644 {LICENSE,README}.NanumFont $RPM_BUILD_ROOT%{_docdir}/%{name}
mkdir $RPM_BUILD_ROOT%{_docdir}/%{gothic_name}
install -m 644 {LICENSE,README}.NanumGothicCoding $RPM_BUILD_ROOT%{_docdir}/%{gothic_name}

%clean
rm -rf $RPM_BUILD_ROOT

%post
%run_suseconfig_fonts -c

%postun
%run_suseconfig_fonts -c

%files 
%defattr(-, root, root)
%dir %{ttf_fontdir}
%{ttf_fontdir}/NanumBrush.ttf
%{ttf_fontdir}/NanumGothic*.ttf
%{ttf_fontdir}/NanumMyeongjo*.ttf
%{ttf_fontdir}/NanumPen.ttf
%{_docdir}/%{name}

%files -n %{gothic_name}
%defattr(-, root, root)
%{ttf_fontdir}/NanumGothicCoding*.ttf
%{_docdir}/%{gothic_name}

%changelog
openSUSE Build Service is sponsored by