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

[leafnode-list] Re: leafnode.spec.in needs patch (Version 2)



Also, I tried to change prefix in leafnode.spec.in, and that breaks the
RPM build.  I noticed that ./configure is not provided the command
line parameter --prefix=%prefix, so I tried adding that, but so far no
go. 

$ cat leafnode.spec.in
 .
 .
 .
%define prefix      /usr/local
 .
 .
 .
%prep
%setup -q
CFLAGS="$RPM_OPT_FLAGS"
%configure \
 --prefix=%prefix \
 --exec-prefix=%prefix \
 --enable-spooldir=%spooldir \
 --enable-runas-user=%{runas_user} --with-runas-group=%{runas_group} \
 --sysconfdir=%_sysconfdir/leafnode
 .
 .
 .

I made new tarball and did rpmbuild -ts on it.  The final build of the RPM fails.

$ rpmbuild --rebuild /usr/src/RPM/SRPMS/leafnode-2.0.0.alpha20060711a-0.src.rpm

 .
 .
 .

RPM build errors:
    File not found: /var/tmp/leafnode-2.0.0.alpha20060711a-buildroot/usr/local/bin/leafnode-version
    File not found: /var/tmp/leafnode-2.0.0.alpha20060711a-buildroot/usr/local/bin/lsmac.pl
    File not found: /var/tmp/leafnode-2.0.0.alpha20060711a-buildroot/usr/local/bin/newsq
    File not found: /var/tmp/leafnode-2.0.0.alpha20060711a-buildroot/usr/local/sbin/applyfilter
    File not found: /var/tmp/leafnode-2.0.0.alpha20060711a-buildroot/usr/local/sbin/checkgroups
    File not found: /var/tmp/leafnode-2.0.0.alpha20060711a-buildroot/usr/local/sbin/fetchnews
    File not found: /var/tmp/leafnode-2.0.0.alpha20060711a-buildroot/usr/local/sbin/leafnode
    File not found: /var/tmp/leafnode-2.0.0.alpha20060711a-buildroot/usr/local/sbin/rnews
    File not found: /var/tmp/leafnode-2.0.0.alpha20060711a-buildroot/usr/local/sbin/sendbatch.bash
    File not found: /var/tmp/leafnode-2.0.0.alpha20060711a-buildroot/usr/local/sbin/texpire

The make is making the files in /usr/bin and /usr/sbin.  I'm not sure what to do
to fix this if I want to put leafnode in /usr/local.  Will dig a bit more, but
suggestions are appreciated.

$ ls /var/tmp/leafnode-2.0.0.alpha20060711a-buildroot/usr/bin
leafnode-version*  lsmac.pl*  newsq*

Kevin R. Bulgrien
http://kbulgrien.home.att.net/
-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/