From 5303c7c9a77e53036873ffa60a48f76b51d6fd7d Mon Sep 17 00:00:00 2001 From: David Tardon Date: Feb 10 2014 16:29:52 +0000 Subject: generate man pages --- diff --git a/libe-book.spec b/libe-book.spec index 8b751d7..9e4d005 100644 --- a/libe-book.spec +++ b/libe-book.spec @@ -14,6 +14,7 @@ BuildRequires: boost-devel BuildRequires: cppunit-devel BuildRequires: doxygen BuildRequires: gperf +BuildRequires: help2man BuildRequires: libicu-devel BuildRequires: libwpd-devel BuildRequires: libxml2-devel @@ -61,12 +62,19 @@ sed -i \ libtool make %{?_smp_mflags} +help2man -N -n 'convert e-book into HTML' -o ebook2html.1 ebook2html +help2man -N -n 'convert e-book into plain text' -o ebook2text.1 ebook2text +help2man -N -n 'debug the conversion library' -o ebook2raw.1 ebook2raw + %install make install DESTDIR=%{buildroot} rm -f %{buildroot}/%{_libdir}/*.la # we install API docs directly from build rm -rf %{buildroot}/%{_docdir}/%{name} +mkdir -p %{buildroot}/%{_mandir}/man1 +install -m 0644 ebook2*.1 %{buildroot}/%{_mandir}/man1 + %post -p /sbin/ldconfig %postun -p /sbin/ldconfig @@ -93,10 +101,14 @@ make %{?_smp_mflags} check %{_bindir}/ebook2raw %{_bindir}/ebook2text %{_bindir}/ebook2html +%{_mandir}/man1/ebook2html.1* +%{_mandir}/man1/ebook2raw.1* +%{_mandir}/man1/ebook2text.1* %changelog * Mon Feb 10 2014 David Tardon - 0.0.3-1 - new upstream release 0.0.3 +- generate man pages for the conversion tools * Sat Nov 16 2013 David Tardon - 0.0.2-1 - new release