|
@@ -1,8 +1,8 @@
|
|
|
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
|
|
|
Name: dblatex
|
|
|
-Version: 0.3.2
|
|
|
-Release: 4%{?_dist_release}
|
|
|
+Version: 0.3.4
|
|
|
+Release: 1%{?_dist_release}
|
|
|
Summary: DocBook to LaTeX/ConTeXt Publishing
|
|
|
BuildArch: noarch
|
|
|
Group: Applications/Publishing
|
|
@@ -12,6 +12,10 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
|
|
|
#Source1: http://docbook.sourceforge.net/release/xsl/current/COPYING
|
|
|
Source1: COPYING-docbook-xsl
|
|
|
Patch0: dblatex-0.2.7-external-which.patch
|
|
|
+
|
|
|
+##!! ad-hoc patch for no deb
|
|
|
+Patch10: dblatex-0.3.4-no-deb.patch
|
|
|
+
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
|
BuildRequires: python-devel
|
|
@@ -20,10 +24,9 @@ BuildRequires: libxslt docbook-dtds ImageMagick
|
|
|
## Need epstopdf, fig2dev
|
|
|
BuildRequires: texlive-collection-fontutils
|
|
|
BuildRequires: transfig
|
|
|
-BuildRequires: texlive-vtlpkg >= 2013
|
|
|
##BuildRequires: tex(latex)
|
|
|
##BuildRequires: tex(xetex)
|
|
|
-BuildRequires: texlive >= 2013
|
|
|
+BuildRequires: texlive-common >= 2009
|
|
|
## appendix.sty, changebar.sty, footmisc.sty, multirow.sty,
|
|
|
## overpic.sty, subfigure.sty, titlesec.sty
|
|
|
BuildRequires: texlive-collection-latexextra
|
|
@@ -32,7 +35,7 @@ BuildRequires: texlive-collection-mathextra
|
|
|
BuildRequires: texlive-collection-htmlxml
|
|
|
Requires: libxslt docbook-dtds ImageMagick
|
|
|
##Requires: tex(xetex)
|
|
|
-Requires: texlive >= 2013
|
|
|
+Requires: texlive-common >= 2009
|
|
|
Requires: texlive-collection-latexextra
|
|
|
Requires: transfig
|
|
|
BuildRequires: texlive-collection-mathextra
|
|
@@ -57,6 +60,7 @@ Authors:
|
|
|
%prep
|
|
|
%setup -q
|
|
|
%patch0 -p1 -b .external-which
|
|
|
+%patch10 -p1 -b .no-deb
|
|
|
%__rm -rf lib/contrib
|
|
|
|
|
|
%build
|
|
@@ -72,14 +76,14 @@ for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do
|
|
|
%__rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file
|
|
|
done
|
|
|
|
|
|
-%__mkdir_p $RPM_BUILD_ROOT%{_tl_texmfvine}/tex/latex/dblatex
|
|
|
+%__mkdir_p $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex
|
|
|
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do
|
|
|
- %__mv $file $RPM_BUILD_ROOT%{_tl_texmfvine}/tex/latex/dblatex/`basename $file` || exit 1;
|
|
|
+ %__mv $file $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex/`basename $file` || exit 1;
|
|
|
done
|
|
|
|
|
|
## also move .xetex files
|
|
|
for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do
|
|
|
- %__mv $file $RPM_BUILD_ROOT%{_tl_texmfvine}/tex/latex/dblatex/`basename $file` || exit 1;
|
|
|
+ %__mv $file $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex/`basename $file` || exit 1;
|
|
|
done
|
|
|
|
|
|
%__rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style}
|
|
@@ -97,21 +101,6 @@ 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*
|
|
@@ -120,13 +109,16 @@ exit 0
|
|
|
%{python_sitelib}/dblatex-*.egg-info
|
|
|
%{_bindir}/dblatex
|
|
|
%{_datadir}/dblatex/
|
|
|
-%{_tl_texmfvine}/tex/latex/dblatex/
|
|
|
+%{_datadir}/texmf/tex/latex/dblatex/
|
|
|
%dir %{_sysconfdir}/dblatex
|
|
|
|
|
|
+%post -p /usr/bin/texhash
|
|
|
+
|
|
|
+%postun -p /usr/bin/texhash
|
|
|
|
|
|
%changelog
|
|
|
-* Thu Aug 29 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.2-4
|
|
|
-- added BuildRequires: texlive-vtlpkg
|
|
|
+* Fri Nov 8 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.4-1
|
|
|
+- new upstream release
|
|
|
|
|
|
* Fri Dec 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.2-3
|
|
|
- added R: texlive-collection-langcjk texlive-collection-bibtexextra [Vine Linux 0002511]
|