commit c758ef1d7e9327682a20536eb9fbe720f02671c3
Author: Daiki Ueno <ueno(a)unixuser.org>
Date: Fri Apr 1 10:54:55 2011 +0900
Initial import.
.gitignore | 1 +
nhn-nanum-fonts-brush-fontconfig.conf | 22 ++++++
nhn-nanum-fonts-gothic-fontconfig.conf | 22 ++++++
nhn-nanum-fonts-myeongjo-fontconfig.conf | 22 ++++++
nhn-nanum-fonts-pen-fontconfig.conf | 22 ++++++
nhn-nanum-fonts.spec | 112 ++++++++++++++++++++++++++++++
sources | 1 +
7 files changed, 202 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..838ab18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/NanumFont_TTF_ALL.zip
diff --git a/nhn-nanum-fonts-brush-fontconfig.conf
b/nhn-nanum-fonts-brush-fontconfig.conf
new file mode 100644
index 0000000..8aad3ba
--- /dev/null
+++ b/nhn-nanum-fonts-brush-fontconfig.conf
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <match>
+ <test name="lang">
+ <string>ko-kr</string>
+ <string>ko</string>
+ </test>
+ <test name="family">
+ <string>cursive</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Nanum Brush Script</string>
+ </edit>
+ </match>
+ <alias>
+ <family>Nanum Brush Script</family>
+ <default>
+ <family>cursive</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/nhn-nanum-fonts-gothic-fontconfig.conf
b/nhn-nanum-fonts-gothic-fontconfig.conf
new file mode 100644
index 0000000..f5c085e
--- /dev/null
+++ b/nhn-nanum-fonts-gothic-fontconfig.conf
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <match>
+ <test name="lang">
+ <string>ko-kr</string>
+ <string>ko</string>
+ </test>
+ <test name="family">
+ <string>sans-serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>NanumGothic</string>
+ </edit>
+ </match>
+ <alias>
+ <family>NanumGothic</family>
+ <default>
+ <family>sans-serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/nhn-nanum-fonts-myeongjo-fontconfig.conf
b/nhn-nanum-fonts-myeongjo-fontconfig.conf
new file mode 100644
index 0000000..1e8c5cb
--- /dev/null
+++ b/nhn-nanum-fonts-myeongjo-fontconfig.conf
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <match>
+ <test name="lang">
+ <string>ko-kr</string>
+ <string>ko</string>
+ </test>
+ <test name="family">
+ <string>serif</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>NanumMyeongjo</string>
+ </edit>
+ </match>
+ <alias>
+ <family>NanumMyeongjo</family>
+ <default>
+ <family>serif</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/nhn-nanum-fonts-pen-fontconfig.conf b/nhn-nanum-fonts-pen-fontconfig.conf
new file mode 100644
index 0000000..5505092
--- /dev/null
+++ b/nhn-nanum-fonts-pen-fontconfig.conf
@@ -0,0 +1,22 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "../fonts.dtd">
+<fontconfig>
+ <match>
+ <test name="lang">
+ <string>ko-kr</string>
+ <string>ko</string>
+ </test>
+ <test name="family">
+ <string>cursive</string>
+ </test>
+ <edit name="family" mode="prepend">
+ <string>Nanum Pen Script</string>
+ </edit>
+ </match>
+ <alias>
+ <family>Nanum Pen Script</family>
+ <default>
+ <family>cursive</family>
+ </default>
+ </alias>
+</fontconfig>
diff --git a/nhn-nanum-fonts.spec b/nhn-nanum-fonts.spec
new file mode 100644
index 0000000..95a0881
--- /dev/null
+++ b/nhn-nanum-fonts.spec
@@ -0,0 +1,112 @@
+%global fontname nhn-nanum
+%global fontconf 65-2-%{fontname}
+
+%global common_desc \
+Nanum fonts are collection of commonly-used Myeongjo and Gothic Korean \
+font families, designed by Sandoll Communication and Fontrix. The \
+publisher is NHN Corporation.
+
+
+Name: %{fontname}-fonts
+Version: 3.010
+Release: 1%{?dist}
+Summary: Nanum family of Korean TrueType fonts
+
+Group: User Interface/X
+License: OFL
+URL:
http://hangeul.naver.com/share.nhn
+Source0:
http://cdn.naver.com/naver/NanumFont/fontfiles/NanumFont_TTF_ALL.zip
+Source1: %{name}-brush-fontconfig.conf
+Source2: %{name}-gothic-fontconfig.conf
+Source3: %{name}-myeongjo-fontconfig.conf
+Source4: %{name}-pen-fontconfig.conf
+
+BuildArch: noarch
+BuildRequires: fontpackages-devel
+
+%description
+%common_desc
+
+
+%package -n %{fontname}-brush-fonts
+Version: 1.100
+Summary: Nanum fonts Brush font faces
+
+%description -n %{fontname}-brush-fonts
+%common_desc
+
+This package consists of the Nanum fonts Brush font faces.
+
+%_font_pkg -n brush -f %{fontconf}-brush.conf NanumBrush.ttf
+
+
+%package -n %{fontname}-gothic-fonts
+Summary: Nanum fonts Gothic font faces
+
+%description -n %{fontname}-gothic-fonts
+%common_desc
+
+This package consists of the Nanum fonts Gothic font faces.
+
+%_font_pkg -n gothic -f %{fontconf}-gothic.conf NanumGothic.ttf NanumGothicBold.ttf
NanumGothicExtraBold.ttf
+
+
+%package -n %{fontname}-myeongjo-fonts
+Summary: Nanum fonts Myeongjo font faces
+
+%description -n %{fontname}-myeongjo-fonts
+%common_desc
+
+This package consists of the Nanum fonts Myeongjo font faces.
+
+%_font_pkg -n myeongjo -f %{fontconf}-myeongjo.conf NanumMyeongjo.ttf
NanumMyeongjoBold.ttf NanumMyeongjoExtraBold.ttf
+
+
+%package -n %{fontname}-pen-fonts
+Version: 1.100
+Summary: Nanum fonts Pen font faces
+
+%description -n %{fontname}-pen-fonts
+%common_desc
+
+This package consists of the Nanum fonts Pen font faces.
+
+%_font_pkg -n pen -f %{fontconf}-pen.conf NanumPen.ttf
+
+
+%prep
+%setup -q -c
+
+
+%build
+
+
+%install
+install -m 0755 -d %{buildroot}%{_fontdir}
+install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
+
+install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
+ %{buildroot}%{_fontconfig_confdir}
+
+install -m 0644 -p %{SOURCE1} \
+ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-brush.conf
+install -m 0644 -p %{SOURCE2} \
+ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-gothic.conf
+install -m 0644 -p %{SOURCE3} \
+ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-myeongjo.conf
+install -m 0644 -p %{SOURCE4} \
+ %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-pen.conf
+
+for fconf in %{fontconf}-brush.conf \
+ %{fontconf}-gothic.conf \
+ %{fontconf}-myeongjo.conf \
+ %{fontconf}-pen.conf ; do
+ ln -s %{_fontconfig_templatedir}/$fconf \
+ %{buildroot}%{_fontconfig_confdir}/$fconf
+done
+
+
+%changelog
+* Wed Mar 30 2011 Daiki Ueno <dueno(a)redhat.com> - 3.010-1
+- initial packaging for Fedora
+
diff --git a/sources b/sources
index e69de29..eafe5d3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+bc3d31d8d288bfe720f04d4ebd36b4ab NanumFont_TTF_ALL.zip