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

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

only rebuild

Line 
1%define version 0.3
2%define release 3%{?_dist_release}
3%define hanamin_date 20081115
4%define ttfjp_version 6.0
5
6%define fontdir %{_datadir}/fonts/%{name}/
7
8Summary: HanaMin+SazanamiMincho True Type Font
9Summary(ja): ハナミン+さざなみ明朝 合成 TrueType フォント
10Name: TrueType-hanaminplus
11Version: %{version}
12Release: %{release}
13
14License: BSD Like
15Group: User Interface/X
16
17# HanMinPlus
18Source0: HanaMin-Plus-%{hanamin_date}.tar.bz2
19
20Source10: 59-hanaminplus.conf
21
22Source20: cidfmap.ja.hanaminplus
23
24Distribution: Vine Linux
25Vendor: Project Vine
26
27BuildArch: noarch
28Buildroot: %{_tmppath}/%{name}-%{version}-root
29Requires(post): mktcapdir >= 0.5.4
30Requires(post): fontconfig, xorg-x11-font-utils
31Provides: TrueTypeFonts_jp = %{ttfjp_version}
32Obsoletes: TrueTypeFonts_jp < 4.1
33Obsoletes: TrueType-kochi <= 4.4.1
34
35Obsoletes: TrueType-sazanami < 3.0
36
37%description
38HanaMin+SazanamiMincho font - Free Japanese True Type Font
39- HanaMin Plus
40
41%description -l ja
42このパッケージには以下のフリーの日本語 True Type フォントが含まれています。
43- HanaMin Plus
44
45%prep
46rm -rf ${RPM_BUILD_ROOT}
47
48%setup -n %{name} -c -a 0
49mv HanaMin-Plus/*.ttf .
50
51%install
52
53mkdir -p $RPM_BUILD_ROOT/%{fontdir}
54install -m664 *.ttf $RPM_BUILD_ROOT/%{fontdir}
55mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.{avail,d}
56install -m664 %{SOURCE10} $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.avail/
57for i in $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.avail/*.conf
58do
59  ln -sf ../conf.avail/$(basename $i) $RPM_BUILD_ROOT/%{_sysconfdir}/fonts/conf.d/
60done
61
62# install ghostscript8 cidfmap
63mkdir -p $RPM_BUILD_ROOT%{_datadir}/ghostscript/conf.d
64install -m644 %{SOURCE20} $RPM_BUILD_ROOT%{_datadir}/ghostscript/conf.d
65
66%post
67%__font_install_post %{fontdir}
68
69%postun
70%__font_install_postun %{fontdir}
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75%files
76%defattr(-,root,root)
77%doc HanaMin-Plus/*
78%{fontdir}/*
79%{_sysconfdir}/fonts/conf.avail/*.conf
80%config(missingok,noreplace) %{_sysconfdir}/fonts/conf.d/*.conf
81%config %{_datadir}/ghostscript/conf.d/cidfmap.ja.*
82
83%changelog
84* Mon Jan 13 2014 TANAKA hiroaki <mosaicist@jcom.home.ne.jp> 0.3-3
85- built with gcc-4.8
86
87* Fri Apr 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3-2
88- rebuild with rpm-4.8.1
89
90* Wed Apr 22 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3-1
91- use %%__font_install_{post,postun} macros
92
93* Tue Mar 31 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-3
94- remove Requires/Requires(post): TrueType-base
95
96* Fri Mar 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-2
97- remove Requires: TrueType-sazanami
98
99* Mon Nov 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.2-1
100- update to HanaMinPlus 20081115
101
102* Sat Nov 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.1-1
103- initial build
104  - HanaMin Plus (hanazono-20081012 + sazanami-20040629)
Note: See TracBrowser for help on using the repository browser.