Skip to content

Commit

Permalink
build(rpm): Reintroduce %dist fix
Browse files Browse the repository at this point in the history
The workaround for %dist being empty in a COPR SRPM build was
inadvertently removed during a previous refactoring of the spec file.
  • Loading branch information
subpop committed Nov 29, 2024
1 parent e278c35 commit 6917b5c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dist/srpm/yggdrasil.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ Version: @VERSION@
%forgemeta
%endif

# Manually redefine %%dist to work around an issue in COPR where the build root
# that creates the srpm does not define a value for %%dist. This should *NOT* be
# carried in downstream; this is strictly an upstream/COPR/CI workaround.
%if "%{dist}" == ""
%global dist %{distprefix}.fc%{fedora}
%endif

%if 0%{?fedora}
%global setup_flags -Dvendor=False -Dexamples=True
%else
Expand Down

0 comments on commit 6917b5c

Please sign in to comment.