[Mono-dev] Building a Mono RPM

Chris Tacke ctacke at opennetcf.com
Tue Aug 27 14:44:21 UTC 2013

So as a bit of background, this is what I’m doing.  I am building an embedded Linux platform running Wind River, which I believe is Fedora based.  The tools for building the OS came on a Ubuntu VM.  I am trying to build Mono (succeeded there), and then an installer for Mono so that I can install Mono on the embedded device.  I’ll follow that with an installer for our application.  I was told that RPM was the mechanism for installing packages on Wind River, so I went down that road.

What it sounds like you’re telling me is that for building an RPM package for Wind River, I should be using Fedora and no Ubuntu, because Ubuntu has outdated RPM infrastructure since it doesn’t use RPM for package management.

Is this all correct?

I guess I can build up a Fedora machine to do the work for the installer, it just means that now I need two dev OSes to build this target (three if you count Windows where we actually do the app development).

Is there any guide or documentation for building a Mono RPM for Fedora?


From: Rafael Teixeira [mailto:monoman at gmail.com]
Sent: Tuesday, August 27, 2013 6:28 AM
To: Chris Tacke
Cc: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] Building a Mono RPM

It just sounds strange that you are trying to build an RPM package on a system based on DEB packaging, in Ubuntu it would be easier to package a .deb package to target Debian-based distros like Debian/Ubuntu/Mint/etc... or switch to Fedora as your distro for building and packaging if you are targeting the Fedora/Red Hat/Centos/etc... family of distros that use RPM files.

You can look at projects of apps that depend on Mono like MonoDevelop(http://monodevelop.com/), Banshee (http://banshee.fm/), F-Spot (http://f-spot.org/) are packaged for Debian/Ubuntu (not sure they are packaged for Fedora/Red Hat nowadays).

Hope it helps,

Rafael Teixeira

On Mon, Aug 26, 2013 at 8:33 PM, Chris Tacke <ctacke at opennetcf.com<mailto:ctacke at opennetcf.com>> wrote:
Let me preface this with the fact that I’m pretty new to Linux.

I have pulled the Mono source and successfully built it on 32-bit Ubuntu.  I was able to successfully take the binaries generated from a “make install” and copy them to a different Linux distribution and actually run a Mono app on that target.  That seems like the wrong way to approach it though.  I suspect I should be distributing an RPM file.

So I decided to try to build the RPM file today, and I’m having very little success.  The first issue I had was that rpmbuild would give an “Unknown command: recommends” error.  So I went into the spec fiel and commented that line out, just to see where it went from there.  Now it complains that it can’t find mono-3.3.0-tar.bz2.  I can only assume that I need to generate this file, but I’m not sure exactly how.  Is there a script that will do it, or do I just tar up the installation?

Is there any documentation on how to build an RPM starting with just a clean OS build, or at least from a system where Mono has been compiled and installed?


Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com<mailto:Mono-devel-list at lists.ximian.com>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20130827/51e52108/attachment-0001.html>

More information about the Mono-devel-list mailing list