4

I'd like to build packages using a build system (i.e. jenkins, travis, etc) but all I have are Ubuntu 12.04 VMs.

I've found this [1] instructions but mach does not support CentOS 7.0.

[1] http://blog.burghardt.pl/2008/12/how-to-build-rpm-packages-in-centos-chroot-on-debian/

4

2 回答 2

13

http://mojo.codehaus.org/rpm-maven-plugin/ <- rpm plugin for the maven build system

sudo apt-get install rpm # for Ubuntu

Check out the command that it installs called rpmbuild.

于 2015-03-13T18:05:41.047 回答
-1

Found it! There is actually a tool called rinse: "Rinse is a simple tool which is designed to carry out the installation of a new RPM-based distribution".

rinse --distribution="centos-7" --directory="/tmp/centos-7"

http://collab-maint.alioth.debian.org/rinse/

于 2015-03-13T21:24:04.283 回答