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 7373
7474SPEC=" ./$PKG .spec"
7575cat > " $SPEC " << EOF
76+ # disable in source builds on EPEL <9
77+ %undefine __cmake_in_source_build
78+ %undefine __cmake3_in_source_build
79+
7680# python2 is not available on RHEL > 7 and Fedora
7781%if 0%{?rhel} > 7 || 0%{?fedora}
7882%bcond_with python2
@@ -151,19 +155,16 @@ code scan defect lists to find out added or fixed defects.
151155
152156%build
153157make version.cc
154- mkdir -p %{_target_platform}
155- cd %{_target_platform}
156- %cmake3 .. -S.. -B. \\
158+ %cmake3 \\
157159 -DPYCSDIFF_PYTHON2=%{?with_python2:ON} \\
158160 -DPYCSDIFF_PYTHON3=%{?with_python3:ON}
159- %make_build
161+ %cmake3_build
160162
161163%install
162- %make_install -C %{_target_platform}
164+ %cmake3_install
163165
164166%check
165- cd %{_target_platform}
166- ctest3 %{?_smp_mflags} --output-on-failure
167+ %ctest3
167168
168169%files
169170%{_bindir}/csdiff
You can’t perform that action at this time.
0 commit comments