move gen. of man pages to %install
This commit is contained in:
parent
f730bf8488
commit
397fec7a10
15
libwpg.spec
15
libwpg.spec
@ -58,19 +58,20 @@ sed -i \
|
||||
libtool
|
||||
make %{?_smp_mflags} V=1
|
||||
|
||||
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
||||
help2man -N -o wpg2raw.1 ./src/conv/raw/wpg2raw
|
||||
help2man -N -o wpg2svg.1 ./src/conv/svg/wpg2svg
|
||||
help2man -N -n 'batch convert WordPerfect Graphics files into SVG' \
|
||||
--help-option=-h --version-string='wpg2svgbatch.pl %{version}' \
|
||||
-o wpg2svgbatch.pl.1 ./src/conv/svg/wpg2svgbatch.pl
|
||||
|
||||
%install
|
||||
make install DESTDIR=%{buildroot}
|
||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
||||
# 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 wpg2raw wpg2svg; do
|
||||
help2man -N -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
|
||||
done
|
||||
help2man -N -n 'batch convert WordPerfect Graphics files into SVG' \
|
||||
--help-option=-h --version-string='wpg2svgbatch.pl %{version}' \
|
||||
-o wpg2svgbatch.pl.1 ./src/conv/svg/wpg2svgbatch.pl
|
||||
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
||||
install -m 0644 wpg2*.1 %{buildroot}/%{_mandir}/man1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user