source: projects/specs/trunk/T/TrueType-baekmuk/TrueType-baekmuk-vl.spec @ 8178

Revision 8178, 2.7 KB checked in by tanakanata, 10 years ago (diff)

only rebuild

Line 
1%define xfontdir_       %{_datadir}/fonts/ko
2%define xfontdir        %{xfontdir_}/TrueType
3%define gsver           7.07
4%define gslibdir        %{_datadir}/ghostscript/%{gsver}/lib
5
6Summary:        Baekmuk Korean TrueType Fonts
7Summary(ja):    Baekmuk 韓国語 TrueType フォント
8Name:           TrueType-baekmuk
9Version:        2.2
10Release:        3%{?_dist_release}
11License:        BSD
12Group:          User Interface/X
13BuildArch:      noarch
14BuildRoot:      %{_tmppath}/%{name}-%{PACKAGE_VERSION}-root
15BuildRequires:  ghostscript >= %{gsver}
16
17Source0:        http://kldp.net/frs/download.php/1429/baekmuk-ttf-2.2.tar.gz
18Source5:        CIDFnmap.ko
19
20Requires:         chkfontpath, freetype-utils
21Requires:         XOrg-font-utils
22
23%description
24This 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
34install -d $RPM_BUILD_ROOT%{xfontdir}
35install -m 0644 ttf/*.ttf $RPM_BUILD_ROOT%{xfontdir}/
36
37# for ghostscript
38install -d $RPM_BUILD_ROOT%{gslibdir}
39install -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
83* Mon Jan 13 2014 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 2.2-3
84- built with gcc-4.8
85
86* Fri Apr 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2-2
87- rebuild with rpm-4.8.1
88
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
Note: See TracBrowser for help on using the repository browser.