From 448e5e1e99bd559eeb45aa6cb1ed57b6de4b3f6d Mon Sep 17 00:00:00 2001 From: Petr Hracek Date: Fri, 17 May 2013 12:02:11 +0200 Subject: [PATCH] Add check section --- libpng.spec | 6 ++++++ 1 file changed, 6 insertions(+) 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