[writerperfect] generate man pages

David Tardon dtardon at fedoraproject.org
Wed Apr 9 14:40:04 UTC 2014


commit a54fd6473d0c90bd7ab90780c188733f8efdc373
Author: David Tardon <dtardon at redhat.com>
Date:   Wed Apr 9 15:27:42 2014 +0200

    generate man pages

 writerperfect.spec |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)
---
diff --git a/writerperfect.spec b/writerperfect.spec
index a0743e3..5eabdb4 100644
--- a/writerperfect.spec
+++ b/writerperfect.spec
@@ -9,6 +9,7 @@ License: (MPLv2.0 or LGPLv2+) and BSD
 URL: http://libwpd.sourceforge.net/
 Source: http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
 
+BuildRequires: help2man
 BuildRequires: libcdr-devel
 BuildRequires: libetonyek-devel
 BuildRequires: libfreehand-devel
@@ -33,9 +34,25 @@ Tools to transform various file formats into ODF.
     --with-libwps --with-libetonyek --with-libfreehand
 make %{?_smp_mflags}
 
+export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
+help2man -N --no-discard-stderr -n 'convert CorelDRAW document into ODF' -o cdr2odg.1 ./src/cdr2odg
+help2man -N --no-discard-stderr -n 'convert Corel Presentation Exchange file into ODF' -o cmx2odg.1 ./src/cmx2odg
+help2man -N --no-discard-stderr -n 'convert FreeHand document into ODF' -o fh2odg.1 ./src/fh2odg
+help2man -N --no-discard-stderr -n 'convert Keynote presentation into ODF' -o key2odp.1 ./src/key2odp
+help2man -N --no-discard-stderr -n 'convert Mac document into ODF' -o mwaw2odt.1 ./src/mwaw2odt
+help2man -N --no-discard-stderr -n 'convert Publisher document into ODF' -o pub2odg.1 ./src/pub2odg
+help2man -N --no-discard-stderr -n 'convert Visio document into ODF' -o vsd2odg.1 ./src/vsd2odg
+help2man -N --no-discard-stderr -n 'convert Visio stencil into ODF' -o vss2odg.1 ./src/vss2odg
+help2man -N --no-discard-stderr -n 'convert WordPerfect document into ODF' -o wpd2odt.1 ./src/wpd2odt
+help2man -N --no-discard-stderr -n 'convert WordPerfect graphics into ODF' -o wpg2odg.1 ./src/wpg2odg
+help2man -N --no-discard-stderr -n 'convert Works document into ODF' -o wps2odt.1 ./src/wps2odt
+
 %install
 make install DESTDIR=%{buildroot}
 
+install -m 0755 -d %{buildroot}/%{_mandir}/man1
+install -m 0644 *od?.1 %{buildroot}/%{_mandir}/man1
+
 %files
 %doc ChangeLog COPYING.LGPL COPYING.MPL NEWS README
 %{_bindir}/cdr2odg
@@ -49,6 +66,17 @@ make install DESTDIR=%{buildroot}
 %{_bindir}/wpd2odt
 %{_bindir}/wpg2odg
 %{_bindir}/wps2odt
+%{_mandir}/man1/cdr2odg.1*
+%{_mandir}/man1/cmx2odg.1*
+%{_mandir}/man1/fh2odg.1*
+%{_mandir}/man1/key2odp.1*
+%{_mandir}/man1/mwaw2odt.1*
+%{_mandir}/man1/pub2odg.1*
+%{_mandir}/man1/vsd2odg.1*
+%{_mandir}/man1/vss2odg.1*
+%{_mandir}/man1/wpd2odt.1*
+%{_mandir}/man1/wpg2odg.1*
+%{_mandir}/man1/wps2odt.1*
 
 %changelog
 * Sat Nov 02 2013 David Tardon <dtardon at redhat.com> - 0.8.3-1


More information about the scm-commits mailing list