Configure marco does not work?
Use %configure macro
You don't need to explicitly list libdatrie here - it's listed in abi_used_libs, therefore it's automatically added as a rundep.
If you can use the macro, the prefix=/usr isnt needed anymore
You're missing a stack. Where is libdatrie?