summaryrefslogtreecommitdiffstats
path: root/mingw32-libltdl.spec
diff options
context:
space:
mode:
Diffstat (limited to 'mingw32-libltdl.spec')
-rw-r--r--mingw32-libltdl.spec9
1 files changed, 7 insertions, 2 deletions
diff --git a/mingw32-libltdl.spec b/mingw32-libltdl.spec
index 29d567c..8eb51c6 100644
--- a/mingw32-libltdl.spec
+++ b/mingw32-libltdl.spec
@@ -4,8 +4,8 @@
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
-# Define this to run tests (requires Wine, and won't work
-# inside mock or Koji).
+# Define this to run tests (requires Wine, and won't work inside mock or Koji).
+# Note: As of libtool-1.5.26, libltdl does not contain any tests at all.
%define run_tests 0
Summary: Runtime libraries for GNU Libtool Dynamic Module Loader
@@ -30,6 +30,10 @@ BuildRequires: mingw32-filesystem >= 30
BuildRequires: mingw32-binutils
BuildRequires: mingw32-gcc
+%if %run_tests
+BuildRequires: wine
+%endif
+
BuildArch: noarch
@@ -66,6 +70,7 @@ make #%{?_smp_mflags}
%check
%if %run_tests
+cd libltdl
make check VERBOSE=yes > make_check.log 2>&1 || (cat make_check.log && false)
%endif