From b543ec1f918390136380d9c571fedad8784cecd1 Mon Sep 17 00:00:00 2001 From: Eric Wheeler Date: Wed, 14 Aug 2024 16:52:46 -0700 Subject: [PATCH] github: fix build-rpm-packages --- .github/workflows/build-rpm-packages.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-rpm-packages.yml b/.github/workflows/build-rpm-packages.yml index cf0e8b0..107b9e3 100644 --- a/.github/workflows/build-rpm-packages.yml +++ b/.github/workflows/build-rpm-packages.yml @@ -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