Fridrich Strba 2015-12-30 16:42:35 +00:00 committed by Git OBS Bridge
parent 3dd1ae7eea
commit be8bbd2eca
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Dec 30 16:38:11 UTC 2015 - fstrba@suse.com
- Generate manpages for the binaries in libwpg-tools
-------------------------------------------------------------------
Sat Dec 26 20:56:35 UTC 2015 - fstrba@suse.com

View File

@ -26,6 +26,7 @@ Url: http://libwpg.sourceforge.net/
Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{version}/%{name}-%{version}.tar.xz
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: help2man
BuildRequires: librevenge-devel >= 0.0.0
BuildRequires: libwpd-devel >= 0.10.0
BuildRequires: pkg-config
@ -94,6 +95,12 @@ make %{?_smp_mflags} V=1
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
# manpages
mkdir -p %{buildroot}%{_mandir}/man1
for i in wpg2raw wpg2svg; do
LD_LIBRARY_PATH=%{buildroot}%{_libdir} \
help2man -N -o %{buildroot}%{_mandir}/man1/$i.1 %{buildroot}%{_bindir}/$i
done
# documentation
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -p AUTHORS COPYING.LGPL COPYING.MPL ChangeLog %{buildroot}%{_docdir}/%{name}
@ -119,6 +126,7 @@ cp -p AUTHORS COPYING.LGPL COPYING.MPL ChangeLog %{buildroot}%{_docdir}/%{name}
%files tools
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man1/*.1*
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/[A-Z]*