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

Re: libX11



On Thu, 2006-05-04 at 14:01 -0600, Rebecca Bendick wrote:
> How would I rebuild the src.rpm to force installation of the one  
> library that I need?

you start by creating an rpmbuild environment in your home directory:

yum install fedora-rpmdevtools

as NON ROOT user:

fedora-buildrpmtree

Then you need to get the appropriate src.rpm - in this case -

libX11-1.0.0-3.src.rpm
I think it is in
http://download.fedora.redhat.com/pub/fedora/linux/core/5/source/SRPMS/

as your regular user, not as root, install the src.rpm

This will put the sources and patches in ~/rpmbuild/SOURCES/

and a spec file in ~/rpmbuild/SPECS/

you need to modify the spec file in ~/rpmbuild/SPECS/ with a text
editor.

1) change the release tag - put a .1
after whatever is there already (Release, not version)

2) depends upon the package. If in %build section, there is

--disable-static

passed to configure, change the --disable-static to --enable-static

Sometimes they way they get rid of static libraries is to simply delete
them in the %install section after install - in which case you need to
remove the lines that delete them.

3) modify the %files sections for the devel subpackage.
Add this to it:

%{_libdir}/*.a

now - you can rebuild the rpm -

cd ~/rpmbuild/SPECS/

rpmbuild -bb libX11.spec

If it complains about missing BuildRequires, you have to install them.
When it finishes, it will put the rpms in

~/rpmbuild/RPMS/arch/

(where arch is i386,x86_64, or ppc)

then upgrade stock libX11 and libX11-devel rpms with what you have
built.


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