RPM building

Posted by Peter Burkholder Thu, 08 May 2008 13:20:00 GMT

It seems that most resources on the Internet about building RPMs are woefully out of date. If you want to unpack and work on RPM source packages in, say your home directory, most documentation points you to settings for your $HOME/.rpmrc file

Then you get errors like this:

error: bad option 'topdir' at /home/burkholp/.rpmrc:1

The use of .rpmrc is obsolete. Instead you’ll want a .rpmmacros file like the following:


%_topdir        %( echo ${HOME}/rpmbuild )
%_tmppath       %{_topdir}/tmp

%packager      Peter Burkholder <pburkholder@pobox.com> 
Comments

Leave a response

Comments