pollymc/packages/rpm/makerpm.sh
2022-01-08 22:44:18 -05:00

10 lines
229 B
Bash
Executable File

#!/usr/bin/env bash
git submodule init
git submodule update
VERSION=$(git describe --tags | sed 's/-.*//')
DIR=$(pwd)
sed -i "s/Version:.*/Version: ${VERSION}/" polymc.spec
sudo dnf builddep polymc.spec
rpmbuild -ba polymc.spec