support PKGNAME in makefile and spec