copied Makefile and test.spec from https://bitbucket.org/abrilmdia/core-tools