LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Help install package from sources (FC3)

[ILUG] Help install package from sources (FC3)

Paul Jakma paul at clubi.ie
Wed Dec 22 23:58:41 GMT 2004


On Wed, 22 Dec 2004, Timothy Murphy wrote:

> but the simplest way to compile from a source rpm
> is to install the rpm with "rpm -Uvh ..." or whatever,
> and then use rpmbuild to work from the SPEC file, something like
> "rpmbuild -ba ../SPECS/xorg-x11.spec"

Even easier:

 	rpmbuild --rebuild <whatever it is>.src.rpm

Which should result in the rpm's being deposited in RPMS/<arch>/ 
- the paths will be printed out at the end of the rpm build 
process.

Some projects include the spec file in their source tar.{gz,bz2}'s, 
for those you can do:

 	rpmbuild -tb <whatever it is>.tar.{gz.bz2}

rpmbuild will do all the rest.

Building rpms, or any software, as root is incredibly bad practice, 
so either give a normal user permissions on /usr/src/rpm, or put the 
following in ~/.rpmmacros for your normal user account:

%_topdir    /whereever/rpm

Eg, I define it to /home/paul/rpm. You'll need to make the same RPMS, 
SRPMS, SOURCES, BUILD and SPECS directories in this directory as 
there are in /usr/src/rpm.

regards,
-- 
Paul Jakma	paul at clubi.ie	paul at jakma.org	Key ID: 64A2FF6A
Fortune:
I may not be totally perfect, but parts of me are excellent.
 		-- Ashleigh Brilliant



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell