diff --git a/xmlrpc-c.spec b/xmlrpc-c.spec index 2fe73cc..954be08 100644 --- a/xmlrpc-c.spec +++ b/xmlrpc-c.spec @@ -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