Skip to content

Commit

Permalink
copr: avoid including distro in srpm
Browse files Browse the repository at this point in the history
  • Loading branch information
wez committed Oct 3, 2023
1 parent fafd322 commit 9bafd52
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ci/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,15 @@ case $OSTYPE in
distroid=$(sh -c "source /etc/os-release && echo \$ID" | tr - _)
distver=$(sh -c "source /etc/os-release && echo \$VERSION_ID" | tr - _)

SPEC_RELEASE="1.${distroid}${distver}"
if test -n "${COPR_SRPM}" ; then
SPEC_RELEASE=0
fi

cat > wezterm.spec <<EOF
Name: wezterm
Version: ${WEZTERM_RPM_VERSION}
Release: 1.${distroid}${distver}
Release: ${SPEC_RELEASE}
Packager: Wez Furlong <[email protected]>
License: MIT
URL: https://wezfurlong.org/wezterm/
Expand Down

0 comments on commit 9bafd52

Please sign in to comment.