[
http://jira.codehaus.org/browse/MRPM-36?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=195282#action_195282
]
Alessio Signorini commented on MRPM-36:
---------------------------------------
Somehow I cannot make this work.
Just to make sure, I used the same file on both prepareScriptlet and
preinstallScriptlet
<preinstallScriptlet>
<scriptFile>../scripts/rpm/preinstall.scriptlet</scriptFile>
<fileEncoding>utf-8</fileEncoding>
</preinstallScriptlet>
<prepareScriptlet>
<scriptFile>../scripts/rpm/preinstall.scriptlet</scriptFile>
<fileEncoding>utf-8</fileEncoding>
</prepareScriptlet>
and I also tried a file in an absolute path
<prepareScriptlet>
<scriptFile>/tmp/prep.scriptlet</scriptFile>
<fileEncoding>utf-8</fileEncoding>
</prepareScriptlet>
but while the others get included/execute
[INFO] Requires(interp): /bin/sh /bin/sh /bin/sh /bin/sh
[INFO] Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
[INFO] Requires(pre): /bin/sh
[INFO] Requires(post): /bin/sh
[INFO] Requires(preun): /bin/sh
[INFO] Requires(postun): /bin/sh
[INFO] Checking for unpackaged file(s): /usr/lib/rpm/check-files
/development/release-5.11/rpm/...
there is no trace of the %prep in the .SPEC file. Does it work for you guys?
> 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