diff --git a/nftables.spec b/nftables.spec index c9714dd..f5adaf1 100644 --- a/nftables.spec +++ b/nftables.spec @@ -31,6 +31,7 @@ Source2: http://xtables.de/files/nftables-plus-%version.tar.asc BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: bison BuildRequires: dblatex +BuildRequires: docbook2x BuildRequires: flex BuildRequires: gmp-devel BuildRequires: pkgconfig >= 0.21 @@ -65,6 +66,9 @@ ruleset updates. %setup -qn %name-plus-%version %build +mkdir bin +ln -s "%_bindir/docbook-to-man" bin/docbook2x-man +export PATH="$PATH:$PWD/bin" %configure --docdir="%_docdir/%name" make %{?_smp_mflags} @@ -78,5 +82,6 @@ cp -a COPYING "$b/%_docdir/%name/" %config %_sysconfdir/nftables %_sbindir/nft %doc %_docdir/%name/ +%_mandir/man8/nft* %changelog