Add check section

This commit is contained in:
Petr Hracek 2013-05-17 12:02:11 +02:00
parent 999b95e3ea
commit 448e5e1e99

View File

@ -75,6 +75,12 @@ make DESTDIR=$RPM_BUILD_ROOT install
# We don't ship .la files.
rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
%check
#to run make check use "--with check"
%if %{?_with_check:1}%{!?_with_check:0}
make check
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig