Sergio Oliveira
Sergio Oliveira

Reputation: 109

How can I build an RPM package in a Debian based system?

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/

Upvotes: 4

Views: 11326

Answers (2)

Andrew Cassidy
Andrew Cassidy

Reputation: 2998

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.

Upvotes: 17

Sergio Oliveira
Sergio Oliveira

Reputation: 109

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/

Upvotes: -2

Related Questions