]>
Commit | Line | Data |
---|---|---|
754e6c79 JR |
1 | Summary: Convert DocBook to LaTeX, DVI, PostScript, and PDF |
2 | Name: dblatex | |
3 | Version: 0.3 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Applications/Publishing | |
7 | Source0: http://dl.sourceforge.net/dblatex/%{name}-%{version}.tar.bz2 | |
8 | # Source0-md5: 7de6bf72b8b2934169ce0ec911e966ed | |
9 | URL: http://dblatex.sourceforge.net/ | |
10 | BuildRequires: python-distribute | |
11 | BuildRequires: rpm-pythonprov | |
12 | BuildRequires: rpmbuild(macros) >= 1.219 | |
13 | BuildRequires: texlive-latex-appendix | |
14 | BuildRequires: texlive-latex-effects | |
15 | BuildRequires: texlive-latex-extend | |
e0ca9e70 | 16 | BuildRequires: texlive-latex-wasysym |
754e6c79 JR |
17 | BuildRequires: transfig |
18 | Requires: python-modules | |
19 | Requires: texlive-latex-appendix | |
20 | Requires: texlive-latex-effects | |
21 | Requires: texlive-latex-extend | |
e0ca9e70 | 22 | Requires: texlive-latex-wasysym |
754e6c79 JR |
23 | Requires: transfig |
24 | BuildArch: noarch | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | dblatex is a program that transforms your SGML/XML DocBook documents | |
29 | to DVI, PostScript or PDF by translating them into pure LaTeX | |
30 | as a first process. MathML 2.0 markups are supported, too. | |
31 | ||
32 | %prep | |
33 | %setup -q | |
34 | ||
35 | # fix #!/usr/bin/env python -> #!/usr/bin/python: | |
36 | %{__sed} -i -e '1s,^#!.*python,#!%{__python},' scripts/%{name} | |
37 | ||
38 | %build | |
39 | %{__python} setup.py build | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
43 | %{__python} setup.py install \ | |
44 | --skip-build \ | |
45 | --optimize=2 \ | |
46 | --root=$RPM_BUILD_ROOT | |
47 | ||
48 | %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
49 | %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir} | |
50 | %py_postclean | |
51 | ||
52 | rm -r $RPM_BUILD_ROOT%{_datadir}/doc | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc docs/* | |
60 | %attr(755,root,root) %{_bindir}/dblatex | |
61 | %dir %{py_sitescriptdir}/dbtexmf | |
62 | %{py_sitescriptdir}/dbtexmf/*.py[co] | |
63 | %dir %{py_sitescriptdir}/dbtexmf/core | |
64 | %{py_sitescriptdir}/dbtexmf/core/*.py[co] | |
65 | %{py_sitescriptdir}/dbtexmf/core/sgmlent.txt | |
66 | %dir %{py_sitescriptdir}/dbtexmf/dblatex | |
67 | %{py_sitescriptdir}/dbtexmf/dblatex/*.py[co] | |
68 | %dir %{py_sitescriptdir}/dbtexmf/dblatex/grubber | |
69 | %{py_sitescriptdir}/dbtexmf/dblatex/grubber/*.py[co] | |
70 | %dir %{py_sitescriptdir}/dbtexmf/dblatex/xetex | |
71 | %{py_sitescriptdir}/dbtexmf/dblatex/xetex/*.py[co] | |
72 | %dir %{py_sitescriptdir}/dbtexmf/xslt | |
73 | %{py_sitescriptdir}/dbtexmf/xslt/*.py[co] | |
74 | %{py_sitescriptdir}/dblatex-*.egg-info | |
75 | %{_datadir}/%{name} | |
76 | %{_mandir}/man1/*.1* |