Issue Type: Bug Bug
Affects Versions: 2.1-alpha-2
Assignee: Unassigned
Components: rpm
Created: 15/Jan/13 10:53 AM
Description:

I am trying to generate an OS and architecture independent RPM but the
settings seem to be ignored on Mac OS X.
The resulting RPM is always like RPMS/i386/foobar-1.0.i386.rpm
and rpm -q --qf 'os=%{os} arch=%{arch}\n' yields
os=darwin arch=i386

But I still see the following in the maven output:
[INFO] Building target platforms: noarch-any-any

The problem is on Mac OS X 10.7.5 with RPM version 4.4.9.
However if I run the identical code on
Linux 2.6.18-164.el5 with RPM version 4.4.2.3 it works as expected.
The filename has "noarch" instead and the same query generates
os=any arch=noarch

my pom.xml looks like:

<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>rpm-maven-plugin</artifactId>
<version>2.1-alpha-2</version>
<configuration>
<needarch>noarch</needarch>
<targetOS>any</targetOS>

Thanks,
Dan

Environment: Mac OS X 10.7.5 with RPM version 4.4.9
Project: Mojo RPM Plugin
Priority: Minor Minor
Reporter: Dan Lipofsky
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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