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 License: LGPLv2+ or MPLv2.0
BuildRequires: cppunit-devel BuildRequires: cppunit-devel
BuildRequires: doxygen
BuildRequires: zlib-devel BuildRequires: zlib-devel
%description %description
@ -44,6 +45,8 @@ The %{name}-doc package contains API documentation for %{name}.
%prep %prep
%setup -q %setup -q
chmod -x docs/%{name}.dia
%build %build
%configure --disable-static --disable-werror %configure --disable-static --disable-werror
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@ -53,6 +56,8 @@ make %{?_smp_mflags} V=1
%install %install
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
# we install API docs directly from build
rm -rf $RPM_BUILD_ROOT/%{_docdir}/%{name}
%check %check
LD_LIBRARY_PATH=../lib/.libs make check LD_LIBRARY_PATH=../lib/.libs make check
@ -81,10 +86,9 @@ LD_LIBRARY_PATH=../lib/.libs make check
%files doc %files doc
%doc COPYING.LGPL COPYING.MPL %doc COPYING.LGPL COPYING.MPL
%docdir %{_defaultdocdir}/%{name} %doc docs/doxygen/html
%doc %{_defaultdocdir}/%{name}/html %doc docs/%{name}.dia
%doc %{_defaultdocdir}/%{name}/%{name}.dia %doc docs/%{name}.png
%doc %{_defaultdocdir}/%{name}/%{name}.png
%changelog %changelog
* Mon Aug 19 2013 David Tardon <dtardon@redhat.com> - 0.9.9-1 * Mon Aug 19 2013 David Tardon <dtardon@redhat.com> - 0.9.9-1