From e4f70486438fbe86fa2d25a828d0c182539979b0 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Mon, 19 Aug 2013 13:38:37 +0200 Subject: [PATCH] fix -doc build --- libwpd.spec | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libwpd.spec b/libwpd.spec index 1284fca..5b00a08 100644 --- a/libwpd.spec +++ b/libwpd.spec @@ -11,6 +11,7 @@ URL: http://libwpd.sf.net/ License: LGPLv2+ or MPLv2.0 BuildRequires: cppunit-devel +BuildRequires: doxygen BuildRequires: zlib-devel %description @@ -44,6 +45,8 @@ The %{name}-doc package contains API documentation for %{name}. %prep %setup -q +chmod -x docs/%{name}.dia + %build %configure --disable-static --disable-werror sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool @@ -53,6 +56,8 @@ make %{?_smp_mflags} V=1 %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} %check LD_LIBRARY_PATH=../lib/.libs make check @@ -81,10 +86,9 @@ LD_LIBRARY_PATH=../lib/.libs make check %files doc %doc COPYING.LGPL COPYING.MPL -%docdir %{_defaultdocdir}/%{name} -%doc %{_defaultdocdir}/%{name}/html -%doc %{_defaultdocdir}/%{name}/%{name}.dia -%doc %{_defaultdocdir}/%{name}/%{name}.png +%doc docs/doxygen/html +%doc docs/%{name}.dia +%doc docs/%{name}.png %changelog * Mon Aug 19 2013 David Tardon - 0.9.9-1