|
@@ -1,25 +1,29 @@
|
|
-%define _fontdir %{_datadir}/fonts/OpenType-mikachan
|
|
|
|
|
|
+%define _fontdir %{_datadir}/fonts/%{name}
|
|
|
|
|
|
Summary: Free Japanese Handwriting OpenType Font (mikachan_o)
|
|
Summary: Free Japanese Handwriting OpenType Font (mikachan_o)
|
|
Summary(ja): フリーの手書き風日本語 OpenType フォント (みかちゃん_o)
|
|
Summary(ja): フリーの手書き風日本語 OpenType フォント (みかちゃん_o)
|
|
Name: OpenType-mikachan
|
|
Name: OpenType-mikachan
|
|
Version: 9.1
|
|
Version: 9.1
|
|
-Release: 2%{?_dist_release}
|
|
|
|
|
|
+Release: 3%{?_dist_release}
|
|
URL: http://mikachan-font.com/
|
|
URL: http://mikachan-font.com/
|
|
License: distributable
|
|
License: distributable
|
|
Group: User Interface/X
|
|
Group: User Interface/X
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: lha
|
|
BuildRequires: lha
|
|
-Provides: mikachanfont
|
|
|
|
Requires(post): xorg-x11-font-utils
|
|
Requires(post): xorg-x11-font-utils
|
|
Requires(postun): xorg-x11-font-utils
|
|
Requires(postun): xorg-x11-font-utils
|
|
|
|
|
|
|
|
+## Ver9.1 2005.02.12
|
|
|
|
+## see chksrc() in %%prep
|
|
Source0: http://mikachan.sourceforge.jp/mikachan_o.lzh
|
|
Source0: http://mikachan.sourceforge.jp/mikachan_o.lzh
|
|
Source1: http://mikachan.sourceforge.jp/mikachanP_o.lzh
|
|
Source1: http://mikachan.sourceforge.jp/mikachanP_o.lzh
|
|
Source2: http://mikachan.sourceforge.jp/mikachanPB_o.lzh
|
|
Source2: http://mikachan.sourceforge.jp/mikachanPB_o.lzh
|
|
Source3: http://mikachan.sourceforge.jp/mikachanPS_o.lzh
|
|
Source3: http://mikachan.sourceforge.jp/mikachanPS_o.lzh
|
|
|
|
|
|
|
|
+## vine
|
|
|
|
+Source10: README.vine
|
|
|
|
+
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
|
|
|
|
@@ -59,6 +63,24 @@ It is possible to display following characters.
|
|
- 漢字 (教育/常用/人名/JIS第1水準/JIS第2水準/IBM拡張)
|
|
- 漢字 (教育/常用/人名/JIS第1水準/JIS第2水準/IBM拡張)
|
|
|
|
|
|
%prep
|
|
%prep
|
|
|
|
+## check sha1sum of sources
|
|
|
|
+## For any mikachan*.lzh archives,
|
|
|
|
+## its filename has no versioning informations.
|
|
|
|
+chksrc(){
|
|
|
|
+ cd %_sourcedir
|
|
|
|
+#ad1b8d96e20f398661a18e4ba7704881705e1e21 mikachanPB_o.lzh
|
|
|
|
+ sha1sum -c --quiet - <<EOT
|
|
|
|
+ad1b8d96e20f398661a18e4ba7704881705e1e21 mikachanPB_o.lzh
|
|
|
|
+cca9a25cbff69fbdd1f03c7c07dae17f9bc183f0 mikachanPS_o.lzh
|
|
|
|
+da5f64708e108fe97f989587abe7153a488651d0 mikachanP_o.lzh
|
|
|
|
+3896763b947fd4f5510fb3348435efce15879db6 mikachan_o.lzh
|
|
|
|
+EOT
|
|
|
|
+ [ $? -eq 1 ] && return 1
|
|
|
|
+ cd -
|
|
|
|
+ return 0
|
|
|
|
+}
|
|
|
|
+chksrc || exit 1
|
|
|
|
+
|
|
%setup -n %{name}-%{version} -c -T
|
|
%setup -n %{name}-%{version} -c -T
|
|
|
|
|
|
if `%{_bindir}/lha l --archive-kanji-code=sjis %{SOURCE0} > /dev/null 2>&1`
|
|
if `%{_bindir}/lha l --archive-kanji-code=sjis %{SOURCE0} > /dev/null 2>&1`
|
|
@@ -80,6 +102,9 @@ for i in *.otf ; do
|
|
| %__sed -e 's/みかちゃん/mikachan/'`
|
|
| %__sed -e 's/みかちゃん/mikachan/'`
|
|
done
|
|
done
|
|
|
|
|
|
|
|
+## copy README.vine
|
|
|
|
+%__cp %{SOURCE10} .
|
|
|
|
+
|
|
%build
|
|
%build
|
|
|
|
|
|
%install
|
|
%install
|
|
@@ -88,19 +113,27 @@ done
|
|
%__install -m644 -p *.otf %{buildroot}%{_fontdir}
|
|
%__install -m644 -p *.otf %{buildroot}%{_fontdir}
|
|
|
|
|
|
%post
|
|
%post
|
|
-( umask 133 ; %{_bindir}/fc-cache %{_fontdir} ) ||:
|
|
|
|
|
|
+%__font_install_post %{_fontdir}
|
|
|
|
|
|
%postun
|
|
%postun
|
|
-( umask 133 ; %{_bindir}/fc-cache %{_fontdir} ) ||:
|
|
|
|
|
|
+%__font_install_postun %{_fontdir}
|
|
|
|
|
|
%clean
|
|
%clean
|
|
%__rm -rf %{buildroot}
|
|
%__rm -rf %{buildroot}
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
|
|
+%doc README.vine
|
|
%{_fontdir}/*
|
|
%{_fontdir}/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Jun 2 2011 Munehiro Yamamoto <munepi@vinelinux.org> 9.1-3
|
|
|
|
+- added README.vine
|
|
|
|
+- drooped Provides: mikachanfont
|
|
|
|
+- checked sha1sum of sources
|
|
|
|
+ - defined chksrc() in %%prep
|
|
|
|
+- use %%__font_install_post, %%__font_install_postun
|
|
|
|
+
|
|
* Sat Jun 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 9.1-2vl5
|
|
* Sat Jun 20 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 9.1-2vl5
|
|
- changed font path
|
|
- changed font path
|
|
|
|
|