* Stardate: 2001-11-11 19:17
* Incoming subspace signal from "Marcel Pol <[EMAIL PROTECTED]>" :

I forgot something, 2nd try:

> > Group:         Configuration/Other
> > Copyright: GPL
> There is no group like that, only in the Menu.
> It should also be set to License.

You're right.

> > %prep
> >   [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != / ] \
> >   && rm -rf ${RPM_BUILD_ROOT}/
> It looks beautiful, but what is the value of it over a simple "rm -rf

Just a safety precaution. If someone builds as root with the filesystem-root as 
builddir, a 'rm -rf' would wipe things out (it happens !). I do not know if checking 
for the filesystem root is done automagically by Mandrake's rpm.

> $RPM_BUILD_ROOT" in %clean?
> >   ./configure --prefix=%{prefix} \
> >         --host=$HOSTTYPE-pc-$OSTYPE
> >   NOOPT_CXXFLAGS="$RPM_OPT_FLAGS -fno-exceptions -fno-check-new"
> make
> Well, this is a bit over my head :)
> My idea is, if it compiles, ship it.

My idea is, if it compiles with optimizations for i586, ship it.
A simple %configure will not do the optimization stuff.
  
> > %install
> >   make bindir=${RPM_BUILD_ROOT}%{prefix}/X11R6/bin \
> >        mandir=${RPM_BUILD_ROOT}%{_mandir} \
> >        datadir=${RPM_BUILD_ROOT}%{_datadir} \
> >        docdir=${RPM_BUILD_ROOT}%{_docdir} \
> >        install
> This should do the same I believe: 
> Allthough it might be good to put the executable in /usr/X11R6/bin.
> %install
> mkdir -p $RPM_BUILD_ROOT
> make install-strip DESTDIR=$RPM_BUILD_ROOT

I believe stripping is done automagically by the rpm build process.

bbkeys is in /usr/bin, bsetbg in /usr/X11R6/bin. I think this WM-configuration stuff 
should be in /usr/X11R6/bin.

So:

make bindir=${RPM_BUILD_ROOT}%{prefix}/X11R6/bin install

should do the trick, I guess.

-- 
Best regards, M@X.

* Climate Control Psychedelic Soundscapes - http://go.to/cchq/
* Linux Shell Scripts & RPM Software Packages - http://go.to/conmen/

Reply via email to