generate man pages

f41
David Tardon 11 years ago
parent 2e04eb1e7c
commit 1bb4cae232

@ -2,7 +2,7 @@
Name: libmwaw Name: libmwaw
Version: 0.2.0 Version: 0.2.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: An import library for many old mac document formats Summary: An import library for many old mac document formats
Group: System Environment/Libraries Group: System Environment/Libraries
@ -12,6 +12,7 @@ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
BuildRequires: boost-devel BuildRequires: boost-devel
BuildRequires: doxygen BuildRequires: doxygen
BuildRequires: help2man
BuildRequires: pkgconfig(libwpd-0.9) BuildRequires: pkgconfig(libwpd-0.9)
BuildRequires: pkgconfig(libwpg-0.2) BuildRequires: pkgconfig(libwpg-0.2)
@ -59,6 +60,12 @@ sed -i \
libtool libtool
make %{?_smp_mflags} V=1 make %{?_smp_mflags} V=1
export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
help2man -N -n 'convert Mac spreadsheet into CSV' -o mwaw2csv.1 ./src/conv/csv/.libs/mwaw2csv
help2man -N -n 'debug the conversion library' -o mwaw2raw.1 ./src/conv/raw/.libs/mwaw2raw
help2man -N -n 'convert Mac text document into HTML' -o mwaw2html.1 ./src/conv/html/.libs/mwaw2html
help2man -N -n 'convert Mac text document into plain text' -o mwaw2text.1 ./src/conv/text/.libs/mwaw2text
%install %install
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
rm -f %{buildroot}/%{_libdir}/*.la rm -f %{buildroot}/%{_libdir}/*.la
@ -67,6 +74,9 @@ rm -f %{buildroot}/%{_bindir}/mwawFile
# rhbz#1001297 we install API docs directly from build # rhbz#1001297 we install API docs directly from build
rm -rf %{buildroot}/%{_docdir}/%{name} rm -rf %{buildroot}/%{_docdir}/%{name}
install -m 0755 -d %{buildroot}/%{_mandir}/man1
install -m 0644 mwaw2*.1 %{buildroot}/%{_mandir}/man1
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
@ -89,8 +99,15 @@ rm -rf %{buildroot}/%{_docdir}/%{name}
%{_bindir}/mwaw2html %{_bindir}/mwaw2html
%{_bindir}/mwaw2raw %{_bindir}/mwaw2raw
%{_bindir}/mwaw2text %{_bindir}/mwaw2text
%{_mandir}/man1/mwaw2csv.1*
%{_mandir}/man1/mwaw2html.1*
%{_mandir}/man1/mwaw2raw.1*
%{_mandir}/man1/mwaw2text.1*
%changelog %changelog
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.2.0-3
- generate man pages
* Wed Jan 22 2014 David Tardon <dtardon@redhat.com> - 0.2.0-2 * Wed Jan 22 2014 David Tardon <dtardon@redhat.com> - 0.2.0-2
- update licenses to current (simpler) state - update licenses to current (simpler) state

Loading…
Cancel
Save