Skip to content

Commit

Permalink
github: fix build-rpm-packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Wheeler committed Aug 14, 2024
1 parent 8edb07e commit b543ec1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build-rpm-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,17 @@ jobs:
# Prepare the RPM build environment
rpmdev-setuptree
# Generate the spec file
./autogen.sh
# Generate the spec file or ensure it exists
if [ -f ./autogen.sh ]; then
./autogen.sh
fi
# Copy the spec file to the SPECS directory if necessary
cp xnec2c.spec /root/rpmbuild/SPECS/
# Build the RPM
rpmbuild -ba --define \"_version ${VERSION}\" --define \"_dist ${DIST}\" \
--define \"_topdir /root/rpmbuild\" xnec2c.spec
--define \"_topdir /root/rpmbuild\" /root/rpmbuild/SPECS/xnec2c.spec
# Check the RPM files
ls -l /root/rpmbuild/RPMS/x86_64
Expand Down

0 comments on commit b543ec1

Please sign in to comment.