You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

rpm.html 2.8 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <html>
  2. <head>
  3. <link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
  4. <title>Rpm Task</title>
  5. </head>
  6. <body>
  7. <h2><a name="rpm">Rpm</a></h2>
  8. <h3>Description</h3>
  9. <p>
  10. A basic task for invoking the rpm executable to build a Linux installation
  11. file. The task currently only works on Linux or other Unix platforms
  12. with rpm support.
  13. </p>
  14. <h3>Parameters</h3>
  15. <table border="1" cellpadding="2" cellspacing="0">
  16. <tr>
  17. <td valign="top"><b>Attribute</b></td>
  18. <td valign="top"><b>Description</b></td>
  19. <td align="center" valign="top"><b>Required</b></td>
  20. </tr>
  21. <tr>
  22. <td valign="top">specFile</td>
  23. <td valign="top">The name of the spec file to be used.</td>
  24. <td valign="top" align="center">Yes</td>
  25. </tr>
  26. <tr>
  27. <td valign="top">topDir</td>
  28. <td valign="top">
  29. This is the directory which will have the expected
  30. subdirectories, SPECS, SOURCES, BUILD, SRPMS. If this isn't specified,
  31. the baseDir value is used
  32. </td>
  33. <td valign="top" align="center">No</td>
  34. </tr>
  35. <tr>
  36. <td valign="top">cleanBuildDir</td>
  37. <td valign="top">This will remove the generated files in the BUILD
  38. directory.</td>
  39. <td align="center" valign="top">No</td>
  40. </tr>
  41. <tr>
  42. <td valign="top">removeSpec</td>
  43. <td valign="top">This will remove the spec file from SPECS</td>
  44. <td align="center" valign="top">No</td>
  45. </tr>
  46. <tr>
  47. <td valign="top">removeSource</td>
  48. <td valign="top">Flag (optional, default=false)
  49. to remove the sources after the build.
  50. See the the <tt>--rmsource</tt> option of rpmbuild.</td>
  51. <td align="center" valign="top">No</td>
  52. </tr>
  53. <tr>
  54. <td valign="top">rpmBuildCommand</td>
  55. <td valign="top">The executable to use for building the RPM.
  56. Defaults to <code>rpmbuild</code> if it can be found or
  57. <code>rpm</code> otherwise. Set this if you don't have either on
  58. your PATH or want to use a different executable. <em>Since Ant
  59. 1.6</em>.</td>
  60. <td valign="top" align="center">No</td>
  61. </tr>
  62. <tr>
  63. <td valign="top">command</td>
  64. <td valign="top">Very similar idea to the cvs task. the default is "-bb"</td>
  65. <td align="center" valign="top">No</td>
  66. </tr>
  67. <tr>
  68. <td valign="top">quiet</td>
  69. <td valign="top">Suppress output. Defaults to false.</td>
  70. <td align="center" valign="top">No</td>
  71. </tr>
  72. <tr>
  73. <td valign="top">output/error</td>
  74. <td valign="top">Where standard output and error go</td>
  75. <td align="center" valign="top">No</td>
  76. </tr>
  77. <tr>
  78. <td valign="top">failOnError</td>
  79. <td valign="top">Stop the buildprocess if the RPM build command exits with
  80. a non-zero retuncode. Defaults to false</td>
  81. <td align="center" valign="top">No</td>
  82. </tr>
  83. </table>
  84. <hr>
  85. <p align="center">Copyright &copy; 2001-2005 The Apache Software Foundation. All rights
  86. Reserved.</p>
  87. </body>
  88. </html>