From fde9e97e4109f0f7f7992249370c53decf6ebee5 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mon, 19 Aug 2013 14:20:40 +0200 Subject: [PATCH] put API docs into extra subpackage --- libwpg.spec | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/libwpg.spec b/libwpg.spec index 0d8df24..119a486 100644 --- a/libwpg.spec +++ b/libwpg.spec @@ -29,6 +29,15 @@ The %{name}-devel package contains libraries and header files for developing applications that use %{name}. +%package doc +Summary: Documentation of %{name} API +Group: Documentation +BuildArch: noarch + +%description doc +The %{name}-doc package contains API documentation for %{name}. + + %package tools Summary: Tools to convert WordPerfect Graphics images Group: Applications/Multimedia @@ -60,11 +69,10 @@ find docs/doxygen/html |xargs touch -r docs/doxygen/doxygen.cfg %install -# Documentation is intentionally not installed here, -# it is included as -devel %%doc -make SUBDIRS="" install DESTDIR=$RPM_BUILD_ROOT -make -C src install DESTDIR=$RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +# we install API docs directly from build +rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name} %post -p /sbin/ldconfig @@ -77,12 +85,16 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %files devel -%doc docs/doxygen/html %{_includedir}/%{name}-%{apiversion} %{_libdir}/%{name}-%{apiversion}.so %{_libdir}/pkgconfig/%{name}-%{apiversion}.pc +%files doc +%doc COPYING.LGPL COPYING.MPL +%doc docs/doxygen/html + + %files tools %doc COPYING.LGPL COPYING.MPL %{_bindir}/wpg2raw