fix -doc build

This commit is contained in:
David Tardon 2013-08-19 13:38:37 +02:00
parent aaec3a57af
commit e4f7048643

View File

@ -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 <dtardon@redhat.com> - 0.9.9-1