From 15f19b751182e312d0ae6fd8f25fa1d8c4b4ca9d Mon Sep 17 00:00:00 2001 From: David Tardon Date: Apr 09 2014 12:38:34 +0000 Subject: generate man pages --- diff --git a/libfreehand.spec b/libfreehand.spec index f072405..9105538 100644 --- a/libfreehand.spec +++ b/libfreehand.spec @@ -2,7 +2,7 @@ Name: libfreehand Version: 0.0.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A library for import of Macromedia/Adobe FreeHand documents Group: System Environment/Libraries @@ -12,6 +12,7 @@ Source: http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz BuildRequires: doxygen BuildRequires: gperf +BuildRequires: help2man BuildRequires: pkgconfig(libwpd-0.9) BuildRequires: pkgconfig(libwpg-0.2) BuildRequires: pkgconfig(zlib) @@ -59,12 +60,19 @@ sed -i \ 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 fh2raw.1 ./src/conv/raw/.libs/fh2raw +help2man -N -n 'convert FreeHand document into SVG' -o fh2svg.1 ./src/conv/svg/.libs/fh2svg + %install make install DESTDIR=%{buildroot} rm -f %{buildroot}/%{_libdir}/*.la # we install API docs directly from build rm -rf %{buildroot}/%{_docdir}/%{name} +install -m 0755 -d %{buildroot}/%{_mandir}/man1 +install -m 0644 fh2*.1 %{buildroot}/%{_mandir}/man1 + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -86,8 +94,13 @@ rm -rf %{buildroot}/%{_docdir}/%{name} %files tools %{_bindir}/fh2raw %{_bindir}/fh2svg +%{_mandir}/man1/fh2raw.1* +%{_mandir}/man1/fh2svg.1* %changelog +* Wed Apr 09 2014 David Tardon - 0.0.0-4 +- generate man pages + * Mon Nov 04 2013 David Tardon - 0.0.0-3 - fix memory leak