Skip to content

Commit

Permalink
build(srpm): remove some uncessary commands
Browse files Browse the repository at this point in the history
- Move the %global setup_flags inside the %else condition
- Drop 'pwd' and 'ls' from %build
  • Loading branch information
subpop authored and jirihnidek committed Dec 3, 2024
1 parent 119cc1e commit 0345b25
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dist/srpm/rhc.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ Version: @VERSION@
%if 0%{?fedora}
%global setup_flags -Dvendor=False
%else
%endif
%global setup_flags -Dvendor=True
%endif

%global common_description %{expand:
rhc is a client that registers a system with RHSM and activates the Red Hat yggd
Expand Down Expand Up @@ -101,8 +101,6 @@ Transition package to support migrating from rhcd to yggd.
%undefine _auto_set_build_flags
export %gomodulesmode
%{?gobuilddir:export GOPATH="%{gobuilddir}:${GOPATH:+${GOPATH}:}%{?gopath}"}
ls
pwd
%meson %setup_flags "-Dgobuildflags=[%(echo %{expand:%gocompilerflags} | sed -e s/"^"/"'"/ -e s/" "/"', '"/g -e s/"$"/"'"/), '-tags', '"rpm_crashtraceback\ ${BUILDTAGS:-}"', '-a', '-v', '-x']" -Dgoldflags='%{?currentgoldflags} -B 0x%(head -c20 /dev/urandom|od -An -tx1|tr -d " \n") -compressdwarf=false -linkmode=external -extldflags "%{build_ldflags} %{?__golang_extldflags}"'
%meson_build

Expand Down

0 comments on commit 0345b25

Please sign in to comment.