openSUSE Forums > openSUSE Build Service (OBS) » difference "mv" and "%{__mv}"

Go Back   openSUSE Forums > openSUSE Build Service (OBS)
Forums FAQ Members List Search Today's Posts Mark Forums Read


openSUSE Build Service (OBS) Questions about creating packages for openSUSE and using the Build Service

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-Oct-2009, 07:49
etamPL's Avatar
Puzzled Penguin
 
Join Date: Dec 2008
Location: Warsaw, Poland
Posts: 41
etamPL hasn't been rated much yet
Question difference "mv" and "%{__mv}"

I've seen in some spec files, that all commands are macros like %__make, %__install, %__cp, %__mv and so on.

Do you know whats the difference? Or why to use these macros instead of commands?
__________________
OpenSuSE 11.2 x86_64; Gnome 2.28; Laptop Asus S96S: Intel T8300 2.40GHz; nVidia 8600m GS (256MB); 4GB RAM;

Save the buildpower. Use aggregation.
Reply With Quote
  #2 (permalink)  
Old 02-Oct-2009, 11:52
Puzzled Penguin
 
Join Date: Jun 2008
Posts: 33
dbuck hasn't been rated much yet
Default Re: difference "mv" and "%{__mv}"

They are usually always the same on most systems/distributions/OSes.

The macro version is safer to use if you are building a package on multiple systems, one of which might use a different command for 'mv', like 'mv2' (which doesn't exist as far as I know, this is just an example.) In which case RPM has that already mapped for you, and you don't have to keep track of every case in the SPEC file.
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2