Changes

Jump to navigation Jump to search
11 bytes removed ,  00:27, 9 June 2015
Line 172: Line 172:  
The next of the available macros is the %patch macro. This macro helps automate the process of applying patches to the sources. It takes several options, listed below:
 
The next of the available macros is the %patch macro. This macro helps automate the process of applying patches to the sources. It takes several options, listed below:
   −
    # will apply Patch# as the patch file.
+
* # will apply Patch# as the patch file.
   −
    -p # specifies the number of directories to strip for the patch(1) command.
+
* -p # specifies the number of directories to strip for the patch(1) command.
   −
    -P The default action is to apply Patch (or Patch0). This flag inhibits the default action and will require a 0 to get the main source file untarred. This option is useful in a second (or later) %patch macro that required a different number than the first macro.
+
* -P The default action is to apply Patch (or Patch0). This flag inhibits the default action and will require a 0 to get the main source file untarred. This option is useful in a second (or later) %patch macro that required a different number than the first macro.
   −
    You can also do %patch# instead of doing the real command: %patch # -P
+
You can also do %patch# instead of doing the real command: %patch # -P
   −
    -b extension will save originals as filename.extension before patching.  
+
* -b extension will save originals as filename.extension before patching.  
    
That should be all the macros you need. After you have those right, you can also do any other setup you need to do via sh type scripting. Anything you include up until the %build macro (discussed in the next section) is executed via sh. Look at the example above for the types of things you might want to do here.
 
That should be all the macros you need. After you have those right, you can also do any other setup you need to do via sh type scripting. Anything you include up until the %build macro (discussed in the next section) is executed via sh. Look at the example above for the types of things you might want to do here.
 +
 
===Build===
 
===Build===
  

Navigation menu