mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-19 04:34:45 -05:00
13 lines
587 B
Bash
13 lines
587 B
Bash
|
#!/bin/bash
|
||
|
ARCH=$1
|
||
|
CARGO_ARCH=$2
|
||
|
CARGO_VERSION="$(/veilid/package/cargo_version.sh /veilid/veilid-cli/Cargo.toml)"
|
||
|
|
||
|
# veilid-cli spec file
|
||
|
cp -rf /veilid/package/rpm/veilid-cli/veilid-cli.spec /root/rpmbuild/SPECS/
|
||
|
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-cli.spec CARGO_VERSION $CARGO_VERSION
|
||
|
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-cli.spec ARCH $ARCH
|
||
|
/veilid/package/replace_variable.sh /root/rpmbuild/SPECS/veilid-cli.spec CARGO_ARCH $CARGO_ARCH
|
||
|
|
||
|
# build the rpm
|
||
|
rpmbuild --target "x86_64" -bb /root/rpmbuild/SPECS/veilid-cli.spec
|