Dockerized RPM building tool for any platforms based on RPMBuilder.
Demo • Requirements • Getting started • Prebuilt images • Usage • ShellCheck Status • Credits • License
- Docker
Install dkrpm
shell script to one of available $PATH
directory.
sudo cp dkrpm /usr/local/bin/dkrpm
sudo chmod +x /usr/local/bin/dkrpm
Use environment variables DOCKER_RPMBUILDER_IMAGE
and DOCKER_PERFECTO_IMAGE
to specify custom images.
Feel free to use any of the following prebuilt images:
- gongled/rpmbuilder:7 [default]
- gongled/rpmbuilder:6
Use Makefile target all
to build example images from the source code:
make all
Docker images provide the following repositories by default.
In case you need to setup custom YUM repository, please make changes to Dockerfile
and build your own image.
Usage: dkrpm command source <option>
Commands:
p or pack Create RPM package from spec file
u or unpack Unpack source files from SRPM package
c or check Validate spec file using Perfecto
d or debug Run shell command instead of RPMBuilder
h or help Show detailed information about command
See "dkrpm help <command>" for information on a specific command.
Examples:
dkrpm pack htop.spec -V -1
dkrpm unpack htop-2.0.2-0.el7.src.rpm
dkrpm check htop.spec
dkrpm debug htop.spec
Branch | Status |
---|---|
master |
|
develop |
Anton Novojilov for RPMBuilder and ESSENTIAL KAOS repository.
MIT