FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Packaging

LinkBack Thread Tools
Old 02-02-2011, 07:41 PM
Michael Schwendt
Default About BuildRoot tag

On Wed, 2 Feb 2011 17:19:25 -0300, Sergio wrote:

> Hi,
> I've read in Packaging Guidelines that:
> "Fedora (as of F-10) does not require the presence of the BuildRoot
> tag in the spec and if one is defined it will be ignored. The provided
> buildroot will automatically be cleaned before commands in %install
> are called."
> However if I run rpmdev-newspec myprog.spec it creates the tag:
> BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
> So what is the right approach about it?

You may delete that BuildRoot line and the "rm -rf $RPM_BUILD_ROOT" at
beginning of %install and the default %clean section. At least since
Fedora 12 they are not needed anymore, for sure. Don't worry about F-10
as it's even older.
packaging mailing list

Thread Tools

All times are GMT. The time now is 01:08 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org