Skip to content

Commit

Permalink
Added specdump target for RPMs.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeit-internet2 committed Jul 3, 2024
1 parent b5ff2ee commit 923bf5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions unibuild-package/unibuild-package/unibuild-rpm.make
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down

0 comments on commit 923bf5d

Please sign in to comment.