tree: b79b32b6b8f191c521964c61caf4f326c7fd3fa2 [path history] [tgz]
  1. BUILD
  2. MODULE.bazel
  3. README.md
examples/rpm/subrpm/README.md

Using system rpmbuild with bzlmod

Summary

This example builds an RPM using the system rpmbuild from a pure bazel pkg_rpm() definition instead of using a separate specfile.

To use

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