This repository has been archived on 2023-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Robert Kaussow 23c7458552
All checks were successful
continuous-integration/drone/push Build is passing
fix condition to check if local patch directory is present
2020-06-12 09:11:00 +02:00
overlay/usr/local/bin fix condition to check if local patch directory is present 2020-06-12 09:11:00 +02:00
.drone.yml fix drone trigger 2020-06-11 14:56:29 +02:00
.prettierignore add prettierignore file and exclude drone config 2020-06-11 14:57:41 +02:00
Dockerfile remove symlink creation for sh; already exists 2020-06-12 08:56:55 +02:00
LICENSE update readme and license 2020-02-22 18:08:14 +01:00
README.md add RPMBUILD_BASE_DIR to configure the base dir used for rpmbuild 2020-06-12 08:50:48 +02:00

rpmbuild

Build Status Docker Hub License: MIT

Simple Docker image based on CentOS 7 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 the patch folder exist
  • call /bin/rpmbuil with the given parameters

License

This project is licensed under the MIT License - see the LICENSE file for details.

Maintainers and Contributors

Robert Kaussow