diff --git a/libpng.spec b/libpng.spec index 8050dd1..6fe17b1 100644 --- a/libpng.spec +++ b/libpng.spec @@ -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