Skip to content

Commit

Permalink
ulpatch.spec: Rename build_ulftrace to with_ulftrace
Browse files Browse the repository at this point in the history
Signed-off-by: Rong Tao <rongtao@cestc.cn>
  • Loading branch information
Rtoax committed May 22, 2024
1 parent d978ffa commit 3474523
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ulpatch.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# All changes to build and install RPM packages go here.

# Default disable ulftrace, beacuse it's is unimplemented.
%global build_ulftrace 0
%global with_ulftrace 0

Name: ulpatch
Version: 0.5.6
Expand Down Expand Up @@ -63,7 +63,7 @@ pushd %{_builddir}/ulpatch-v%{version}
mkdir build
pushd build
cmake -DCMAKE_BUILD_TYPE=Release \
%if !%{build_ulftrace}
%if !%{with_ulftrace}
-DBUILD_ULFTRACE=OFF \
%endif
..
Expand All @@ -81,12 +81,12 @@ popd

%files
%{_bindir}/ulpatch
%if %{build_ulftrace}
%if %{with_ulftrace}
%{_bindir}/ulftrace
%endif
%{_bindir}/ulpinfo
%{_bindir}/ultask
%if %{build_ulftrace}
%if %{with_ulftrace}
%{_mandir}/man8/ulftrace.8.gz
%endif
%{_mandir}/man8/ulpatch.8.gz
Expand Down

0 comments on commit 3474523

Please sign in to comment.