mirror of
https://github.com/t2linux/fedora.git
synced 2026-08-16 05:18:11 -07:00
This will compile all packages simultaneously. The environment variable $PACKAGE should be set to the desired package before starting a build. Any modified packages must also be added/removed from build.yml. Merges https://github.com/t2linux/t2linux-fedora-kernel/pull/5
22 lines
542 B
Bash
Executable File
22 lines
542 B
Bash
Executable File
#!/usr/bin/bash
|
|
|
|
build_package() {
|
|
spectool -g $1
|
|
mock --quiet --buildsrpm --spec $1 --sources . --resultdir /repo/_output
|
|
mock --quiet --rebuild /repo/_output/*.src.rpm --resultdir /repo/_output
|
|
}
|
|
|
|
download_koji_sources() {
|
|
# Takes full koji build name as input
|
|
koji download-build --arch=src $1
|
|
rpmdev-extract $1.src.rpm
|
|
mv -n $1.src/* .
|
|
rm -r $1.src $1.src.rpm
|
|
}
|
|
|
|
sign_packages() {
|
|
echo $1 | base64 -d | gpg --import
|
|
echo -e "%_signature gpg\n%_gpg_name $2" > ~/.rpmmacros
|
|
rpm --addsign *.rpm
|
|
}
|