Question : Building ASterisk RPM

Has anybody successfully created an asterisk 1.6.1.6 rpm?  I'm getting stuck at line:

ASTCFLAGS="%{optflags}" make DEBUG= OPTIMIZE= ASTVARRUNDIR=%{_localstatedir}/run/asterisk ASTDATADIR=%{_datadir}/asterisk NOISY_BUILD=1

getting an error:

+ popd
/usr/src/redhat/BUILD/asterisk-1.6.1.6
+ ASTCFLAGS='-O2 -g -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -Werror-implicit-function-declaration'
+ make DEBUG= OPTIMIZE= ASTVARRUNDIR=/var/run/asterisk ASTDATADIR=/usr/share/asterisk NOISY_BUILD=1
make: -F.: Command not found
****
**** The configure script must be executed before running 'make'.
****               Please run "./configure".
****
make: *** [makeopts] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.19786 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.19786 (%build)


Thanks,
Kathryn

Answer : Building ASterisk RPM

Got it, just had to wake up and read the error.

ASTCFLAGS="%{optflags}"
%configure
make DEBUG= OPTIMIZE= ASTVARRUNDIR=%{_localstatedir}/run/asterisk ASTDATADIR=%{_datadir}/asterisk NOISY_BUILD=1
Random Solutions  
 
programming4us programming4us