From 7c621e752520ae60e977bf8b43c768506996d97f Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 9 Apr 2014 14:44:20 +0200 Subject: [PATCH] generate man pages --- libmspub.spec | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/libmspub.spec b/libmspub.spec index 79f7a23..52b318d 100644 --- a/libmspub.spec +++ b/libmspub.spec @@ -2,7 +2,7 @@ Name: libmspub Version: 0.0.6 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A library providing ability to interpret and import Microsoft Publisher files Group: System Environment/Libraries @@ -12,6 +12,7 @@ Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz BuildRequires: boost-devel BuildRequires: doxygen +BuildRequires: help2man BuildRequires: pkgconfig(icu-i18n) BuildRequires: pkgconfig(libwpd-0.9) BuildRequires: pkgconfig(libwpg-0.2) @@ -59,12 +60,19 @@ sed -i \ libtool make %{?_smp_mflags} V=1 +export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +help2man -N -n 'debug the conversion library' -o pub2raw.1 ./src/conv/raw/.libs/pub2raw +help2man -N -n 'convert Publisher document into SVG' -o pub2xhtml.1 ./src/conv/svg/.libs/pub2xhtml + %install make install DESTDIR=%{buildroot} rm -f %{buildroot}/%{_libdir}/*.la # rhbz#1001245 we install API docs directly from build rm -rf %{buildroot}/%{_docdir}/%{name} +install -m 0755 -d %{buildroot}/%{_mandir}/man1 +install -m 0644 pub2*.1 %{buildroot}/%{_mandir}/man1 + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -85,8 +93,13 @@ rm -rf %{buildroot}/%{_docdir}/%{name} %files tools %{_bindir}/pub2raw %{_bindir}/pub2xhtml +%{_mandir}/man1/pub2raw.1* +%{_mandir}/man1/pub2xhtml.1* %changelog +* Wed Apr 09 2014 David Tardon - 0.0.6-6 +- generate man pages + * Thu Feb 13 2014 David Tardon - 0.0.6-5 - rebuild for new ICU