--- apcupsd.spec.orig	Tue Jan 28 14:51:04 2003
+++ apcupsd.spec	Tue Jan 28 14:51:48 2003
@@ -1,6 +1,6 @@
 Name: apcupsd
 Version: 3.10.1
-Release: alt2
+Release: alt2bga
 %define _cgibin /var/www/cgi-bin
 
 Summary: Power management software for APC UPS hardware
@@ -17,7 +17,8 @@
 %def_disable cgi
 
 # Automatically added by buildreq on Mon Dec 23 2002
-BuildRequires: XFree86-devel libncurses-devel libtinfo-devel
+BuildRequires: XFree86-devel libncurses-devel
+# libtinfo-devel
 
 %description -n %name
 UPS power management under Linux for APCC Products.
@@ -45,8 +46,8 @@
 export ac_cv_path_ETAGS=/usr/bin/ctags
 export ac_cv_path_CTAGS=/usr/bin/ctags
 %add_optflags -DCSS_DIR="\"\\\"./\\\"\""
-autoconf -I autoconf autoconf/configure.in > configure
-autoheader -I autoconf autoconf/configure.in > autoconf/config.h.in
+autoconf --localdir=autoconf autoconf/configure.in > configure
+autoheader --localdir=autoconf autoconf/configure.in > autoconf/config.h.in
 %configure \
 	--sbindir=/sbin \
 	--sysconfdir=%_sysconfdir/%name \
@@ -55,7 +56,7 @@
 	--enable-powerflute \
 	--enable-pthreads \
 	--enable-nls \
-	%{subst_enable cgi} \
+	--disable-cgi \
 	--enable-usb \
 	--disable-snmp \
 	--with-cgi-bin=%_cgibin \
