Re: How do I update ONLY GLib?

On Wed, Dec 20, 2006 at 04:50:56PM -0600, Warren Fenlon wrote:
> Ok, that sounds like an interesting possibility, but I am something of a
> neophyte when it comes to compiling system "stuff".  I DO know how to
> install rpms anyway.  My assumption from the src.rpm name is that it is
> source only files and after installing it there is a build step,


> 1. What is the "spec" file?,

A recipe to build the package, it's inside the src.rpm.

> 2. How do I "inform" the build process where my new glib files are?

> 3. What is the build syntax?

> Probably pretty basic questions, but I really do NOT want to screw up my
> system :-).

Well, then it's really preferable to install it to
a non-system location following Tristan's instructions.
Anyway (as a user, not root):

# Set up the build tree in ~/rpmbuild
echo "%_topdir $HOME/rpmbuild" >>~/.rpmmacros
mkdir -p $HOME/rpmbuild/{SPECS,SOURCES,RPMS/{noarch,i386,i586,i686,x86_64},SRPMS,BUILD}
# Fix the pkg
rpm -i glib2-2.4.7-1.src.rpm
cp glib-2.12.6.tar.bz2 ~/rpmbuild/SOURCES/
vim ~/rpmbuild/SPECS/glib2.spec
[... change Version field ...]
# Build
rpmbuild -bb ~/rpmbuild/SPECS/glib2.spec



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]