Support build_doc=0

OBS-URL: https://build.opensuse.org/package/show/server:database/libdbi?expand=0&rev=5
This commit is contained in:
Jan Engelhardt 2014-05-09 15:36:11 +00:00 committed by Git OBS Bridge
parent c446847b2f
commit 336cc44299

View File

@ -76,7 +76,11 @@ needed to develop applications with libdbi.
%build
autoreconf -fi
sed -i s,\-O20,\-O3,g configure
%configure --disable-static --docdir="%_docdir/%name"
%configure \
%if !%build_doc
--disable-docs \
%endif
--disable-static --docdir="%_docdir/%name"
make %{?_smp_mflags}
%install
@ -96,6 +100,8 @@ rm README.win32 "%buildroot/%_libdir/libdbi.la"
%_includedir/dbi/
%_libdir/libdbi.so
%_libdir/pkgconfig/dbi.pc
%if %build_doc
%_docdir/%name/
%endif
%changelog