I have a package, cqrlog, which is pascal based and the latest version doesn't appear to do a debug build.

error: Empty %files file /home/build/rpmbuild/cqrlog/BUILD/cqrlog-2.1.0/debugfiles.list

There is a debug target but it doesn't seem to work properly...

 make -j4 debug
lazbuild --bm=debug --ws=gtk2 --pcp=/tmp/.lazarus src/cqrlog.lpi
SetPrimaryConfigPath NewValue="/tmp/.lazarus" -> "/tmp/.lazarus"
Hint: (lazarus) [RunTool] /usr/bin/fpc "-iWTOTP"
Hint: (lazarus) [RunTool] /usr/bin/fpc "-va" "compilertest.pas"
Error: (lazarus) invalid build mode "debug"
make: *** [Makefile:71: debug] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.D1apEU (%build)

I'm not very familiar with fpc or lazarus.

Any ideas short of disabling debuginfo?

Thanks,
Richard