Skip to content

mgruener/docker-rpmbuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Docker rpmbuild

Simple image to create SRPMS/RPMS. Installed packages

  • rpm-build (main tool: rpmbuild)
  • rpmdevtools (main tool: spectool)
  • mock

The container runs as user rpmbuild, but has full sudo rights for example to install dependencies (if necessary).

The image is mainly intended to create SRPMs on Travis-CI which then can be build on copr.

Example

Suppose your rpm build tree is located at /home/myuser/rpmbuild/

docker run -it --rm \
  -v /home/myuser/rpmbuild/:/home/rpmbuild/rpmbuild \
  mgruener/rpmbuild \
  spectool -R -g rpmbuild/SPECS/foobar.spec

This would download all Sources / Patches references in the foobar.spec spefile to /home/myuser/rpmbuild/SOURCES

Executing

docker run -it --rm \
  -v /home/myuser/rpmbuild/:/home/rpmbuild/rpmbuild \
  mgruener/rpmbuild \
  rpmbuild -bs rpmbuild/SPECS/foobar.spec

would then create a foobar*.src.rpm SRPM in /home/myuser/rpmbuild/SRPMS.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published