tree: 1c499e01dd221e0b4a2ef5378045b58efe27c64e [path history] [tgz]
  1. BUILD
  2. README.md
  3. test_rpm.spec
  4. WORKSPACE
examples/rpm/system_rpmbuild/README.md

Using system rpmbuild

Summary

This example uses the find_system_rpmbuild() macro built into rules_pkg to search for rpmbuild in on the local system and use that to drive the packaging process.

The RPM itself is based on a user provided spec file.

To use

bazel build :*
rpm2cpio bazel-bin/test-rpm.rpm | cpio -ivt
cat bazel-bin/content.txt