Merge pull request #12706 from nik9000/osx_can_build_rpm

Let OSX build rpms for linux
This commit is contained in:
Nik Everett 2015-08-10 05:48:36 -04:00
commit cde2502732
1 changed files with 7 additions and 0 deletions

View File

@ -105,6 +105,13 @@
<group>Application/Internet</group> <group>Application/Internet</group>
<packager>Elasticsearch</packager> <packager>Elasticsearch</packager>
<prefix>/usr</prefix> <prefix>/usr</prefix>
<!-- To get rpm-maven-plugin to pickup targetOS you need
to specify needarch too.... If you don't specify
targetOS then it'll just use whatever the current
machine's OS is which means you can't build rpms for
linux on OSX even if you have rpmbuild.... -->
<needarch>noarch</needarch>
<targetOS>linux</targetOS>
<changelogFile>src/changelog</changelogFile> <changelogFile>src/changelog</changelogFile>
<defineStatements> <defineStatements>
<defineStatement>_unpackaged_files_terminate_build 0</defineStatement> <defineStatement>_unpackaged_files_terminate_build 0</defineStatement>