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
  • Linux Permissions Headache Yikes, what an evening..... it started innocently enough in the afternoon. I have an old Mandrake 10.0 server that I was upgrading clamav on (recent security update). While I was at it, I was reviewing the anti-spam setup to see if I could get any better success with filtering junk......
  • 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......
  • Frustrated with Mandriva Club mirror finder It seems like I go through this every time I have to search for an SRPM to rebuild... search at rpms.mandrivaclub.com then prompted to login - login... oops wrong password. Login again stranded at main club page..... ok - downloads.... mirror finder. First - there's no way in the mirror......
Blog Traffic Exchange Related Websites
  • Steel Buildings: Up-to-Date Structures And Methods Steel buildings are increasingly popular not only for farm and industrial-type buildings, but for homes, apartments and commercial buildings as well. Builders appreciate the construction of these buildings, because they are well-designed, construction is simpler than with standard designs and buildings tend to last longer than conventional wood framing.......
  • Blogging in a Word: Building Blogging is all about building: building friendships, building links, building content, building readership. It's not for the fainthearted and it should only be taken up by those who have a passion for the topic they wish to write about. Without drive there is no real purpose in getting started. Blogging......
  • Learn How to Build a Wall You may end up with a remodeling project that involves learning how to build a wall in the interior of your home or another similar building. Building a nonbearing interior wall is actually a relatively easy process. If you have basic carpentry skills and a good set of working tools,......
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