Name: dblatex Version: 0.3.12 Release: 1%{?_dist_release} Summary: DocBook to LaTeX/ConTeXt Publishing Group: publishing Vendor: Project Vine Distribution: Vine Linux License: GPLv2+ URL: http://dblatex.sourceforge.net/ Source0: http://downloads.sourceforge.net/%{name}/%{name}3-%{version}.tar.bz2 # http://docbook.sourceforge.net/release/xsl/current/COPYING Source1: COPYING-docbook-xsl Patch0: dblatex-0.3.11-disable-debian.patch Patch1: dblatex-0.3.11-which-shutil.patch Patch2: dblatex-0.3.11-replace-inkscape-by-rsvg.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: libxslt docbook-dtds ImageMagick ## Need epstopdf, fig2dev BuildRequires: texlive-collection-fontutils BuildRequires: transfig BuildRequires: texlive >= 2020 BuildRequires: texlive-collection-formatsextra BuildRequires: texlive-collection-fontsrecommended BuildRequires: texlive-collection-latexextra BuildRequires: texlive-collection-xetex Requires: libxslt docbook-dtds ImageMagick Requires: texlive >= 2020 Requires: texlive-collection-formatsextra Requires: texlive-collection-fontsrecommended Requires: texlive-collection-latexextra Requires: texlive-collection-xetex Requires: transfig Requires: texlive-collection-langcjk texlive-collection-bibtexextra %description dblatex is a program that transforms your SGML/XMLDocBook documents to DVI, PostScript or PDF by translating them into pure LaTeX as a first process. MathML 2.0 markups are supported, too. It started as a clone of DB2LaTeX. Authors: -------- BenoƮt Guillon Andreas Hoenen %prep %setup -q -n %{name}3-%{version} %patch0 -p1 -b .disable-debian %patch1 -p1 -b .which-shutil %patch2 -p1 -b .rsvg %__rm -rf lib/contrib pathfix%{__default_python3_version}.py -pni "%{__python3} %{py3_shbang_opts}" . %build %{__python3} setup.py build %install %{__python3} setup.py install --root $RPM_BUILD_ROOT pathfix%{__default_python3_version}.py -pni "%{__python3} %{py3_shbang_opts}" $RPM_BUILD_ROOT%{_bindir}/dblatex # these are already in tetex-latex: 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%{_datadir}/texmf/tex/latex/dblatex for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do %__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%{_datadir}/texmf/tex/latex/dblatex/`basename $file` || exit 1; done %__rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style} %__mkdir_p $RPM_BUILD_ROOT%{_sysconfdir}/dblatex # shipped in %%docs %__rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/ %__sed -e 's/\r//' xsl/mathml2/README > README-xsltml touch -r xsl/mathml2/README README-xsltml %__cp -p %{SOURCE1} COPYING-docbook-xsl %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* %license COPYRIGHT COPYING-docbook-xsl %doc docs/manual.pdf README-xsltml %{python3_sitelib}/dbtexmf/ %{python3_sitelib}/dblatex-*.egg-info %{_bindir}/dblatex %{_datadir}/dblatex/ %{_datadir}/texmf/tex/latex/dblatex/ %dir %{_sysconfdir}/dblatex %changelog * Tue Mar 23 2021 Tomohiro "Tomo-p" KATO 0.3.12-1 - new upstream release. * Wed Jan 20 2016 Munehiro Yamamoto 0.3.7-1 - new upstream release * Wed Mar 25 2015 Munehiro Yamamoto 0.3.5-1 - new upstream release * Sun May 25 2014 Munehiro Yamamoto 0.3.4-2 - added BuildRequires: texlive-vtlpkg >= 2013 - added some scriptlets to run mktexlsr * Fri Nov 8 2013 Munehiro Yamamoto 0.3.4-1 - new upstream release * Fri Dec 28 2012 Munehiro Yamamoto 0.3.2-3 - added R: texlive-collection-langcjk texlive-collection-bibtexextra [Vine Linux 0002511] * Sat Feb 25 2012 Munehiro Yamamoto 0.3.2-2 - rebuild with Python 2.7.2 * Fri Jan 20 2012 Munehiro Yamamoto 0.3.2-1 - new upstream release * Thu Jul 14 2011 Munehiro Yamamoto - 0.3-1 - initial build * Tue Feb 08 2011 Fedora Release Engineering - 0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jul 21 2010 David Malcolm - 0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild * Mon Apr 12 2010 Alex Lancaster - 0.3-1 - Update to 0.3 - Cleanup spec: drop some unnecessary conditionals for old releases (< F-11) * Fri Jul 24 2009 Fedora Release Engineering - 0.2.10-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Sun May 10 2009 Neal Becker - 0.2.10-2 - remove dblatex-0.2.9-xetex.patch * Sun May 10 2009 Neal Becker - 0.2.10-1 - Update to 0.2.10 * Tue Feb 24 2009 Fedora Release Engineering - 0.2.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Nov 29 2008 Ignacio Vazquez-Abrams - 0.2.9-3 - Rebuild for Python 2.6 * Fri Jul 4 2008 Alex Lancaster - 0.2.9-2 - BR: texlive-xetex -> tex(xetex) for F-10 and later * Thu Jun 12 2008 Alex Lancaster - 0.2.9-1 - Update to latest upstream (0.2.9) (#448953) - Remove some redundant Requires and BuildRequires (passivetex pulls in the tetex/tex requires, python dep added automatically) - For F-9+ BR on tex(latex) and texlive-xetex, fix the installation scripts to install extra new files. - Add patch from dblatex mailing list for better handling of a missing xetex. - Conditionally add .egg-info file only if F9+ to allow for unified spec file * Sun Dec 16 2007 Patrice Dumas - 0.2.8-2.1 - don't install in docbook directory, it is a link to a versioned directory and may break upon docbook update (#425251,#389231) * Sun Nov 25 2007 Neal Becker - 0.2.8-1 - Update to 0.2.8 * Mon Nov 12 2007 Neal Becker - 0.2.7-16 - convert spec to utf8 - change to gplv2+ * Mon Nov 12 2007 Neal Becker - 0.2.7-15 - Add copyright info * Mon Nov 5 2007 Neal Becker - 0.2.7-14 - Req tetex-fonts for texhash - Fix post, postun * Sun Nov 4 2007 Neal Becker - 0.2.7-13 - Add texhash * Sun Nov 4 2007 Neal Becker - 0.2.7-12 - Fix xsl link * Sat Nov 3 2007 Neal Becker - 0.2.7-12 - Various fixes from pertusus@free.fr: - rm iconv stuff - simplify docs installation * Fri Nov 2 2007 - 0.2.7-11 - Various minor fixes * Thu Nov 1 2007 - 0.2.7-10 - Add some reqs and brs - rmdir /usr/share/dblatex/latex/{misc,contrib/example,style} * Sat Oct 27 2007 - 0.2.7-9 - link /usr/share/dblatex/xsl -> /usr/share/sgml/docbook/xsl-stylesheets/dblatex - rmdir /usr/share/dblatex/latex/{misc,specs,style} - own /etc/dblatex - change $(...) -> `...` - Preserve timestamps on iconv * Mon Oct 15 2007 Neal Becker - 0.2.7-9 - mv all .sty files to datadir/texmf/tex/latex/dblatex - Add Conflicts tetex-tex4ht - mv all xsl stuff to datadir/sgml/docbook/xsl-stylesheets/dblatex/ * Mon Oct 15 2007 Neal Becker - 0.2.7-8 - rm redundant latex files * Tue Sep 25 2007 Neal Becker - 0.2.7-8 - Fixed encodings in docs directory - Install docs at correct location * Fri Sep 21 2007 Neal Becker - 0.2.7-7 - Revert back to GPLv2 - untabify * Fri Sep 21 2007 Neal Becker - 0.2.7-6 - Fix source URL - Install all docs - Tabify * Thu Sep 20 2007 Neal Becker - 0.2.7-5 - Add BR tetex-latex * Thu Sep 20 2007 Neal Becker - 0.2.7-4 - Add BR tetex, ImageMagick * Thu Sep 20 2007 Neal Becker - 0.2.7-3 - Add BR libxslt * Wed Sep 19 2007 Neal Becker - 0.2.7-2 - Add BR python-devel * Fri Sep 7 2007 Neal Becker - 0.2.7-1 - Initial