If you ever bought a Humble Bundle game pack you already know they provide game installers for Windows, Mac OS and Linux (some packs also support Android) in addition to a Steam / Desura activation key. While the installers are fine (usually tar.gz or sh), using more of them on your machine may cause confusion as to what’s installed on your system. Some developers do provide rpm installers for their games, but those might not necessarily be 100% compatible with your OS.
Luckily for Fedora 17 and Fedora 18 there is an alternative. By the help of Mumble RPMs you can build your own rpm packages using the game Linux installers provided by Humble Bundle. You don’t have to know anything about building RPMs, the web site comes with specific instructions for each games, so all you need is good copy & paste skills.
The Mumble RPMs come as nosrc rpm packages. While typical source rpms include a spec file and one or multiple source files, a Mumble rpm only provides the former and you would have to own the latter in its original state as provided by Humble Bundle.
I was able to successfully build, install and play 3 Linux games on my Fedora 18 (Waking Mars, Legend of Grimrock and Zen Bound 2), here’s a quick guide for Waking Mars taken from the Mumble RPMs instructions page:
step1: prepare the build environment
sudo yum -y install rpm-build rpmdevtools ImageMagick xz-lzma-compat chrpath rpmdev-setuptree
step2: build the rpm (this assumes you have the original Linux installer downloaded on your machine)
cp WakingMars-1.2.1-Linux.tar.gz ~/rpmbuild/SOURCES
setarch i386 rpmbuild —rebuild —target=i686 wakingmars-1.2.1-1.nosrc.rpm
- the last command will rebuild the rpm binary and place it in ~/rpmbuild/RPMS/i686 as wakingmars-1.2.1-1.i686.rpm. If you want to modify the spec file (to change the package name, version, description etc.) you can install the nosrc rpm instead and issue the rpmbuild command after that against the modified spec file:
rpm -ivh wakingmars-1.2.1-1.nosrc.rpm
setarch i386 rpmbuild -b —target=i686 wakingmars.spec
step3: install the newly built rpm:
sudo yum localinstall ~/rpmbuild/RPMS/i686/wakingmars-1.2.1-1.i686.rpm