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