enable unit tests

f41
David Tardon 11 years ago
parent 2c6ef195ea
commit 85f85c400f

@ -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.*

Loading…
Cancel
Save