]>
Commit | Line | Data |
---|---|---|
754e6c79 | 1 | Summary: Convert DocBook to LaTeX, DVI, PostScript, and PDF |
c0021429 | 2 | Summary(pl.UTF-8): Przekształcanie DocBooka do LaTeXa, DVI, PostScriptu i PDF |
754e6c79 | 3 | Name: dblatex |
99f7b2fe JR |
4 | Version: 0.3.9 |
5 | Release: 1 | |
c0021429 | 6 | License: GPL v2+ |
754e6c79 | 7 | Group: Applications/Publishing |
c0021429 | 8 | Source0: http://downloads.sourceforge.net/dblatex/%{name}-%{version}.tar.bz2 |
99f7b2fe | 9 | # Source0-md5: 38e9fd93dd37d71e352010ad40e1dfb4 |
c0021429 | 10 | Patch0: %{name}-nodebian.patch |
754e6c79 | 11 | URL: http://dblatex.sourceforge.net/ |
8d12c776 | 12 | BuildRequires: python >= 2 |
9cf3918e | 13 | BuildRequires: python-setuptools |
754e6c79 | 14 | BuildRequires: rpm-pythonprov |
8d12c776 | 15 | BuildRequires: rpmbuild(macros) >= 1.717 |
80d92393 | 16 | BuildRequires: texlive-latex-ams |
754e6c79 JR |
17 | BuildRequires: texlive-latex-appendix |
18 | BuildRequires: texlive-latex-effects | |
19 | BuildRequires: texlive-latex-extend | |
e0ca9e70 | 20 | BuildRequires: texlive-latex-wasysym |
af95d83a | 21 | BuildRequires: texlive-makeindex |
754e6c79 | 22 | BuildRequires: transfig |
8d12c776 | 23 | Requires: python-modules >= 2 |
9cf3918e | 24 | Requires: texlive-fonts-rsfs |
c006d3a4 | 25 | Requires: texlive-format-pdflatex |
ee8d6872 | 26 | Requires: texlive-latex-ams |
754e6c79 JR |
27 | Requires: texlive-latex-appendix |
28 | Requires: texlive-latex-effects | |
29 | Requires: texlive-latex-extend | |
e0ca9e70 | 30 | Requires: texlive-latex-wasysym |
754e6c79 JR |
31 | Requires: transfig |
32 | BuildArch: noarch | |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
34 | ||
35 | %description | |
36 | dblatex is a program that transforms your SGML/XML DocBook documents | |
37 | to DVI, PostScript or PDF by translating them into pure LaTeX | |
c0021429 JB |
38 | as a first process. MathML 2.0 markups are supported, too. |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | dblatex to program przekształcający dokumenty w formacie SGML/XML | |
42 | DocBook do formatów DVI, PostScript lub PDF poprzez tłumaczenie ich | |
43 | najpierw do czystego LaTeXa. Obsługiwane są także znaczniki MathML | |
44 | 2.0. | |
754e6c79 JR |
45 | |
46 | %prep | |
47 | %setup -q | |
c0021429 | 48 | %patch0 -p1 |
754e6c79 | 49 | |
754e6c79 | 50 | %build |
8d12c776 | 51 | #%%py_build |
754e6c79 JR |
52 | |
53 | %install | |
54 | rm -rf $RPM_BUILD_ROOT | |
8d12c776 JB |
55 | #%%py_install |
56 | ||
57 | # dblatex script hackery in setup.py doesn't work with split build/install stages | |
58 | # nor "build --build-base ... install" args | |
59 | %{__python} setup.py install \ | |
60 | %{py_install_opts} \ | |
61 | --root=$RPM_BUILD_ROOT | |
754e6c79 | 62 | |
754e6c79 JR |
63 | %py_postclean |
64 | ||
32254dde JR |
65 | # fix #!/usr/bin/env python -> #!/usr/bin/python: |
66 | %{__sed} -i -e '1s,^#!.*python,#!%{__python},' $RPM_BUILD_ROOT/%{_bindir}/%{name} | |
67 | ||
c0021429 | 68 | %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/doc |
754e6c79 JR |
69 | |
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
c0021429 | 75 | %doc COPYRIGHT docs/{manual,release-notes}.pdf |
754e6c79 JR |
76 | %attr(755,root,root) %{_bindir}/dblatex |
77 | %dir %{py_sitescriptdir}/dbtexmf | |
78 | %{py_sitescriptdir}/dbtexmf/*.py[co] | |
79 | %dir %{py_sitescriptdir}/dbtexmf/core | |
80 | %{py_sitescriptdir}/dbtexmf/core/*.py[co] | |
81 | %{py_sitescriptdir}/dbtexmf/core/sgmlent.txt | |
82 | %dir %{py_sitescriptdir}/dbtexmf/dblatex | |
83 | %{py_sitescriptdir}/dbtexmf/dblatex/*.py[co] | |
84 | %dir %{py_sitescriptdir}/dbtexmf/dblatex/grubber | |
85 | %{py_sitescriptdir}/dbtexmf/dblatex/grubber/*.py[co] | |
8d12c776 | 86 | %{py_sitescriptdir}/dbtexmf/dblatex/grubber/xindylang.xml |
754e6c79 JR |
87 | %dir %{py_sitescriptdir}/dbtexmf/dblatex/xetex |
88 | %{py_sitescriptdir}/dbtexmf/dblatex/xetex/*.py[co] | |
89 | %dir %{py_sitescriptdir}/dbtexmf/xslt | |
90 | %{py_sitescriptdir}/dbtexmf/xslt/*.py[co] | |
91 | %{py_sitescriptdir}/dblatex-*.egg-info | |
92 | %{_datadir}/%{name} | |
c0021429 | 93 | %{_mandir}/man1/dblatex.1* |