Robert Kaussow
35a21e8ec2
Some checks reported errors
continuous-integration/drone/push Build was killed
Co-authored-by: Robert Kaussow <xoxys@rknet.org> Co-committed-by: Robert Kaussow <xoxys@rknet.org>
1.7 KiB
1.7 KiB
rpmbuild
Base image to build RPM packages
Simple Docker images based on CentOS 7/Rocky Linux 8 to build RPM packages.
Environment variables
RPMBUILD_BASE_DIR=/drone/src
How to use
There are two wrapper scripts around the rpmbuild command you could use:
/usr/local/bin/rpmbuild-official
: This will simply forward your command to the official binary at/usr/bin/rpmbuild
/usr/local/bin/rpmbuil
: This is a modified wrapper to prepare the environment before calling rpmbuil
The wrapper /usr/local/bin/rpmbuil
will do the following:
- create
$RPMBUILD_BASE_DIR/dist
- create rpmbuild folder structure (
BUILDRPMS|SOURCES|SPECS|SRPMS
) under$RPMBUILD_BASE_DIR/dist
- sync local patchfiles from
$RPMBUILD_BASE_DIR/patch
to$RPMBUILD_BASE_DIR/dist/SOURCES
if thepatch
folder exist - call
/bin/rpmbuil
with the given parameters
License
This project is licensed under the MIT License - see the LICENSE file for details.