build ffmpeg2theora from packman *src.rpm

I would like build ffmpeg2theora from packman *src.rpm
“rpmbuild --rebuild *.src.rpm” gave me this error

In file included from /usr/include/kate/kate.h:17,
from /usr/include/kate/oggkate.h:20,
from src/theorautils.c:32:
/usr/include/kate/kate_config.h:76:2: error: #error No 64 bit signed integer found
/usr/include/kate/kate_config.h:84:2: warning: #warning No suitable type for holding integer and pointer found, using unsigned long
In file included from /usr/include/kate/oggkate.h:20,
from src/theorautils.c:32:
/usr/include/kate/kate.h:331: error: expected specifier-qualifier-list before ‘kate_int64_t’
/usr/include/kate/kate.h:518: error: expected declaration specifiers or ‘…’ before ‘kate_int64_t’
/usr/include/kate/kate.h:519: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘kate_duration_granule’
/usr/include/kate/kate.h:520: error: expected declaration specifiers or ‘…’ before ‘kate_int64_t’
/usr/include/kate/kate.h:571: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘kate_encode_get_granule’
src/theorautils.c: In function ‘oggmux_init’:
src/theorautils.c:324: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:325: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:338: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:339: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:364: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:365: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:394: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:395: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:412: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:413: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:433: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:434: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:445: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:446: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:461: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:462: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:484: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c:485: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
src/theorautils.c: In function ‘oggmux_flush’:
src/theorautils.c:832: error: too many arguments to function ‘kate_granule_time’
scons: *** [src/theorautils.o] Error 1
scons: building terminated because of errors.
error: Bad exit status from /var/tmp/rpm-tmp.72968 (%build)