Skip to content

Commit

Permalink
simplify build script
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeOShannessy committed Jan 2, 2025
1 parent 8aabcc5 commit 7f641d0
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions fds/buildrpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,6 @@ rpmbuild -ba fds.spec \
--define "revision_date ${revision_date}" \
--define "version_patch ${version_patch}" \
--define "backports_patch ${backports_patch}" \
"$@"
"$@" --noclean
mkdir -p ../../../dist
cp rpmbuild/RPMS/"$(rpmbuild --eval '%{_arch}')"/*.rpm ../../../dist/

if [ "$version" = "$latest" ]; then
mkdir -p rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
rm rpmbuild/SOURCES/fds.sh.zip || true
zip rpmbuild/SOURCES/fds.sh.zip ../../fds.sh
cp ../../"$backports_patch" rpmbuild/SOURCES || true
cp ../../"$version_patch" rpmbuild/SOURCES || true
cat ../../"$version".spec ../../template.spec > fds.spec
spectool -g fds.spec -C rpmbuild/SOURCES --all \
--define "_topdir $(pwd)/rpmbuild" \
--define "this_version ${version}" \
--define "repo ${repo}" \
--define "commit ${commit}" \
--define "revision_date ${revision_date}" \
--define "version_patch ${version_patch}" \
--define "backports_patch ${backports_patch}"
rpmbuild -ba fds.spec \
--define "_topdir $(pwd)/rpmbuild" \
--define "this_version ${version}" \
--define "repo ${repo}" \
--define "commit ${commit}" \
--define "revision_date ${revision_date}" \
--define "version_patch ${version_patch}" \
--define "backports_patch ${backports_patch}" \
"$@" --noclean
mkdir -p ../../../dist
cp rpmbuild/RPMS/"$(rpmbuild --eval '%{_arch}')"/*.rpm ../../../dist/
fi

0 comments on commit 7f641d0

Please sign in to comment.