You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Robert Kaussow d99bc34a33
[skip ci] remove local changelog
2 weeks ago
overlay/usr/local/bin fix condition to check if local patch directory is present 8 months ago
.drone.yml switch to docker-buildx 1 month ago
.gitignore [skip ci] remove local changelog 2 weeks ago
.markdownlint.yml enable markdownlint 4 months ago
.prettierignore fix drone trigger 4 months ago
Dockerfile switch to org.opencontainers container labels 2 months ago
LICENSE update license 2 weeks ago
README.md chore: replace master by main as default branch 2 months ago

README.md

rpmbuild

CentOS 7 image to build RPM packages

Build Status Docker Hub Quay.io Source: Gitea 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.