File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change 73
73
74
74
SPEC=" ./$PKG .spec"
75
75
cat > " $SPEC " << EOF
76
+ # disable in source builds on EPEL <9
77
+ %undefine __cmake_in_source_build
78
+ %undefine __cmake3_in_source_build
79
+
76
80
# python2 is not available on RHEL > 7 and Fedora
77
81
%if 0%{?rhel} > 7 || 0%{?fedora}
78
82
%bcond_with python2
@@ -151,19 +155,16 @@ code scan defect lists to find out added or fixed defects.
151
155
152
156
%build
153
157
make version.cc
154
- mkdir -p %{_target_platform}
155
- cd %{_target_platform}
156
- %cmake3 .. -S.. -B. \\
158
+ %cmake3 \\
157
159
-DPYCSDIFF_PYTHON2=%{?with_python2:ON} \\
158
160
-DPYCSDIFF_PYTHON3=%{?with_python3:ON}
159
- %make_build
161
+ %cmake3_build
160
162
161
163
%install
162
- %make_install -C %{_target_platform}
164
+ %cmake3_install
163
165
164
166
%check
165
- cd %{_target_platform}
166
- ctest3 %{?_smp_mflags} --output-on-failure
167
+ %ctest3
167
168
168
169
%files
169
170
%{_bindir}/csdiff
You can’t perform that action at this time.
0 commit comments