From 8ac8b098c86625e696d01986138df139853168b6 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 9 Apr 2014 15:19:03 +0200 Subject: [PATCH] generate man pages --- libwps.spec | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/libwps.spec b/libwps.spec index 9e9370d..cbe16f8 100644 --- a/libwps.spec +++ b/libwps.spec @@ -2,7 +2,7 @@ Name: libwps Version: 0.2.9 -Release: 6%{?dist} +Release: 7%{?dist} Summary: Library for reading and converting Microsoft Works word processor documents Group: System Environment/Libraries @@ -12,6 +12,7 @@ Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz BuildRequires: boost-devel BuildRequires: doxygen +BuildRequires: help2man BuildRequires: pkgconfig(libwpd-0.9) %description @@ -54,6 +55,11 @@ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool make %{?_smp_mflags} +export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +help2man -N -n 'debug the conversion library' -o wps2raw.1 ./src/conv/raw/.libs/wps2raw +help2man -N -n 'convert Works document into HTML' -o wps2html.1 ./src/conv/html/.libs/wps2html +help2man -N -n 'convert Works document into plain text' -o wps2text.1 ./src/conv/text/.libs/wps2text + %install make install INSTALL="install -p" DESTDIR="%{buildroot}" @@ -62,6 +68,9 @@ find %{buildroot} -name '*.la' -exec rm -f {} ';' # we install API docs directly from build rm -rf %{buildroot}%{_defaultdocdir}/%{name} +install -m 0755 -d %{buildroot}/%{_mandir}/man1 +install -m 0644 wps2*.1 %{buildroot}/%{_mandir}/man1 + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -79,12 +88,18 @@ rm -rf %{buildroot}%{_defaultdocdir}/%{name} %{_bindir}/wps2html %{_bindir}/wps2raw %{_bindir}/wps2text +%{_mandir}/man1/wps2html.1* +%{_mandir}/man1/wps2raw.1* +%{_mandir}/man1/wps2text.1* %files doc %doc COPYING.LGPL COPYING.MPL %doc docs/doxygen/html %changelog +* Wed Apr 09 2014 David Tardon - 0.2.9-7 +- generate man pages + * Mon Sep 09 2013 David Tardon - 0.2.9-6 - Resolves: rhbz#1005711 do not compile in C++11 mode