]>
Commit | Line | Data |
---|---|---|
1 | Summary: Docbook2man and docbook2info conversion tools | |
2 | Summary(pl.UTF-8): Narzędzia do konwersji docbook do man i info | |
3 | Name: docbook2X | |
4 | Version: 0.8.8 | |
5 | Release: 7 | |
6 | License: MIT | |
7 | Group: Applications/Publishing/SGML | |
8 | Source0: http://dl.sourceforge.net/docbook2x/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: b9b76a6af198c4f44574cfd17a322f01 | |
10 | # note: Source1 not used now | |
11 | Source1: %{name}-docbook2man | |
12 | Patch0: %{name}-info.patch | |
13 | URL: http://docbook2x.sourceforge.net/ | |
14 | BuildRequires: autoconf >= 2.50 | |
15 | BuildRequires: automake | |
16 | BuildRequires: libxslt-progs | |
17 | BuildRequires: perl-XML-SAX | |
18 | BuildRequires: perl-devel | |
19 | BuildRequires: rpm-perlprov | |
20 | BuildRequires: texinfo | |
21 | Requires: docbook-dtd | |
22 | Requires: libxslt-progs | |
23 | Requires: sgml-common | |
24 | Requires: sgmlparser | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Steve Cheng's docbook2X tools convert DocBook documents into man pages | |
29 | and Texinfo documents. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Narzędzia do konwersji docbook2X Steve'a Chenga konwertują dokumenty | |
33 | DocBooka na strony manuala i dokumenty Texinfo. | |
34 | ||
35 | %prep | |
36 | %setup -q | |
37 | %patch0 -p1 | |
38 | ||
39 | %build | |
40 | %{__aclocal} | |
41 | %{__autoconf} | |
42 | %{__autoheader} | |
43 | %{__automake} | |
44 | %configure | |
45 | %{__make} | |
46 | ||
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
50 | %{__make} install \ | |
51 | DESTDIR=$RPM_BUILD_ROOT | |
52 | ||
53 | mv $RPM_BUILD_ROOT%{_bindir}/{docbook2man,docbook2X2man} | |
54 | mv $RPM_BUILD_ROOT%{_mandir}/man1/{docbook2man,docbook2X2man}.1 | |
55 | mv $RPM_BUILD_ROOT%{_bindir}/{docbook2texi,docbook2X2texi} | |
56 | mv $RPM_BUILD_ROOT%{_mandir}/man1/{docbook2texi,docbook2X2texi}.1 | |
57 | ||
58 | # packaged as %doc | |
59 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/docbook2X | |
60 | ||
61 | %clean | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %post -p /sbin/postshell | |
65 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
66 | ||
67 | %postun -p /sbin/postshell | |
68 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
69 | ||
70 | %files | |
71 | %defattr(644,root,root,755) | |
72 | %doc AUTHORS COPYING ChangeLog README THANKS TODO doc/*.html | |
73 | %attr(755,root,root) %{_bindir}/db2x_manxml | |
74 | %attr(755,root,root) %{_bindir}/db2x_texixml | |
75 | %attr(755,root,root) %{_bindir}/db2x_xsltproc | |
76 | %attr(755,root,root) %{_bindir}/docbook2X2man | |
77 | %attr(755,root,root) %{_bindir}/docbook2X2texi | |
78 | %attr(755,root,root) %{_bindir}/sgml2xml-isoent | |
79 | %attr(755,root,root) %{_bindir}/utf8trans | |
80 | %{_datadir}/%{name} | |
81 | %{_mandir}/man1/db2x_manxml.1* | |
82 | %{_mandir}/man1/db2x_texixml.1* | |
83 | %{_mandir}/man1/db2x_xsltproc.1* | |
84 | %{_mandir}/man1/docbook2X2man.1* | |
85 | %{_mandir}/man1/docbook2X2texi.1* | |
86 | %{_mandir}/man1/sgml2xml-isoent.1* | |
87 | %{_mandir}/man1/utf8trans.1* | |
88 | %{_infodir}/docbook2X.info* | |
89 | %{_infodir}/docbook2man-xslt.info* | |
90 | %{_infodir}/docbook2texi-xslt.info* |