2020-09-02 20:25:24 +00:00
|
|
|
# rpmbuild
|
|
|
|
|
2021-10-23 14:16:55 +00:00
|
|
|
Base image to build RPM packages
|
2019-02-09 14:16:04 +00:00
|
|
|
|
2020-02-22 17:08:14 +00:00
|
|
|
[![Build Status](https://img.shields.io/drone/build/docker/rpmbuild?logo=drone&server=https%3A%2F%2Fdrone.rknet.org)](https://drone.rknet.org/docker/rpmbuild)
|
2020-09-21 20:11:01 +00:00
|
|
|
[![Docker Hub](https://img.shields.io/badge/dockerhub-latest-blue.svg?logo=docker&logoColor=white)](https://hub.docker.com/r/thegeeklab/rpmbuild)
|
2020-09-02 20:25:24 +00:00
|
|
|
[![Quay.io](https://img.shields.io/badge/quay-latest-blue.svg?logo=docker&logoColor=white)](https://quay.io/repository/thegeeklab/rpmbuild)
|
|
|
|
[![Source: Gitea](https://img.shields.io/badge/source-gitea-blue.svg?logo=gitea&logoColor=white)](https://gitea.rknet.org/docker/rpmbuild)
|
2020-12-30 15:31:41 +00:00
|
|
|
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](https://gitea.rknet.org/docker/rpmbuild/src/branch/main/LICENSE)
|
2019-03-18 12:46:03 +00:00
|
|
|
|
2021-10-23 14:16:55 +00:00
|
|
|
Simple Docker images based on CentOS 7/Rocky Linux 8 to build RPM packages.
|
2020-02-22 17:08:14 +00:00
|
|
|
|
2020-06-12 06:50:48 +00:00
|
|
|
## Environment variables
|
|
|
|
|
|
|
|
```Shell
|
|
|
|
RPMBUILD_BASE_DIR=/drone/src
|
|
|
|
```
|
|
|
|
|
2020-06-11 13:41:32 +00:00
|
|
|
## How to use
|
|
|
|
|
|
|
|
There are two wrapper scripts around the rpmbuild command you could use:
|
|
|
|
|
2020-06-12 06:50:48 +00:00
|
|
|
- `/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
|
2020-06-11 13:41:32 +00:00
|
|
|
|
2020-06-12 06:50:48 +00:00
|
|
|
The wrapper `/usr/local/bin/rpmbuil` will do the following:
|
2020-06-11 13:41:32 +00:00
|
|
|
|
2020-06-12 06:50:48 +00:00
|
|
|
- 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
|
2020-06-11 13:41:32 +00:00
|
|
|
- call `/bin/rpmbuil` with the given parameters
|
|
|
|
|
2020-02-22 17:08:14 +00:00
|
|
|
## License
|
|
|
|
|
2020-12-30 15:31:41 +00:00
|
|
|
This project is licensed under the MIT License - see the [LICENSE](https://gitea.rknet.org/docker/rpmbuild/src/branch/main/LICENSE) file for details.
|