dblatex-vl.spec 7.7 KB

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