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-4
            Reporter: Ron Quartel
            Assignee: Brett Okken


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 &lt;&lt;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


Reply via email to