tc: Change build process not to use spec file