dblatex-vl.spec 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. Name: dblatex
  2. Version: 0.3.12
  3. Release: 1%{?_dist_release}
  4. Summary: DocBook to LaTeX/ConTeXt Publishing
  5. Group: publishing
  6. Vendor: Project Vine
  7. Distribution: Vine Linux
  8. License: GPLv2+
  9. URL: http://dblatex.sourceforge.net/
  10. Source0: http://downloads.sourceforge.net/%{name}/%{name}3-%{version}.tar.bz2
  11. # http://docbook.sourceforge.net/release/xsl/current/COPYING
  12. Source1: COPYING-docbook-xsl
  13. Patch0: dblatex-0.3.11-disable-debian.patch
  14. Patch1: dblatex-0.3.11-which-shutil.patch
  15. Patch2: dblatex-0.3.11-replace-inkscape-by-rsvg.patch
  16. BuildArch: noarch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  18. BuildRequires: python3-devel
  19. BuildRequires: python3-setuptools
  20. BuildRequires: libxslt docbook-dtds ImageMagick
  21. ## Need epstopdf, fig2dev
  22. BuildRequires: texlive-collection-fontutils
  23. BuildRequires: transfig
  24. BuildRequires: texlive >= 2020
  25. BuildRequires: texlive-collection-formatsextra
  26. BuildRequires: texlive-collection-fontsrecommended
  27. BuildRequires: texlive-collection-latexextra
  28. BuildRequires: texlive-collection-xetex
  29. Requires: libxslt docbook-dtds ImageMagick
  30. Requires: texlive >= 2020
  31. Requires: texlive-collection-formatsextra
  32. Requires: texlive-collection-fontsrecommended
  33. Requires: texlive-collection-latexextra
  34. Requires: texlive-collection-xetex
  35. Requires: transfig
  36. Requires: texlive-collection-langcjk texlive-collection-bibtexextra
  37. %description
  38. dblatex is a program that transforms your SGML/XMLDocBook
  39. documents to DVI, PostScript or PDF by translating them
  40. into pure LaTeX as a first process. MathML 2.0 markups
  41. are supported, too. It started as a clone of DB2LaTeX.
  42. Authors:
  43. --------
  44. Benoît Guillon <marsgui at users dot sourceforge dot net>
  45. Andreas Hoenen <andreas dot hoenen at arcor dot de>
  46. %prep
  47. %setup -q -n %{name}3-%{version}
  48. %patch0 -p1 -b .disable-debian
  49. %patch1 -p1 -b .which-shutil
  50. %patch2 -p1 -b .rsvg
  51. %__rm -rf lib/contrib
  52. pathfix%{__default_python3_version}.py -pni "%{__python3} %{py3_shbang_opts}" .
  53. %build
  54. %{__python3} setup.py build
  55. %install
  56. %{__python3} setup.py install --root $RPM_BUILD_ROOT
  57. pathfix%{__default_python3_version}.py -pni "%{__python3} %{py3_shbang_opts}" $RPM_BUILD_ROOT%{_bindir}/dblatex
  58. # these are already in tetex-latex:
  59. for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do
  60. %__rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file
  61. done
  62. %__mkdir_p $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex
  63. for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do
  64. %__mv $file $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex/`basename $file` || exit 1;
  65. done
  66. ## also move .xetex files
  67. for file in ` find $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do
  68. %__mv $file $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/dblatex/`basename $file` || exit 1;
  69. done
  70. %__rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style}
  71. %__mkdir_p $RPM_BUILD_ROOT%{_sysconfdir}/dblatex
  72. # shipped in %%docs
  73. %__rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
  74. %__sed -e 's/\r//' xsl/mathml2/README > README-xsltml
  75. touch -r xsl/mathml2/README README-xsltml
  76. %__cp -p %{SOURCE1} COPYING-docbook-xsl
  77. %post
  78. %_tl_touch_run texhash
  79. exit 0
  80. %postun
  81. if [ "$1" = 0 ]; then
  82. %_tl_touch_run texhash
  83. fi
  84. exit 0
  85. %posttrans
  86. %{_tl_exec_texhash}
  87. exit 0
  88. %files
  89. %defattr(-,root,root,-)
  90. %{_mandir}/man1/dblatex.1*
  91. %license COPYRIGHT COPYING-docbook-xsl
  92. %doc docs/manual.pdf README-xsltml
  93. %{python3_sitelib}/dbtexmf/
  94. %{python3_sitelib}/dblatex-*.egg-info
  95. %{_bindir}/dblatex
  96. %{_datadir}/dblatex/
  97. %{_datadir}/texmf/tex/latex/dblatex/
  98. %dir %{_sysconfdir}/dblatex
  99. %changelog
  100. * Tue Mar 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.3.12-1
  101. - new upstream release.
  102. * Wed Jan 20 2016 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.7-1
  103. - new upstream release
  104. * Wed Mar 25 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.5-1
  105. - new upstream release
  106. * Sun May 25 2014 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.4-2
  107. - added BuildRequires: texlive-vtlpkg >= 2013
  108. - added some scriptlets to run mktexlsr
  109. * Fri Nov 8 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.4-1
  110. - new upstream release
  111. * Fri Dec 28 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.2-3
  112. - added R: texlive-collection-langcjk texlive-collection-bibtexextra [Vine Linux 0002511]
  113. * Sat Feb 25 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.2-2
  114. - rebuild with Python 2.7.2
  115. * Fri Jan 20 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.3.2-1
  116. - new upstream release
  117. * Thu Jul 14 2011 Munehiro Yamamoto <munepi@vinelinux.org> - 0.3-1
  118. - initial build
  119. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-3
  120. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  121. * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3-2
  122. - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
  123. * Mon Apr 12 2010 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.3-1
  124. - Update to 0.3
  125. - Cleanup spec: drop some unnecessary conditionals for old releases (< F-11)
  126. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.10-3
  127. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  128. * Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-2
  129. - remove dblatex-0.2.9-xetex.patch
  130. * Sun May 10 2009 Neal Becker <ndbecker2@gmail.com> - 0.2.10-1
  131. - Update to 0.2.10
  132. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.9-4
  133. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  134. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.2.9-3
  135. - Rebuild for Python 2.6
  136. * Fri Jul 4 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-2
  137. - BR: texlive-xetex -> tex(xetex) for F-10 and later
  138. * Thu Jun 12 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 0.2.9-1
  139. - Update to latest upstream (0.2.9) (#448953)
  140. - Remove some redundant Requires and BuildRequires (passivetex pulls
  141. in the tetex/tex requires, python dep added automatically)
  142. - For F-9+ BR on tex(latex) and texlive-xetex, fix the installation
  143. scripts to install extra new files.
  144. - Add patch from dblatex mailing list for better handling of a missing
  145. xetex.
  146. - Conditionally add .egg-info file only if F9+ to allow for unified
  147. spec file
  148. * Sun Dec 16 2007 Patrice Dumas <pertusus@free.fr> - 0.2.8-2.1
  149. - don't install in docbook directory, it is a link to a versioned
  150. directory and may break upon docbook update (#425251,#389231)
  151. * Sun Nov 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.8-1
  152. - Update to 0.2.8
  153. * Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-16
  154. - convert spec to utf8
  155. - change to gplv2+
  156. * Mon Nov 12 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-15
  157. - Add copyright info
  158. * Mon Nov 5 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-14
  159. - Req tetex-fonts for texhash
  160. - Fix post, postun
  161. * Sun Nov 4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-13
  162. - Add texhash
  163. * Sun Nov 4 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12
  164. - Fix xsl link
  165. * Sat Nov 3 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-12
  166. - Various fixes from pertusus@free.fr:
  167. - rm iconv stuff
  168. - simplify docs installation
  169. * Fri Nov 2 2007 <ndbecker2@gmail.com> - 0.2.7-11
  170. - Various minor fixes
  171. * Thu Nov 1 2007 <ndbecker2@gmail.com> - 0.2.7-10
  172. - Add some reqs and brs
  173. - rmdir /usr/share/dblatex/latex/{misc,contrib/example,style}
  174. * Sat Oct 27 2007 <ndbecker2@gmail.com> - 0.2.7-9
  175. - link /usr/share/dblatex/xsl -> /usr/share/sgml/docbook/xsl-stylesheets/dblatex
  176. - rmdir /usr/share/dblatex/latex/{misc,specs,style}
  177. - own /etc/dblatex
  178. - change $(...) -> `...`
  179. - Preserve timestamps on iconv
  180. * Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-9
  181. - mv all .sty files to datadir/texmf/tex/latex/dblatex
  182. - Add Conflicts tetex-tex4ht
  183. - mv all xsl stuff to datadir/sgml/docbook/xsl-stylesheets/dblatex/
  184. * Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8
  185. - rm redundant latex files
  186. * Tue Sep 25 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-8
  187. - Fixed encodings in docs directory
  188. - Install docs at correct location
  189. * Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-7
  190. - Revert back to GPLv2
  191. - untabify
  192. * Fri Sep 21 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-6
  193. - Fix source URL
  194. - Install all docs
  195. - Tabify
  196. * Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-5
  197. - Add BR tetex-latex
  198. * Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-4
  199. - Add BR tetex, ImageMagick
  200. * Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-3
  201. - Add BR libxslt
  202. * Wed Sep 19 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-2
  203. - Add BR python-devel
  204. * Fri Sep 7 2007 Neal Becker <ndbecker2@gmail.com> - 0.2.7-1
  205. - Initial