Wake up sleepy-head, someone around you is thinking their way into the future....
« sisx, sis and other mobile content MIME typeswhats going on here »

building an rpm from oddnamed tarball contents

Permalink 09/Oct/2006 13:45 , Categories: Linux, Software

If you are trying to build an rpm from a packed source, where the unpacked source expandes into a non %{name}-%{version} format, you can use the -n option in the %prep section of the .spec to tell rpmbuild to look in the right place ( eg. %prep -n %{name}%{version} )

if name.12.6.tar.gz expands into name-linux you would use something like this in the %prep

%prep -n %{name}-linux

However, if the tarball expands without a path, you then need to use the -c option to create a path, cd into the path and then untar the contents.

I am blogging this here mainly since there seems to be little info on this online, and it might come in handy for people!

Lets also not forget, that you should still try and push upstream to fix their taring process, so these sort of situations dont arise in the first place.

--
Karanbir Singh { http://www.karan.org/ }

Leave a comment »

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)

Welcome to my Blog. Various bits of rambling and going-on's find their way here. If you have something to say, I would love to hear it from you.

Search

XML Feeds

powered by b2evolution free blog software

Contact | Blog template by Asevo