a question about the .spec file

Pete Zaitcev zaitcev at redhat.com
Fri Feb 23 01:34:45 UTC 2007


On Thu, 22 Feb 2007 18:17:44 -0500, "Chris Taylor" <chtaylo4 at gmail.com> wrote:

> So basically this is how to recreate the problem:
> install the srpm for kernel-2.6.18
> build the rpm from source
> install the 2.6.18 rpm
> install the srpm for kernel-2.6.19
> build the rpm from source
> watch all config files applied (2.6.18 and 2.6.19)

I do "rm rpms/SOURCES/*" before the "install the srpm for ..." step.
My ~/.rpmmacros is this:

%_topdir        /q/zaitcev/rpms
%_packager      Pete Zaitcev <zaitcev at yahoo.com>

Some run Mike Harris' .rpmmacros, which allows to preserve sets
of sources:

%_topdir        /q/zaitcev/rpms
%_packager      Pete Zaitcev <zaitcev at yahoo.com>
%_sourcedir     %{_topdir}/SOURCES/%{name}-%{version}
%_specdir       %{_sourcedir}

In that case, "rm -rf rpms/SOURCES/kernel-whatever" is the answer.

But the main point is to do the cleanup before installing an SRPM,
not once you're done playing. You'll never remember doing the cleanup
if you postpone it.

-- Pete




More information about the devel mailing list