diff --git a/libvisio.spec b/libvisio.spec index 267a6fc..28e59be 100644 --- a/libvisio.spec +++ b/libvisio.spec @@ -59,17 +59,17 @@ sed -i \ libtool make %{?_smp_mflags} -export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} -for tool in raw/vsd2raw raw/vss2raw svg/vsd2xhtml svg/vss2xhtml text/vsd2text text/vss2text; do - help2man -N -o `basename $tool`.1 ./src/conv/$tool -done - %install make install DESTDIR=%{buildroot} rm -f %{buildroot}/%{_libdir}/*.la # rhbz#1001240 we install API docs directly from build rm -rf %{buildroot}/%{_docdir}/%{name} +# generate and install man pages +export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +for tool in vsd2raw vss2text vsd2xhtml vss2raw vsd2text vss2xhtml; do + help2man -N -o ${tool}.1 %{buildroot}%{_bindir}/${tool} +done install -m 0755 -d %{buildroot}/%{_mandir}/man1 install -m 0644 vsd2*.1 vss2*.1 %{buildroot}/%{_mandir}/man1