also make sure $_incdir is defined in your .rpmmacros

Joe Vieira
UNIX Systems Administrator
Clark University - ITS



Joe Vieira wrote:
you'll need to either rename everything in the spec file to be
"freeradius-server"
or just open the tar.gz rename the directory INSIDE IT (which is also
freeradius-server) to freeradius-2.0.1... then zip it all back up and
run your spec again and it will work.

Joe Vieira
UNIX Systems Administrator
Clark University - ITS



Andrew Long wrote:
Hello:
I am trying to build the rpm for 2.0.1 on CentOS 5. The first oddity
is that the source now comes as freeradius-server-2.0.1.tar.gz;
starting the rpmbuild with $ rpmbuild -bb freeradius.spec yields an
error that SOURCES/freeradius-2.0.1.tar.gz does not exist. I tried
renaming freeradius-server-2.0.1.tar.gz to freeradius-2.0.1.tar.gz,
and now the build starts, but it always ends with the following error:

+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd freeradius-2.0.1
/var/tmp/rpm-tmp.71302: line 29: cd: freeradius-2.0.1: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.71302 (%prep)

Here is the block from the rpm-tmp file:
  set -x
  umask 022
  cd /home/along/rpmbuild/BUILD
cd /home/along/rpmbuild/BUILD
rm -rf freeradius-2.0.1
/bin/gzip -dc /home/along/rpmbuild/SOURCES/freeradius-2.0.1.tar.gz | tar -xvvf -
STATUS=$?
if [ $STATUS -ne 0 ]; then
  exit $STATUS
fi
cd freeradius-2.0.1 <----------------------------------------------LINE 29
[ `/usr/bin/id -u` = '0' ] && /bin/chown -Rhf root .
[ `/usr/bin/id -u` = '0' ] && /bin/chgrp -Rhf root .
/bin/chmod -Rf a+rX,u+w,g-w,o-w .

I am not an expert with rpmbuild, so I apologize if this is a bit
off-topic. I preceded the build with
$ rpmbuild --clean freeradius.spec as I had previously build 1.1.7 on
the same host.

- Andrew
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to