1 Summary: Converter from DocBook SGML into roff man macros
2 Summary(pl.UTF-8): Konwerter z formatu DocBook SGML do roff (używanego przez program man)
7 Group: Applications/Publishing/SGML
8 # original: http://www.oasis-open.org/docbook/tools/dtm/%{name}.tar.gz
9 # we use ANS version, available in Debian
10 Source0: http://ftp.debian.org/debian/pool/main/d/docbook-to-man/%{name}_%{version}.orig.tar.gz
11 # Source0-md5: 84946e13a0e54057e9cbf8ad7eec4afa
12 Patch0: http://ftp.debian.org/debian/pool/main/d/docbook-to-man/%{name}_%{version}-28.diff.gz
13 # Patch0-md5: ac83d1d8852bcaadeb6bb81d559ea5c9
14 Patch1: %{name}-opt.patch
15 Patch2: %{name}-PLD.patch
16 URL: http://www.oasis-open.org/docbook/tools/dtm/
17 BuildRequires: docbook-dtd41-sgml
19 Requires: docbook-dtd41-sgml
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 docbook-to-man is a batch converter that transforms UNIX-style
25 manpages from the DocBook SGML format into nroff/troff man macros.
27 This is not the original version by Fred Dalrymple, but one with the
28 modifications by David Bolen with Debian changes.
30 %description -l pl.UTF-8
31 docbook-to-man to wsadowy konwerter przekształcający strony manuala
32 uniksowego z formatu DocBook SGML do makr nroffa/troffa.
34 Nie jest to oryginalna wersja autorstwa Freda Dalrymple'a, lecz wersja
35 z modyfikacjami Davida Bolena oraz zmianami z Debiana.
38 %setup -q -n %{name}-%{version}.orig
40 for patch in $(cat debian/patches/00list); do
41 %{__patch} -p1 -s < debian/patches/$patch.dpatch
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/sgml,%{_mandir}/man{1,5}}
56 ROOT=$RPM_BUILD_ROOT%{_prefix}
58 cp -p Doc/{docbook-to-man.1,instant.1} $RPM_BUILD_ROOT%{_mandir}/man1
59 cp -p Doc/transpec.1 $RPM_BUILD_ROOT%{_mandir}/man5/transpec.5
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %doc README README.ANS
67 %attr(755,root,root) %{_bindir}/docbook-to-man
68 %attr(755,root,root) %{_bindir}/instant
69 %{_datadir}/sgml/transpec
70 %{_mandir}/man1/docbook-to-man.1*
71 %{_mandir}/man1/instant.1*
72 %{_mandir}/man5/transpec.5*