]> git.pld-linux.org Git - packages/docbook-to-man.git/blob - docbook-to-man.spec
- release 3 (by relup.sh)
[packages/docbook-to-man.git] / docbook-to-man.spec
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)
3 Name:           docbook-to-man
4 Version:        2.0.0
5 Release:        3
6 License:        MIT
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
18 BuildRequires:  opensp
19 Requires:       docbook-dtd41-sgml
20 Requires:       opensp
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 docbook-to-man is a batch converter that transforms UNIX-style
25 manpages from the DocBook SGML format into nroff/troff man macros.
26
27 This is not the original version by Fred Dalrymple, but one with the
28 modifications by David Bolen with Debian changes.
29
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.
33
34 Nie jest to oryginalna wersja autorstwa Freda Dalrymple'a, lecz wersja
35 z modyfikacjami Davida Bolena oraz zmianami z Debiana.
36
37 %prep
38 %setup -q -n %{name}-%{version}.orig
39 %patch0 -p1
40 for patch in $(cat debian/patches/00list); do
41         %{__patch} -p1 -s < debian/patches/$patch.dpatch
42 done
43 %patch1 -p1
44 %patch2 -p1
45
46 %build
47 %{__make} \
48         CC="%{__cc}" \
49         OPT="%{rpmcflags}" \
50         ROOT=%{_prefix}
51
52 %install
53 rm -rf $RPM_BUILD_ROOT
54 install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/sgml,%{_mandir}/man{1,5}}
55 %{__make} install \
56         ROOT=$RPM_BUILD_ROOT%{_prefix}
57
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
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %files
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*
This page took 0.078732 seconds and 3 git commands to generate.