[libkomparediff2] Fix CMake boolean syntax when setting tests to 0
Kevin Kofler
kkofler at fedoraproject.org
Mon Nov 18 14:19:47 UTC 2013
commit 97b2297ec24f899212217fcc095a6e9a0be635b1
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date: Mon Nov 18 15:20:03 2013 +0100
Fix CMake boolean syntax when setting tests to 0
* Mon Nov 18 2013 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.11.90-2
- Fix CMake boolean syntax when setting tests to 0
libkomparediff2.spec | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libkomparediff2.spec b/libkomparediff2.spec
index 511f30a..f6f7320 100644
--- a/libkomparediff2.spec
+++ b/libkomparediff2.spec
@@ -4,7 +4,7 @@
Name: libkomparediff2
Summary: Library to compare files and strings
Version: 4.11.90
-Release: 1%{?dist}
+Release: 2%{?dist}
# Library: GPLv2+ (some files LGPLv2+), CMake scripts: BSD
License: GPLv2+ and BSD
@@ -51,7 +51,7 @@ developing applications that use %{name}.
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
-%{cmake_kde4} -DKDE4_BUILD_TESTS:BOOL=0%{?tests} ..
+%{cmake_kde4} -DKDE4_BUILD_TESTS:BOOL=%{?tests}%{!?tests:0} ..
popd
make %{?_smp_mflags} -C %{_target_platform}
@@ -78,5 +78,8 @@ make test/fast -C %{_target_platform}
%{_kde4_libdir}/cmake/libkomparediff2/
%changelog
+* Mon Nov 18 2013 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.11.90-2
+- Fix CMake boolean syntax when setting tests to 0
+
* Sat Nov 16 2013 Kevin Kofler <Kevin at tigcc.ticalc.org> - 4.11.90-1
- Split off from kompare package
More information about the scm-commits
mailing list