/[packages]/cauldron/dblatex/current/SPECS/dblatex.spec
ViewVC logotype

Contents of /cauldron/dblatex/current/SPECS/dblatex.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 638771 - (show annotations) (download)
Mon Jun 23 00:31:49 2014 UTC (9 years, 10 months ago) by malo
File size: 2662 byte(s)
update to 0.3.5
1 %define bootstrap 1
2 %{?_without_bootstrap: %global bootstrap 0}
3 %{?_with_bootstrap: %global bootstrap 1}
4
5 Name: dblatex
6 Version: 0.3.5
7 Release: %mkrel 1
8 Summary: DocBook to LaTeX/ConTeXt Publishing
9 BuildArch: noarch
10 Group: Publishing
11 License: GPLv2+
12 URL: http://dblatex.sourceforge.net/
13 Source0: http://downloads.sourceforge.net/dblatex/dblatex-%{version}.tar.bz2
14 #Source1: http://docbook.sourceforge.net/release/xsl/current/COPYING
15 Source1: COPYING-docbook-xsl
16 Patch0: dblatex-0.2.7-external-which.patch
17 Patch1: dblatex-0.3.4-disable-debian.patch
18
19 %py_requires -d
20 BuildRequires: libxslt-proc texlive
21 %if !%bootstrap
22 BuildRequires: imagemagick
23 %endif
24 BuildRequires: latex texlive-texmf python-which
25 Requires: libxslt-proc docbook-dtd44-xml xmltex latex
26 %if !%bootstrap
27 Requires: imagemagick
28 %endif
29 Requires: transfig
30 #BuildRequires: tetex-fonts
31 Requires(post): texlive
32 Requires(postun): texlive
33
34 %description
35 dblatex is a program that transforms your SGML/XMLDocBook
36 documents to DVI, PostScript or PDF by translating them
37 into pure LaTeX as a first process. MathML 2.0 markups
38 are supported, too. It started as a clone of DB2LaTeX.
39
40 Authors: Benoit Guillon <marsgui at users dot sourceforge dot net> and
41 Andreas Hoenen <andreas dot hoenen at arcor dot de>
42
43
44 %prep
45 %setup -q
46 %patch0 -p1 -b .external-which
47 %patch1 -p1
48 rm -r lib/contrib
49
50 %build
51 %{__python} setup.py build
52
53
54 %install
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/; do
59 rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/misc/$file
60 done
61
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`;
65 done
66
67 rm -rf $RPM_BUILD_ROOT%{_datadir}/dblatex/latex/{misc,contrib/example,style}
68
69 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/dblatex
70 # shipped in %%docs
71 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/
72
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
77
78
79 %files
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
89 %post -p /usr/bin/texhash
90
91 %postun -p /usr/bin/texhash

  ViewVC Help
Powered by ViewVC 1.1.30