- added %%check for 'xmlrpc-c'

This commit is contained in:
ensc 2008-11-15 14:13:58 +00:00
parent 27a1defebc
commit f64c6ae07c

View File

@ -138,6 +138,18 @@ make install DESTDIR=$RPM_BUILD_ROOT
chmod +x $RPM_BUILD_ROOT%_libdir/*.so
%check
unset PKG_CONFIG_PATH
export PKG_CONFIG_LIBDIR=$RPM_BUILD_ROOT%_libdir/pkgconfig:%_libdir/pkgconfig:%_datadir/pkgconfig
PATH=$RPM_BUILD_ROOT%_bindir:$PATH
for comp in c++ cgi-server server-util abyss-server client libwww-client; do
for opt in '--version' '--libs' 'c++2 --libs' 'c++ --libs --static'; do
xmlrpc-c-config "$comp" $opt
done
done
%clean
rm -rf $RPM_BUILD_ROOT