]> git.pld-linux.org Git - packages/file.git/blobdiff - file.spec
- run tests
[packages/file.git] / file.spec
index 12e6708ea665e942489d21e1158a59a8643335da..7f7cf02f04140b29e248d6feac144738e3998285 100644 (file)
--- a/file.spec
+++ b/file.spec
@@ -2,6 +2,7 @@
 # Conditional build:
 %bcond_without python          # don't build python-magic module
 %bcond_without static_libs     # don't build static libraries
+%bcond_without tests
 #
 Summary:       A utility for determining file types
 Summary(cs.UTF-8):     Program pro zjišťování typu souborů
@@ -272,6 +273,10 @@ python setup.py build
 cd ..
 %endif
 
+%if %{with tests}
+%{__make} check
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/%{_lib}
This page took 0.202915 seconds and 4 git commands to generate.