|
@@ -6,14 +6,34 @@
|
|
## for 8.xx
|
|
## for 8.xx
|
|
%define gsfontdir %{_datadir}/ghostscript/%{gsversion}/Resource/CIDFont
|
|
%define gsfontdir %{_datadir}/ghostscript/%{gsversion}/Resource/CIDFont
|
|
%define gsfontspecdir %{_datadir}/ghostscript/%{gsversion}/Resource/Font
|
|
%define gsfontspecdir %{_datadir}/ghostscript/%{gsversion}/Resource/Font
|
|
-%define texfontdir %{_datadir}/texmf/fonts/opentype
|
|
+%define texfontdir %{_datadir}/texmf/fonts/opentype/morisawa
|
|
|
|
|
|
-%define texmf %{_datadir}/texmf
|
|
+## use some macros for %post, %posttrans
|
|
-%define mapdir %{texmf}/fonts/map/dvipdfm
|
|
+%define touch_run(%1) %{expand:( %__mkdir_p /var/run/texlive; touch /var/run/texlive/run-%1; )
|
|
-%define build_texmf %{buildroot}%{texmf}
|
|
+}
|
|
-%define build_mapdir %{buildroot}%{mapdir}
|
|
+%define exec_upddeffont [ -x %{_sbindir}/update-defaultfont ] && \\\
|
|
-
|
|
+ %{_sbindir}/update-defaultfont 2> /dev/null
|
|
-%define exec_updmap_otf [ -x %{_bindir}/updmap-otf ] && %{_bindir}/env - %{_bindir}/updmap-otf auto 2> /dev/null
|
|
+%define exec_texhash [ -e /var/run/texlive/run-texhash ] && ( \\\
|
|
|
|
+ [ -x %{_bindir}/texhash ] && \\\
|
|
|
|
+ echo -n " "; echo -n "Running texhash... "; \\\
|
|
|
|
+ %{_bindir}/texhash 2> /dev/null; \\\
|
|
|
|
+ echo "done." ) && %__rm -f /var/run/texlive/run-texhash;
|
|
|
|
+%define exec_mtxrun [ -e /var/run/texlive/run-mtxrun ] && ( \\\
|
|
|
|
+ [ -x %{_bindir}/mtxrun ] && \\\
|
|
|
|
+ echo -n " "; echo -n "Running mtxrun... "; \\\
|
|
|
|
+ export TEXMF=%{texmf}-dist TEXMFCNF=%{texmf}/web2c TEXMFCACHE=%{texmfsysvar}; \\\
|
|
|
|
+ %{_bindir}/mtxrun --generate &> /dev/null; \\\
|
|
|
|
+ echo "done." ) && %__rm -f /var/run/texlive/run-mtxrun;
|
|
|
|
+%define exec_fmtutil [ -e /var/run/texlive/run-fmtutil ] && ( \\\
|
|
|
|
+ [ -x %{_bindir}/fmtutil-sys ] && \\\
|
|
|
|
+ echo -n " "; echo -n "Running fmtutil-sys... "; \\\
|
|
|
|
+ %{_bindir}/fmtutil-sys --all &> /dev/null; \\\
|
|
|
|
+ echo "done." ) && %__rm -f /var/run/texlive/run-fmtutil;
|
|
|
|
+%define exec_updmap [ -e /var/run/texlive/run-updmap ] && ( \\\
|
|
|
|
+ [ -x %{_bindir}/updmap-sys ] && \\\
|
|
|
|
+ echo -n " "; echo -n "Running updmap-sys... "; \\\
|
|
|
|
+ %{_bindir}/updmap-sys --nohash --quiet &> /dev/null; \\\
|
|
|
|
+ echo "done." ) && %__rm -f /var/run/texlive/run-updmap;
|
|
|
|
|
|
%define FontList \\\
|
|
%define FontList \\\
|
|
RyuminPro-Light,Japan \\\
|
|
RyuminPro-Light,Japan \\\
|
|
@@ -227,7 +247,7 @@ Summary: Morisawa Japanese/English OpenType Font Basic 7 fonts
|
|
Summary(ja): 日本語 モリサワ OpenType フォント(基本7書体)
|
|
Summary(ja): 日本語 モリサワ OpenType フォント(基本7書体)
|
|
Name: OpenType-morisawa
|
|
Name: OpenType-morisawa
|
|
Version: 1.0
|
|
Version: 1.0
|
|
-Release: 4%{?_dist_release}
|
|
+Release: 5%{?_dist_release}
|
|
BuildArch: noarch
|
|
BuildArch: noarch
|
|
|
|
|
|
Source0: DUMMY
|
|
Source0: DUMMY
|
|
@@ -281,8 +301,6 @@ NoSource: 0
|
|
# %endif
|
|
# %endif
|
|
%endif
|
|
%endif
|
|
|
|
|
|
-Source100: otf-morisawa-RmSgSmg.map
|
|
|
|
-
|
|
|
|
License: Morisawa & Company Ltd.
|
|
License: Morisawa & Company Ltd.
|
|
URL: http://www.morisawa.co.jp
|
|
URL: http://www.morisawa.co.jp
|
|
Group: User Interface/X
|
|
Group: User Interface/X
|
|
@@ -292,8 +310,8 @@ Obsoletes: OTF-Morisawa-basic7 < 1.0-3
|
|
Obsoletes: OTF-Morisawa-RmSgSmg < 1.0-3
|
|
Obsoletes: OTF-Morisawa-RmSgSmg < 1.0-3
|
|
Obsoletes: OTF-Morisawa-extras < 1.0-3
|
|
Obsoletes: OTF-Morisawa-extras < 1.0-3
|
|
|
|
|
|
-Requires(post): fontconfig ghostscript texmacro-otf
|
|
+Requires(post): fontconfig ghostscript
|
|
-Requires(postun): fontconfig ghostscript texmacro-otf
|
|
+Requires(postun): fontconfig ghostscript
|
|
|
|
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -387,25 +405,24 @@ for i in %{FontList}; do
|
|
done
|
|
done
|
|
done
|
|
done
|
|
|
|
|
|
-
|
|
|
|
-%__mkdir -p %{build_mapdir}
|
|
|
|
-%__install -m 644 %{SOURCE100} %{build_mapdir}/
|
|
|
|
-
|
|
|
|
-
|
|
|
|
%post
|
|
%post
|
|
%__font_install_post %{xfontdir}
|
|
%__font_install_post %{xfontdir}
|
|
|
|
|
|
-%{exec_updmap_otf}
|
|
+%touch_run texhash
|
|
exit 0
|
|
exit 0
|
|
|
|
|
|
%postun
|
|
%postun
|
|
%__font_install_postun %{xfontdir}
|
|
%__font_install_postun %{xfontdir}
|
|
|
|
|
|
if [ "$1" = "0" ]; then
|
|
if [ "$1" = "0" ]; then
|
|
- %{exec_updmap_otf}
|
|
+ %touch_run texhash
|
|
fi
|
|
fi
|
|
exit 0
|
|
exit 0
|
|
|
|
|
|
|
|
+%posttrans
|
|
|
|
+%{exec_texhash}
|
|
|
|
+exit 0
|
|
|
|
+
|
|
%clean
|
|
%clean
|
|
%__rm -rf %{buildroot}
|
|
%__rm -rf %{buildroot}
|
|
|
|
|
|
@@ -418,6 +435,10 @@ exit 0
|
|
%{texfontdir}/*
|
|
%{texfontdir}/*
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Nov 24 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-5
|
|
|
|
+- TeX Live 2012
|
|
|
|
+- change %%texfontdir
|
|
|
|
+
|
|
* Sun Mar 4 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-4
|
|
* Sun Mar 4 2012 Munehiro Yamamoto <munepi@vinelinux.org> 1.0-4
|
|
- dropped Requires(post): chkfontpath
|
|
- dropped Requires(post): chkfontpath
|
|
|
|
|