RE : RE : %clean section not processed
| Newsgroups | gmane.linux.redhat.rpm.general |
|---|---|
| Message-ID | <8F97125A217C9A4E919BA0B9121C2479A81743@PUEXCBC0.nanterre.francetelecom.fr> |
In fact, it seems that the %__spec_clean_post needs to be set instead of %__spec_clean_body. -----Message d'origine----- De : [email protected] [mailto:[email protected]] De la part de Jeff Johnson Envoyé : jeudi 17 janvier 2008 16:16 À : RPM Package Manager Objet : Re: RE : %clean section not processed On Jan 17, 2008 4:47 AM, <[email protected]> wrote: In fact, I'm using the %{buildroot}.tmp as a temporary working directory to store especially my own find_requires script (including "%{__cat} >/dev/null") and a env.sh shell script, used to pass some environment variables between the building scriptlets. So my %clean section removes both %{buildroot} and %{buildroot}.tmp directories. Is there really no way at all to enable the %clean section ? The %clean section has been refactor'd to be part of build configuration rather than package recipe. Override this macro in your specfile if you want to change what %clean does in rpm-4.4.7 and later (the default value, simplified, is included): %define __spec_clean_body rm -rf %{buildroot}; There are likelier better ways than %{buildroot}.tmp to carry custom dependency filters, but I'll leave the packaging style choices to you. 73 de Jeff _______________________________________________ Rpm-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/rpm-list