From 38424be818fd3849f7efe3e2505f6ec90fa37c5e Mon Sep 17 00:00:00 2001 From: Dennis Jang Date: Oct 15 2008 06:14:31 +0000 Subject: add fontconfig --- diff --git a/import.log b/import.log index 5675d43..c32d606 100644 --- a/import.log +++ b/import.log @@ -1 +1,2 @@ un-core-fonts-1_0_2-0_5_080608_fc9:F-9:un-core-fonts-1.0.2-0.5.080608.fc9.src.rpm:1219643430 +un-core-fonts-1_0_2-0_6_080608_fc9:F-9:un-core-fonts-1.0.2-0.6.080608.fc9.src.rpm:1224051348 diff --git a/un-core-fonts-batang-fontconfig.conf b/un-core-fonts-batang-fontconfig.conf new file mode 100644 index 0000000..0541502 --- /dev/null +++ b/un-core-fonts-batang-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnBatang + + serif + + + + serif + + UnBatang + + + diff --git a/un-core-fonts-batangbold-fontconfig.conf b/un-core-fonts-batangbold-fontconfig.conf new file mode 100644 index 0000000..3d3c8a7 --- /dev/null +++ b/un-core-fonts-batangbold-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnBatangBold + + serif + + + + serif + + UnBatangBold + + + diff --git a/un-core-fonts-dinaru-fontconfig.conf b/un-core-fonts-dinaru-fontconfig.conf new file mode 100644 index 0000000..75f0c51 --- /dev/null +++ b/un-core-fonts-dinaru-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnDinaru + + fantasy + + + + fantasy + + UnDinaru + + + diff --git a/un-core-fonts-dinarubold-fontconfig.conf b/un-core-fonts-dinarubold-fontconfig.conf new file mode 100644 index 0000000..f499ec3 --- /dev/null +++ b/un-core-fonts-dinarubold-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnDinaruBold + + fantasy + + + + fantasy + + UnDinaruBold + + + diff --git a/un-core-fonts-dinarulight-fontconfig.conf b/un-core-fonts-dinarulight-fontconfig.conf new file mode 100644 index 0000000..2f3dd23 --- /dev/null +++ b/un-core-fonts-dinarulight-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnDinaruLight + + fantasy + + + + fantasy + + UnDinaruLight + + + diff --git a/un-core-fonts-dotum-fontconfig.conf b/un-core-fonts-dotum-fontconfig.conf new file mode 100644 index 0000000..3eb4967 --- /dev/null +++ b/un-core-fonts-dotum-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnDotum + + sans-serif + + + + sans-serif + + UnDotum + + + diff --git a/un-core-fonts-dotumbold-fontconfig.conf b/un-core-fonts-dotumbold-fontconfig.conf new file mode 100644 index 0000000..28fbf28 --- /dev/null +++ b/un-core-fonts-dotumbold-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnDotumBold + + sans-serif + + + + sans-serif + + UnDotumBold + + + diff --git a/un-core-fonts-graphic-fontconfig.conf b/un-core-fonts-graphic-fontconfig.conf new file mode 100644 index 0000000..63e0eb2 --- /dev/null +++ b/un-core-fonts-graphic-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnGraphic + + sans-serif + + + + sans-serif + + UnGraphic + + + diff --git a/un-core-fonts-graphicbold-fontconfig.conf b/un-core-fonts-graphicbold-fontconfig.conf new file mode 100644 index 0000000..ca9c9c5 --- /dev/null +++ b/un-core-fonts-graphicbold-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnGraphicBold + + sans-serif + + + + sans-serif + + UnGraphicBold + + + diff --git a/un-core-fonts-gungseo-fontconfig.conf b/un-core-fonts-gungseo-fontconfig.conf new file mode 100644 index 0000000..21df603 --- /dev/null +++ b/un-core-fonts-gungseo-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnGungseo + + cursive + + + + cursive + + UnGungseo + + + diff --git a/un-core-fonts-pilgi-fontconfig.conf b/un-core-fonts-pilgi-fontconfig.conf new file mode 100644 index 0000000..e52400c --- /dev/null +++ b/un-core-fonts-pilgi-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnPilgi + + script + + + + script + + UnPilgi + + + diff --git a/un-core-fonts-pilgibold-fontconfig.conf b/un-core-fonts-pilgibold-fontconfig.conf new file mode 100644 index 0000000..bc5a54c --- /dev/null +++ b/un-core-fonts-pilgibold-fontconfig.conf @@ -0,0 +1,16 @@ + + + + + UnPilgiBold + + script + + + + script + + UnPilgiBold + + + diff --git a/un-core-fonts.spec b/un-core-fonts.spec index 2151121..676b6f5 100644 --- a/un-core-fonts.spec +++ b/un-core-fonts.spec @@ -1,99 +1,279 @@ %define fontname un-core -%define fontdir %{_datadir}/fonts/%{fontname} +%define fontdir %{_datadir}/fonts/%{fontname}/ +%define fontconfdir %{_sysconfdir}/fonts/conf.d/ + %define archivename un-fonts-core %define alphatag 080608 -Name: %{fontname}-fonts -Version: 1.0.2 -Release: 0.5.%{alphatag}%{?dist} -Summary: Un Core family of Korean TrueType fonts -Summary(ko): 한글 은글꼴 Core 모음 -Group: User Interface/X -License: GPLv2 -URL: http://kldp.net/projects/unfonts/ -Source0: http://kldp.net/frs/download.php/4695/%{archivename}-%{version}-%{alphatag}.tar.gz -BuildArch: noarch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -%description -This is a set of Korean TrueType fonts. Un-fonts come from the HLaTeX type1 -fonts made by Koaunghi Un in 1998. They were converted to TrueType with -FontForge(PfaEdit) by Won-kyu Park in 2003. - -Core families (9 fonts) -- UnBatang, UnBatangBold: serif -- UnDotum, UnDotumBold: sans-serif -- UnGraphic, UnGraphicBold: sans-serif style -- UnPilgi, UnPilgiBold: script -- UnGungseo: cursive, brush-stroke +%define common_desc_en \ +The UN set of Korean TrueType fonts is derived from the HLaTeX Type1 fonts \ +made by Koaunghi Un in 1998. They were converted to TrueType with \ +FontForge(PfaEdit) by Won-kyu Park in 2003. \ +The Un Core set is composed of: \ +\ +- UnBatang, UnBatangBold: serif \ +- UnDinaru, UnDinaruBold, UnDinaruLight: fantasy \ +- UnDotum, UnDotumBold: sans-serif \ +- UnGraphic, UnGraphicBold: sans-serif style \ +- UnGungseo: cursive, brush-stroke \ +- UnPilgi, UnPilgiBold: script \ -Install un-extra-fonts for additional fonts. +%define common_desc_ko \ +은글꼴 시리즈는 HLaTex개발자이신 은광희님이 1998년에 개발한 폰트입니다. \ +2003년에 박원규님이 FontForge를 이용하여 트루타입폰트로 변환했습니다. \ +은글꼴은 가장 일반적인 글꼴들입니다. \ +\ +Core 모음: \ +- 은바탕, 은바탕굵은: serif \ +- 은디나루, 은디나루굵은, 은디나루가는: fantasy \ +- 은돋음, 은돋음굵은: sans-serif \ +- 은그래픽, 은그래픽굵은: sans-serif style \ +- 은궁서: cursive, brush-stroke \ +- 은필기, 은필기굵은: script \ -%description -l ko -은글꼴 시리즈는 HLaTex개발자이신 은광희님이 1998년에 개발한 폰트입니다. -2003년에 박원규님이 FontForge를 이용하여 트루타입폰트로 변환했습니다. -은글꼴은 가장 일반적인 글꼴들입니다. +Name: %{fontname}-fonts +Version: 1.0.2 +Release: 0.6.%{alphatag}%{?dist} +Summary: Un Core family of Korean TrueType fonts +Summary(ko): 한글 은글꼴 Core 모음 -Core 모음 (9폰트) -- 은바탕, 은바탕굵음: serif -- 은돋음, 은돋음굵음: sans-serif -- 은그래픽, 은그래픽굵음: sans-serif style -- 은필기, 은필기굵음: script -- 은궁서: cursive, brush-stroke +Group: User Interface/X +License: GPLv2 +URL: http://kldp.net/projects/unfonts/ +Source0: http://kldp.net/frs/download.php/4695/%{archivename}-%{version}-%{alphatag}.tar.gz +Source1: %{name}-batang-fontconfig.conf +Source2: %{name}-batangbold-fontconfig.conf +Source3: %{name}-dinaru-fontconfig.conf +Source4: %{name}-dinarubold-fontconfig.conf +Source5: %{name}-dinarulight-fontconfig.conf +Source6: %{name}-dotum-fontconfig.conf +Source7: %{name}-dotumbold-fontconfig.conf +Source8: %{name}-graphic-fontconfig.conf +Source9: %{name}-graphicbold-fontconfig.conf +Source10: %{name}-gungseo-fontconfig.conf +Source11: %{name}-pilgi-fontconfig.conf +Source12: %{name}-pilgibold-fontconfig.conf +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -추가적으로 un-extra-fonts를 설치 할 수 있습니다. +BuildArch: noarch %define un_subpkg() \ -%package %1\ -Summary: Un Core fonts - %(echo %1 | sed -e "s/\\(.*\\)/\\u\\1/")\ -Summary(ko): 한글 은글꼴 Core 모음 - %(echo %2)\ -Group: User Interface/X\ +%package %1 \ +Summary: Un Core fonts - %(echo %2) \ +Summary(ko): 한글 은글꼴 Core 모음 - %(echo %3) \ +Group: User Interface/X \ +\ +\ +%post %1 \ +if [ -x %{_bindir}/fc-cache ]; then \ + %{_bindir}/fc-cache %{fontdir} || : \ +fi \ \ -%description %1\ -This package provides the Un Core %(echo %1 | sed -e "s/\\(.*\\)/\\u\\1/") fonts.\ \ -%description -l ko %1\ -은글꼴 Core 모음중 %(echo %2)입니다.\ +%postun %1 \ +if [ $1 -eq 0 -a -x %{_bindir}/fc-cache ] ; then \ + %{_bindir}/fc-cache %{fontdir} || : \ +fi\ \ -%files %1\ -%defattr(-,root,root,-)\ -%doc COPYING README\ -%dir %{fontdir}/\ -%{fontdir}/Un%(echo %1 | sed -e "s/\\(.*\\)/\\u\\1/")*.ttf - -%un_subpkg batang 바탕 -%un_subpkg dinaru 디나루 -%un_subpkg dotum 돋음 -%un_subpkg graphic 그래픽 -%un_subpkg gungseo 궁서 -%un_subpkg pilgi 필기 +\ +%files %1 \ +%defattr(0644,root,root,0755) \ +%doc COPYING README \ +\ +%config(noreplace) %{fontconfdir}65-%{fontname}-%(echo %1).conf \ +\ +%dir %{fontdir} \ +%{fontdir}%(echo %2)*.ttf + +%un_subpkg batang UnBatang 은바탕 +%un_subpkg batangbold UnBatangBold 은바탕굵은 +%un_subpkg dinaru UnDinaru 은디나루 +%un_subpkg dinarubold UnDinaruBold 은디나루굵은 +%un_subpkg dinarulight UnDinaruLight 은디나루가는 +%un_subpkg dotum UnDotum 은돋음 +%un_subpkg dotumbold UnDotumBold 은돋음굵은 +%un_subpkg graphic UnGraphic 은그래픽 +%un_subpkg graphicbold UnGraphicBold 은그래픽굵은 +%un_subpkg gungseo UnGungseo 은궁서 +%un_subpkg pilgi UnPilgi 은필기 +%un_subpkg pilgibold UnPilgiBold 은필기긁은 + + +%description +%common_desc_en + +%description -l ko +%common_desc_ko + +%description batang +%common_desc_en + +This package includes UnBatang, a serif font. + +%description -l ko batang +%common_desc_ko + +이 패키지에는 은바탕글꼴이 포함되어 있습니다. + +%description batangbold +%common_desc_en + +This package includes UnBatangBold, a serif font. + +%description -l ko batangbold +%common_desc_ko + +이 패키지에는 은바탕굵은글꼴이 포함되어 있습니다. + +%description dinaru +%common_desc_en + +This package includes UnDinaru, a fantasy font. + +%description -l ko dinaru +%common_desc_ko + +이 패키지에는 은디나루글꼴이 포함되어 있습니다. +%description dinarubold +%common_desc_en + +This package includes UnDinaruBold, a fantasy font. + +%description -l ko dinarubold +%common_desc_ko + +이 패키지에는 은디나루굵은글꼴이 포함되어 있습니다. + +%description dinarulight +%common_desc_en + +This package includes UnDinaruLight, a fantasy font. + +%description -l ko dinarulight +%common_desc_ko + +이 패키지에는 은디나루가는글꼴이 포함되어 있습니다. + +%description dotum +%common_desc_en + +This package includes UnDotum, a sans-serif font. + +%description -l ko dotum +%common_desc_ko + +이 패키지에는 은돋음글꼴이 포함되어 있습니다. + +%description dotumbold +%common_desc_en + +This package includes UnDotum, a sans-serif font. + +%description -l ko dotumbold +%common_desc_ko + +이 패키지에는 은돋음굵은글꼴이 포함되어 있습니다. + +%description graphic +%common_desc_en + +This package includes UnGraphic, a sans-serif font. + +%description -l ko graphic +%common_desc_ko + +이 패키지에는 은그래픽글꼴이 포함되어 있습니다. + +%description graphicbold +%common_desc_en + +This package includes UnGraphicBold, a sans-serif font. + +%description -l ko graphicbold +%common_desc_ko + +이 패키지에는 은그래픽굵은글꼴이 포함되어 있습니다. + +%description gungseo +%common_desc_en + +This package includes UnGungseo, a cursive font. + +%description -l ko gungseo +%common_desc_ko + +이 패키지에는 은궁서글꼴이 포함되어 있습니다. + +%description pilgi +%common_desc_en + +This package includes UnPilgi, a script font. + +%description -l ko pilgi +%common_desc_ko + +이 패키지에는 은필기글꼴이 포함되어 있습니다. + +%description pilgibold +%common_desc_en + +This package includes UnPilgiBold, a script font. + +%description -l ko pilgibold +%common_desc_ko + +이 패키지에는 은필기긁은글꼴이 포함되어 있습니다. + %prep %setup -q -n un-fonts + %build + %install -rm -rf $RPM_BUILD_ROOT +rm -rf %{buildroot} -install -dm 0755 -d $RPM_BUILD_ROOT%{fontdir} -install -pm 0644 -p *.ttf $RPM_BUILD_ROOT%{fontdir} +install -dm 0755 -d %{buildroot}%{fontdir} +install -pm 0644 -p *.ttf %{buildroot}%{fontdir} + +install -dm 0755 -d %{buildroot}%{fontconfdir} +install -pm 0644 -p %{SOURCE1}\ + %{buildroot}%{fontconfdir}65-%{fontname}-batang.conf +install -pm 0644 -p %{SOURCE2}\ + %{buildroot}%{fontconfdir}65-%{fontname}-batangbold.conf +install -pm 0644 -p %{SOURCE3}\ + %{buildroot}%{fontconfdir}65-%{fontname}-dinaru.conf +install -pm 0644 -p %{SOURCE4}\ + %{buildroot}%{fontconfdir}65-%{fontname}-dinarubold.conf +install -pm 0644 -p %{SOURCE5}\ + %{buildroot}%{fontconfdir}65-%{fontname}-dinarulight.conf +install -pm 0644 -p %{SOURCE6}\ + %{buildroot}%{fontconfdir}65-%{fontname}-dotum.conf +install -pm 0644 -p %{SOURCE7}\ + %{buildroot}%{fontconfdir}65-%{fontname}-dotumbold.conf +install -pm 0644 -p %{SOURCE8}\ + %{buildroot}%{fontconfdir}65-%{fontname}-graphic.conf +install -pm 0644 -p %{SOURCE9}\ + %{buildroot}%{fontconfdir}65-%{fontname}-graphicbold.conf +install -pm 0644 -p %{SOURCE10}\ + %{buildroot}%{fontconfdir}65-%{fontname}-gungseo.conf +install -pm 0644 -p %{SOURCE11}\ + %{buildroot}%{fontconfdir}65-%{fontname}-pilgi.conf +install -pm 0644 -p %{SOURCE12}\ + %{buildroot}%{fontconfdir}65-%{fontname}-pilgibold.conf -%clean -rm -rf $RPM_BUILD_ROOT -%post -if [ -x %{_bindir}/fc-cache ]; then - %{_bindir}/fc-cache %{fontdir} || : -fi +%clean +rm -rf %{buildroot} -%postun -if [ $1 -eq 0 -a -x %{_bindir}/fc-cache ] ; then - %{_bindir}/fc-cache %{fontdir} || : -fi %changelog +* Tue Oct 14 2008 Dennis Jang - 1.0.2-0.6.080608 +- fixed subpackage description and fontconfig. + * Wed Jul 16 2008 Jens Petersen - 1.0.2-0.5.080608 - add subpackages with a macro