From 1b9e884537b399f5b737817db03a3ee78ff5f20d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Thu, 11 Jun 2020 15:41:32 +0200 Subject: [PATCH] document new rpmbuild wrapper --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 49ba916..be83585 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,20 @@ Simple Docker image based on CentOS 7 to build RPM packages. +## How to use + +There are two wrapper scripts around the rpmbuild command you could use: + +- `/bin/rpmbuild-official`: This will simply forward your command to the official binary at `/usr/bin/rpmbuild` +- `/bin/rpmbuil`: This is a modified wrapper to prepare the environment before calling rpmbuil + +The wrapper `/bin/rpmbuil` will do the following: + +- create `$(pwd)/dist` +- create rpmbuild folder structure (`BUILDRPMS|SOURCES|SPECS|SRPMS`) under `$(pwd)/dist` +- sync local patchfiles from `$(pwd)/patch` to `$(pwd)/dist/SOURCES` +- call `/bin/rpmbuil` with the given parameters + ## License This project is licensed under the MIT License - see the [LICENSE](https://gitea.rknet.org/docker/rpmbuild/src/branch/master/LICENSE) file for details.