generate man pages
This commit is contained in:
parent
c4ea674016
commit
9586902aa0
17
libwpd.spec
17
libwpd.spec
@ -4,13 +4,14 @@
|
||||
Name: libwpd
|
||||
Summary: Library for reading and converting WordPerfect documents
|
||||
Version: 0.9.9
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
|
||||
Group: System Environment/Libraries
|
||||
URL: http://libwpd.sf.net/
|
||||
License: LGPLv2+ or MPLv2.0
|
||||
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: help2man
|
||||
BuildRequires: pkgconfig(cppunit)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
|
||||
@ -53,12 +54,20 @@ sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' 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 wpd2raw.1 ./src/conv/raw/.libs/wpd2raw
|
||||
help2man -N -n 'convert WordPerfect document into HTML' -o wpd2html.1 ./src/conv/html/.libs/wpd2html
|
||||
help2man -N -n 'convert WordPerfect document into plain text' -o wpd2text.1 ./src/conv/text/.libs/wpd2text
|
||||
|
||||
%install
|
||||
make DESTDIR=$RPM_BUILD_ROOT install
|
||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
||||
# we install API docs directly from build
|
||||
rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}
|
||||
|
||||
install -m 0755 -d %{buildroot}/%{_mandir}/man1
|
||||
install -m 0644 wpd2*.1 %{buildroot}/%{_mandir}/man1
|
||||
|
||||
%check
|
||||
LD_LIBRARY_PATH=../lib/.libs make check
|
||||
|
||||
@ -75,6 +84,9 @@ LD_LIBRARY_PATH=../lib/.libs make check
|
||||
%{_bindir}/wpd2html
|
||||
%{_bindir}/wpd2raw
|
||||
%{_bindir}/wpd2text
|
||||
%{_mandir}/man1/wpd2html.1*
|
||||
%{_mandir}/man1/wpd2raw.1*
|
||||
%{_mandir}/man1/wpd2text.1*
|
||||
|
||||
%files devel
|
||||
%doc HACKING TODO
|
||||
@ -91,6 +103,9 @@ LD_LIBRARY_PATH=../lib/.libs make check
|
||||
%doc docs/%{name}.png
|
||||
|
||||
%changelog
|
||||
* Wed Apr 09 2014 David Tardon <dtardon@redhat.com> - 0.9.9-2
|
||||
- generate man pages
|
||||
|
||||
* Mon Aug 19 2013 David Tardon <dtardon@redhat.com> - 0.9.9-1
|
||||
- new release
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user