Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
fix rhel macro
Browse files Browse the repository at this point in the history
  • Loading branch information
j-ogas committed Feb 9, 2024
1 parent 5377d8b commit dffb92e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packaging/fedora/build
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ rpmbuild root: %(rpmbuild)s
'charliecloud-test': [rpms_arch, '%s.%s.rpm' % (rpms_dist, ARCH)]}
rpm_specs = "/usr/local/src/SPECS"
rpm_sources = "/usr/local/src/SOURCES"
# Map el# to rhel# to avoid unresolved macro errors.
rpmbuild_args += ["--define", "rhel " % rpm_dist[-1]]
# Set rhel macro to avoid rpmbuild issues.
rpmbuild_args += ["--define", "rhel 0"]
rpmbuild_args += ["--define", "_topdir /usr/local/src"]
rpmlint_args += ["--file", "%s/charliecloud.rpmlintrc" % rpm_specs]
container += [CH_BASE + "/bin/ch-run", "-w",
Expand Down

0 comments on commit dffb92e

Please sign in to comment.