From mboxrd@z Thu Jan 1 00:00:00 1970 From: George Dunlap Subject: Re: [PATCH] Add a "make rpmball" target Date: Mon, 3 Mar 2014 16:36:26 +0000 Message-ID: <5314AF8A.2070301@eu.citrix.com> References: <1393858780-11628-1-git-send-email-george.dunlap@eu.citrix.com> <20140303162358.GA23543@aepfle.de> <5314AF0C.6080708@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5314AF0C.6080708@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Ian Jackson , Dario Faggioli , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On 03/03/2014 04:34 PM, George Dunlap wrote: > On 03/03/2014 04:23 PM, Olaf Hering wrote: >> On Mon, Mar 03, George Dunlap wrote: >> >> >>> +%install >>> +rm -rf \$RPM_BUILD_ROOT >>> +mkdir -p \$RPM_BUILD_ROOT >> Newer rpms are supposed to do that automatically, but I dont know what >> "newer" actually means. And certainly it does not hurt to keep this. >> >>> +cd %{_xenroot} >>> +dist/install.sh \$RPM_BUILD_ROOT/ >>> + >>> +cd \$RPM_BUILD_ROOT >>> + >>> +# Don't include xen-syms >>> +rm -f boot/xen-syms* >>> +# Remove all the "linked" xen-*.gz files >>> +rm -f \$(find boot/ -type l) >> "find $paht -type l -delete"? > > Ack. > >> >>> +%files >>> +%defattr(-,root,root,-) >>> +/* >> In this case, to avoid package conflicts, add some tags like: >> >> Obsoletes: xen-libs >> Obsoletes: xen-tools > > What exactly would this be for? "remove another named package(s) when this package is installed" -- I think that's a bit more than we want in the rpmball. I'd much rather the developer have to remove the conflicting packages themselves, rather than have it done automatically. -George