21 lines
752 B
Bash
Executable File
21 lines
752 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
repo_root=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)
|
|
tool_dir="$repo_root/plasma-fingerprint-workaround"
|
|
topdir="$repo_root/rpmbuild"
|
|
|
|
mkdir -p "$topdir"/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS}
|
|
install -m 0755 \
|
|
"$tool_dir/plasma-fingerprint-workaround" \
|
|
"$topdir/SOURCES/plasma-fingerprint-workaround"
|
|
install -m 0644 "$tool_dir/payload.conf" "$topdir/SOURCES/payload.conf"
|
|
install -m 0644 "$repo_root/LICENSE" "$topdir/SOURCES/LICENSE"
|
|
install -m 0644 "$tool_dir/README.md" "$topdir/SOURCES/README.md"
|
|
install -m 0755 "$tool_dir/tests/test-controller" "$topdir/SOURCES/test-controller"
|
|
|
|
rpmbuild \
|
|
--define "_topdir $topdir" \
|
|
-bb "$tool_dir/plasma-fingerprint-workaround.spec"
|