Re: building rpms and what's up with the panel



Pedro Corte-Real <lreal@riff.fe.up.pt> writes:

> I have 2 problems:
> 
> I want to install gnome and e on my laptop. I only have 400 megs of
>  disk partition for linux so I don't have the space to have all the
>  libs and sources.
> I decided to build rpms. So I went inside my glib directory (cvs glib)
> and just dig rpm -bb glib.spec. Then I was surprised that he suddently
>  wanted the file /usr/src/redhat/SOURCES/glib-1.1.12.tar.gz and said :
> 
> Bad source: /usr/src/redhat/SOURCES/glib-1.1.12.tar.gz: 
> No such file or directory
> 
> I wonder, why the hell does he need a tar.gz. I don't even install from
>  tarball's I used cvs.

Yes, but rpm needs a tarball (otherwise it does not know where to get the
sources from) - so you need to make a tarball first:

$ ./autogen.sh --prefix=/usr
$ make dist
$ rpm -ta glib-1.1.12.tar.gz

The `rpm -ta' will create a SRPM and RPMS out of this tarball.

If you don't want to put this below /usr/src/redhat but somewhere in your
home directory simply create a ~/.rpmrc file like this:

$ cat ~packages/.rpmrc 
topdir: /pub/packages

Martin

-- 
-----------------------------------------------------------------
   Martin Baulig - Angewandte Mathematik - Universitaet Trier
   martin@home-of-linux.org, http://www.home-of-linux.org/
------------------------------------------------------------------



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