diff --git a/README.md b/README.md index 2216f2a..0a918a8 100644 --- a/README.md +++ b/README.md @@ -292,6 +292,10 @@ In addition to the shorthands, the template provides several additional abbreviations for groups of targets: `cb`, `cbd`, `cbi`, `cbic` and `cdbc`. +When building on systems that use RPMs, a `specdump` target is +available that produces a macro-expanded version of the spec file on +the standard output. This is for informational/debug purposes only +and should not be relied upon for finished builds. ## The `unibuild-packaging` Directory diff --git a/unibuild-package/unibuild-package/unibuild-rpm.make b/unibuild-package/unibuild-package/unibuild-rpm.make index 1855450..56dd2f6 100644 --- a/unibuild-package/unibuild-package/unibuild-rpm.make +++ b/unibuild-package/unibuild-package/unibuild-rpm.make @@ -44,6 +44,11 @@ endif SOURCE_FILES := $(shell spectool -S $(SPEC) | awk '{ print $$2 }') PATCH_FILES := $(shell spectool -P $(SPEC) | awk '{ print $$2 }') +# Dump a macro-expanded version of the spec to stdout +specdump: + rpmspec -P "$(SPEC)" + + # # RPM Build Directory #