Browse Source

added BuildRequires: texlive-vtlpkg >= 2013

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@8478 ec354946-7b23-47d6-9f5a-488ba84defc7
munepi 10 years ago
parent
commit
4ae016d102
1 changed files with 22 additions and 6 deletions
  1. 22 6
      d/dblatex/dblatex-vl.spec

+ 22 - 6
d/dblatex/dblatex-vl.spec

@@ -2,7 +2,7 @@
 
 Name:		dblatex
 Version:	0.3.4
-Release:	1%{?_dist_release}
+Release:	2%{?_dist_release}
 Summary:	DocBook to LaTeX/ConTeXt Publishing
 BuildArch:	noarch
 Group:		Applications/Publishing
@@ -18,6 +18,7 @@ Patch10:	dblatex-0.3.4-no-deb.patch
 
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
+BuildRequires:  texlive-vtlpkg >= 2013
 BuildRequires:  python-devel 
 BuildRequires:  python-which
 BuildRequires:  libxslt docbook-dtds ImageMagick
@@ -26,7 +27,7 @@ BuildRequires:	texlive-collection-fontutils
 BuildRequires:	transfig
 ##BuildRequires:  tex(latex)
 ##BuildRequires:  tex(xetex)
-BuildRequires:  texlive-common >= 2009
+BuildRequires:  texlive-common >= 2013
 ## appendix.sty, changebar.sty, footmisc.sty, multirow.sty, 
 ## overpic.sty, subfigure.sty, titlesec.sty
 BuildRequires:  texlive-collection-latexextra
@@ -101,6 +102,21 @@ touch -r xsl/mathml2/README README-xsltml
 %__rm -rf $RPM_BUILD_ROOT
 
 
+%post
+%_tl_touch_run texhash
+exit 0
+
+%postun
+if [ "$1" = 0 ]; then
+   %_tl_touch_run texhash
+fi
+exit 0
+
+%posttrans
+%{_tl_exec_texhash}
+exit 0
+
+
 %files
 %defattr(-,root,root,-)
 %{_mandir}/man1/dblatex.1*
@@ -112,11 +128,11 @@ touch -r xsl/mathml2/README README-xsltml
 %{_datadir}/texmf/tex/latex/dblatex/
 %dir %{_sysconfdir}/dblatex
 
-%post -p /usr/bin/texhash
-
-%postun -p /usr/bin/texhash
-
 %changelog
+* Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.4-2
+- added BuildRequires: texlive-vtlpkg >= 2013
+- added some scriptlets to run mktexlsr
+
 * Fri Nov  8 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.4-1
 - new upstream release