Skip to main content

Posts

Showing posts from June 7, 2017

Building RPMs for Mageia - x2x

Occasionally, you may need to install something that is not included with Mageia. For instance, the x2x applications used to be included with Mageia, but has been dropped in Mageia 5. There are other packages, perhaps Ubuntu packages that I might want to use on my system. Or it's possible no package exists,  just a tarball. Why would you want to build a package from source if the binary is already available?  Let's begin with the Mageia Packagers RPM Tutorial as a reference. Create Your Build Environment It's always a good practice to build packages as a normal user, not as root. Still, it's handy to have sudo enabled for certain operations. Create you build environment. $ mkdir -p ~/rpmbuild/{SRPMS,SOURCES,SPECS,tmp} Using your favorite editor, create the .rpmmacros file to build Mageia packages.     # Only set %_topdir and %_tmppath if you want to ovveride the the default ~/rpmbuild # and ~/rpmbuild/tmp #%_topdir  %(echo $HOM