From 0c674c8a22d63453d03a66908f05f1770092f0317c6a96958c0a2b56c95952f1 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 30 Dec 2015 09:16:29 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/LibreOffice:Factory/libvisio?expand=0&rev=37 --- libvisio.changes | 5 +++++ libvisio.spec | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/libvisio.changes b/libvisio.changes index f4074e1..7b4dd45 100644 --- a/libvisio.changes +++ b/libvisio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Dec 30 09:15:48 UTC 2015 - fstrba@suse.com + +- Generate manpages for the tools in libvisio-tool package + ------------------------------------------------------------------- Tue Dec 29 20:06:55 UTC 2015 - fstrba@suse.com diff --git a/libvisio.spec b/libvisio.spec index 2d9bc5e..abd8d18 100644 --- a/libvisio.spec +++ b/libvisio.spec @@ -31,6 +31,7 @@ BuildRequires: doxygen BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: gperf +BuildRequires: help2man BuildRequires: libicu-devel BuildRequires: librevenge-devel >= 0.0.0 BuildRequires: libxml2-devel @@ -88,13 +89,19 @@ export CXXFLAGS="%{optflags} -fvisibility-inlines-hidden" --disable-werror \ --disable-static \ --docdir=%{_docdir}/%{name}-devel/html -make %{?_smp_mflags} V=1 +make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install %{?_smp_mflags} find %{buildroot} -type f -name "*.la" -delete -print +mkdir -p %{buildroot}%{_mandir}/man1 +for i in %{buildroot}%{_bindir}/*; do + LD_LIBRARY_PATH=%{buildroot}%{_libdir} \ + help2man -N -o %{buildroot}%{_mandir}/man1/$(basename $i).1 $i +done + cp -p AUTHORS COPYING.* ChangeLog %{buildroot}%{_docdir}/%{name}-devel/ %fdupes -s %{buildroot} @@ -127,5 +134,6 @@ make check %{?_smp_mflags} %defattr(-,root,root) %doc AUTHORS COPYING.* ChangeLog %{_bindir}/* +%{_mandir}/man1/*.1* %changelog