From 85f85c400f6c536180c4c2fdc10c3c04dc02de8a Mon Sep 17 00:00:00 2001 From: David Tardon Date: Wed, 6 Nov 2013 10:53:06 +0100 Subject: [PATCH] enable unit tests --- libcmis.spec | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/libcmis.spec b/libcmis.spec index ea3d853..449ba09 100644 --- a/libcmis.spec +++ b/libcmis.spec @@ -11,6 +11,7 @@ URL: http://sourceforge.net/projects/libcmis/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz BuildRequires: boost-devel +BuildRequires: cppunit-devel BuildRequires: libcurl-devel BuildRequires: libxml2-devel BuildRequires: xmlto @@ -44,8 +45,8 @@ command line. %setup -q %build -%configure --disable-silent-rules --disable-static --disable-tests --disable-werror \ - DOCBOOK2MAN='xmlto man' +%configure --disable-silent-rules --disable-static --disable-werror \ + --disable-long-tests DOCBOOK2MAN='xmlto man' sed -i \ -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ @@ -59,6 +60,10 @@ rm -f %{buildroot}/%{_libdir}/*.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%check +export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}} +make check + %files %doc AUTHORS COPYING.* NEWS README %{_libdir}/%{name}-%{apiversion}.so.*