[libpng] Add check section

Petr Hracek phracek at fedoraproject.org
Fri May 17 10:12:50 UTC 2013


commit 448e5e1e99bd559eeb45aa6cb1ed57b6de4b3f6d
Author: Petr Hracek <phracek at redhat.com>
Date:   Fri May 17 12:02:11 2013 +0200

    Add check section

 libpng.spec |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
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


More information about the scm-commits mailing list