[build] fix dependencies, cleanup spec