Building RPM’s – building from tarballs



Again – I’m NOT an expert on the subject, but have had some success with building rpm’s from either src.rpms (covered last time) and building from tarballs… This entry will talk about the simplest kind of rpm build from tarballs. This is a situation where the developer’s in their great foresight have actually got a spec file in the tarball (and it’s kept current).


I was looking at openvpn the other night. I haven’t really worked with the new 2.x series, I had previously worked with 1.5 On seeing 2.0.5 released I looked at downloading and saw a note on building an rpm from the tarball download. It is DEAD easy…

Instead of the rpm –rebuild that we used last time, for this job we need rpmbuild

$rpmbuild -tb /path/to/openvpn.tar.gz

Once again, read directions… For instance, rpmbuild told me I needed pam-devel to rebuild this package… so I became root and did urpmi pam-devel (which actually was libpam0-devel), after that things compiled just fine. (There is a list of other requires on their website.) If there are problems with the spec file, you can extract it and make changes and specify the new specfile instead of the included one. I didn’t run into this problem with openvpn, but have with other packages. Also, rpmbuild -tb tells it to compile from tarball and build a binary rpm, you could build a src.rpm with rpmbuild -ts or both src and binary rpms with rpmbuild -ta.

Personally I like having the src.rpm’s around for when I upgrade to a new release of the distribution or if I decide to try and build for an older release. It’s probably pack-rat-ism, but just a habit I’ve got in.

Related Posts

Blog Traffic Exchange Related Posts
  • Clonezilla For quite a while I've used ghost4linux (g4l) for my disc cloning needs. What I REALLY like are the ability to do a network copy of the image to an ftp server and the built in dd_rescue to rescue data from a failing hard drive. Unfrotunately g4l does a bit......
  • A closer look at x11vnc I've got to say, one of the things I really like about linux are the myriad of options for remotely administering a system. SSH is the one I use the most, but for the graphical you have x (especially on the LAN), nxserver (which is a compressed and optionally encrypted......
  • Building Deb packages from source.... Openvpn has been one of the tools of choice this week, so as I was tinkering on my ubuntu boxen.... I thought why don't I install openvpn there as well for a little broader testing. So, I did, but was a bit disappointed to see that the version was not......
Blog Traffic Exchange Related Websites
  • How to Build a Garage While many homes already have basic garages built into them, this isn't always the case, and some families find themselves seeking free plans, garage plans and the like. Some newer properties, and properties built by architects rather than home-building companies often do not come with the same garage space that......
  • Technorati Tracks Blog Traffic Exchange Effect Technorati is a online website community that is focused specifically on weblogs, and it can be extremely beneficial to register your blog with Technorati. Knowing how you can benefit from everything that Technorati has to offer is an important first step in getting the most out of your web presence.......
  • 2 Ways to Learn Acoustic Guitar When people are first learning to play the guitar, the acoustic type is generally recommended over the electric type. The main reason for this is that the strings of an acoustic guitar are tougher, so they build calluses better, and help build finger strength. As for the methods by which......
PDF24    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site