rpm/build
Panu Matilainen 122bb4ffae Add parsed and expanded spec to src.rpm header (#1241)
The trend of packaging is to hide more and more of what actually happens
behind helper macros and other dynamically generated constructs. While
this is mostly a good thing, it makes understanding and postmortem
analysis harder than it should be. Add the spec in its parsed and
expanded form into the src.rpm header to make the actual contents of the
build more trackable.

It can be argued this does not belong in the header and should be in
payload instead, my rationale for the placement is that this way the
payload remains effectively arch independent, whereas the header already
heavily reflects the particular environment where it was built.

Probably worth noting that %setup and %patch built-in macros are not
properly expanded in the stored spec, but that's a separate issue
related the special way %prep is processed.

Fixes: #1241
2022-05-09 14:03:03 +02:00
..
Makefile.am Eliminate the strange include pre-build install machinery 2022-03-10 08:40:07 +02:00
build.c Add separate build configuration (%conf) section to spec 2022-02-28 15:07:22 +01:00
files.c Detach rpm's hash algorithm values from PGP hash algorith values 2022-02-25 11:08:25 +01:00
misc.c Make parseUnsignedNum() return code more obvious 2019-04-25 10:40:31 +02:00
pack.c Add parsed and expanded spec to src.rpm header (#1241) 2022-05-09 14:03:03 +02:00
parseChangelog.c Shut up bogus Doxygen warnings about undocumented parameters 2020-10-28 10:40:41 +02:00
parseDescription.c Fix POPT_ARG_STRING memleaks in librpmbuild 2020-02-03 17:09:04 +01:00
parseFiles.c Use RPMMACRO_LITERAL/ME_LITERAL when defining some macros 2020-02-10 15:41:33 +02:00
parseList.c Add support for %patchlist and %sourcelist spec sections 2019-05-14 16:15:57 +03:00
parsePolicies.c Fix POPT_ARG_STRING memleaks in librpmbuild 2020-02-03 17:09:04 +01:00
parsePreamble.c Allow qualifiers like pre, post, preun, ... for weak dependencies, too 2022-01-17 16:42:32 +02:00
parsePrep.c Fix %setup and %patch not getting expanded in rpmspec --parse output 2022-05-05 10:59:16 +03:00
parseReqs.c Require package names to be valid provides 2021-10-14 13:50:52 +03:00
parseScript.c Make Lua a hard requirement for rpm 2021-02-09 13:57:27 +02:00
parseSimpleScript.c Port parseSimpleScript() to use parseLines(), no functional changes 2019-04-17 13:18:50 +02:00
parseSpec.c Fix %setup and %patch not getting expanded in rpmspec --parse output 2022-05-05 10:59:16 +03:00
policies.c Fix build regression in commit 307872f71b 2020-02-04 09:51:41 +01:00
reqprov.c Flag build-time rpmlib() dependencies in src.rpm as missingok 2019-10-28 15:29:50 +02:00
rpmbuild_internal.h Fix %setup and %patch not getting expanded in rpmspec --parse output 2022-05-05 10:59:16 +03:00
rpmbuild_misc.h Shut up bogus Doxygen warnings about undocumented parameters 2020-10-28 10:40:41 +02:00
rpmfc.c Lone deprecation on rpmbuild side, lose rpmfcNew() while we're at it 2022-04-08 12:00:11 +03:00
spec.c Add separate build configuration (%conf) section to spec 2022-02-28 15:07:22 +01:00
speclua.c Drop lua parameter in addLuaSource function 2021-11-26 13:48:47 +02:00