blob: ea27429b2f2d9062e577e84e1a1ab0ee6e011440 [file] [view]
# 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
```