Gavin Stark - RDM wrote:
> When building an rpm from a source rpm I'd like to be able to capture
> the configure, make, install, and rpm specific output history. Any
> process (adding a file, etc.) would be acceptable as long as the
> output can be retrieved later. I am using rpm to package some
> software and often want to be able to keep the build history. I know
> I can keep the output as a separate file but I figured that since the
> rpm makes a nice package it would be handy to have this in there as
> well.
What you are asking for is a little unusual. Typically the build
would not be stored with the resulting binary. But if you really
wanted to you could save the output of the %prep, %build, %install
scripts into a file in the build root and then package it up the same
as any other generated file. But it just does not seem like a good
thing to me so I would recomment against it.
Hints:
%prep
{
%setup -q
} 2>&1 | tee -a build.log
%build
{
%configure
make
} 2>&1 | tee -a build.log
%install
{
%makeinstall
} 2>&1 | tee -a build.log
%files
%doc build.log
Bob
_______________________________________________
Rpm-list mailing list
Rpm-list@...
https://www.redhat.com/mailman/listinfo/rpm-list