[
http://jira.codehaus.org/browse/MRPM-67?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=213294#action_213294
]
Dave Whitla commented on MRPM-67:
---------------------------------
For the benefit of anyone else who has this issue the RPM distro available from
macports does not set %_tmppath to any default value.
One way of addressing the problem is to add this to the rpm-maven-plugin
configuration:
<!-- _tmppath is not set correctly on Mac OS X so it is forced here -->
<defineStatement>_tmppath /tmp</defineStatement>
Alternatively you could add the following to ~/.rpmmacros:
%_tmppath /tmp
> rpm goal always fails on Mac OS X
> ---------------------------------
>
> Key: MRPM-67
> URL: http://jira.codehaus.org/browse/MRPM-67
> Project: Mojo RPM Plugin
> Issue Type: Bug
> Components: rpm
> Affects Versions: 2.0.1
> Environment: Mac OS X Snow Leopard with rpm 4.4.9 (installed via
> ports)
> Reporter: Dave Whitla
> Assignee: Brett Okken
> Fix For: 2.0.1
>
>
> I haven't looked at the source yet to confirm but my suspicion is that the
> spaces in the auto detected system os are the cause.
> For example:
> [INFO] RPM build execution returned: '1' executing '/bin/sh -c cd
> /Users/dwhitla/dev/travel.com.au/travel-vhost-static.travel.com.au/trunk/target/rpm/travel-vhost-static.travel.com.au/SPECS
> && rpmbuild -bb --buildroot
> /Users/dwhitla/dev/travel.com.au/travel-vhost-static.travel.com.au/trunk/target/rpm/travel-vhost-static.travel.com.au/buildroot
> --define '_topdir
> /Users/dwhitla/dev/travel.com.au/travel-vhost-static.travel.com.au/trunk/target/rpm/travel-vhost-static.travel.com.au'
> --target '*noarch-apple-mac os x*' travel-vhost-static.travel.com.au.spec'
--
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