[
http://jira.codehaus.org/browse/MRPM-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=195333#action_195333
]
Brett Okken commented on MRPM-36:
---------------------------------
There is a typo in the javadoc "parameter" entry for the prepareScriptlet
parameter.
As an immediate work-around, you can use prepare or prepareScript (which are
both deprecated, but working)
/**
* The prepare script.
*
* @parameter
* @deprecated Use prepareScriplet
*/
private String prepare;
/**
* The location of the prepare script. A File which does not exist is
ignored.
*
* @parameter
* @deprecated Use prepareScriplet
*/
private File prepareScript;
> Unable to add %prep into rpm spec file
> --------------------------------------
>
> Key: MRPM-36
> URL: http://jira.codehaus.org/browse/MRPM-36
> Project: Mojo RPM Plugin
> Issue Type: Bug
> Affects Versions: 2.0-beta-3
> Reporter: Ron Quartel
> Assignee: Brett Okken
> Fix For: 2.0-beta-4
>
>
> There is support for preinstall, clean, postinstall, preremove and
> postremove scripts, but none for a %prep script.
> To get around this I had to use a dirty hack of putting the prep script in
> the description tag i.e.
> <description>My Description went here.
> %prep
> %define _use_internal_dependency_generator 0
> cat <<EOF > %{_builddir}/mycomp-requires-%{release}
> #!/bin/bash
> exec `rpm --eval '%%{__find_requires}'` | grep -Ev
> 'libICE|libSM|libX|libgdk|libgtk|libgmodule|runscript|libnspr|libodbc|libasound|libjava_crw_demo_g'
> EOF
> %define __find_requires %{_builddir}/mycomp-requires-%{release}
> chmod +x %{__find_requires}
> </description>
> Please can you fix / add support for a prep script?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email