[521] | 1 | %define xfontdir_ %{_datadir}/fonts/ko |
---|
| 2 | %define xfontdir %{xfontdir_}/TrueType |
---|
| 3 | %define gsver 7.07 |
---|
| 4 | %define gslibdir %{_datadir}/ghostscript/%{gsver}/lib |
---|
| 5 | |
---|
| 6 | Summary: Baekmuk Korean TrueType Fonts |
---|
| 7 | Summary(ja): Baekmuk 韓国語 TrueType フォント |
---|
| 8 | Name: TrueType-baekmuk |
---|
| 9 | Version: 2.2 |
---|
[8178] | 10 | Release: 3%{?_dist_release} |
---|
[521] | 11 | License: BSD |
---|
| 12 | Group: User Interface/X |
---|
| 13 | BuildArch: noarch |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root |
---|
| 15 | BuildRequires: ghostscript >= %{gsver} |
---|
| 16 | |
---|
| 17 | Source0: http://kldp.net/frs/download.php/1429/baekmuk-ttf-2.2.tar.gz |
---|
| 18 | Source5: CIDFnmap.ko |
---|
| 19 | |
---|
[3735] | 20 | Requires: chkfontpath, freetype-utils |
---|
| 21 | Requires: XOrg-font-utils |
---|
[521] | 22 | |
---|
| 23 | %description |
---|
| 24 | This package provides Baekmuk Korean TrueType fonts. |
---|
| 25 | |
---|
| 26 | %prep |
---|
| 27 | %setup -n baekmuk-ttf-%{version} |
---|
| 28 | |
---|
| 29 | %build |
---|
| 30 | |
---|
| 31 | %install |
---|
| 32 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT |
---|
| 33 | |
---|
| 34 | install -d $RPM_BUILD_ROOT%{xfontdir} |
---|
| 35 | install -m 0644 ttf/*.ttf $RPM_BUILD_ROOT%{xfontdir}/ |
---|
| 36 | |
---|
| 37 | # for ghostscript |
---|
| 38 | install -d $RPM_BUILD_ROOT%{gslibdir} |
---|
| 39 | install -m 0644 %{SOURCE5} $RPM_BUILD_ROOT%{gslibdir}/ |
---|
| 40 | |
---|
| 41 | %clean |
---|
| 42 | [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT |
---|
| 43 | |
---|
| 44 | %post |
---|
| 45 | { |
---|
| 46 | /usr/bin/ttmkfdir -d %{xfontdir} -o %{xfontdir}/fonts.scale |
---|
| 47 | /usr/X11R6/bin/mkfontdir %{xfontdir} |
---|
| 48 | /usr/sbin/chkfontpath -q -a %{xfontdir} |
---|
| 49 | if [ -x /usr/bin/vine-update-gnome-font-install ]; then |
---|
| 50 | /usr/bin/vine-update-gnome-font-install |
---|
| 51 | fi |
---|
| 52 | if [ -x /usr/bin/redhat-update-gnome-font-install2 ]; then |
---|
| 53 | /usr/bin/redhat-update-gnome-font-install2 |
---|
| 54 | fi |
---|
| 55 | [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache %{xfontdir} |
---|
| 56 | } >& /dev/null ||: |
---|
| 57 | |
---|
| 58 | %postun |
---|
| 59 | { |
---|
| 60 | /usr/bin/ttmkfdir -d %{xfontdir} -o %{xfontdir}/fonts.scale |
---|
| 61 | /usr/X11R6/bin/mkfontdir %{xfontdir} |
---|
| 62 | if [ "$1" = 0 ]; then |
---|
| 63 | /usr/sbin/chkfontpath -q -r %{xfontdir} |
---|
| 64 | if [ -x /usr/bin/vine-update-gnome-font-install ]; then |
---|
| 65 | /usr/bin/vine-update-gnome-font-install |
---|
| 66 | fi |
---|
| 67 | if [ -x /usr/bin/redhat-update-gnome-font-install2 ]; then |
---|
| 68 | /usr/bin/redhat-update-gnome-font-install2 |
---|
| 69 | fi |
---|
| 70 | [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache %{xfontdir} |
---|
| 71 | fi |
---|
| 72 | } >& /dev/null ||: |
---|
| 73 | |
---|
| 74 | %files |
---|
| 75 | %defattr(-, root, root) |
---|
| 76 | %doc README COPYRIGHT COPYRIGHT.ks |
---|
| 77 | %attr(0755, root, root) %dir %{xfontdir_} |
---|
| 78 | %attr(0755, root, root) %dir %{xfontdir} |
---|
| 79 | %{xfontdir}/*.ttf |
---|
| 80 | %{gslibdir}/CIDFnmap.ko |
---|
| 81 | |
---|
| 82 | %changelog |
---|
[8178] | 83 | * Mon Jan 13 2014 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 2.2-3 |
---|
| 84 | - built with gcc-4.8 |
---|
| 85 | |
---|
[3735] | 86 | * Fri Apr 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2-2 |
---|
| 87 | - rebuild with rpm-4.8.1 |
---|
| 88 | |
---|
[521] | 89 | * Sun Oct 05 2008 Shu KONNO <owa@bg.wakwak.com> 2.2-1vl5 |
---|
| 90 | - applied new versioning policy, spec in utf-8 |
---|
| 91 | |
---|
| 92 | * Fri Apr 15 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2-0vl1 |
---|
| 93 | - new upstream source |
---|
| 94 | |
---|
| 95 | * Wed Aug 25 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1-0vl1 |
---|
| 96 | - initial build for Vine Linux |
---|