The best way to test during build using wine, directly in the spec file: 1) add wine BR 2) add %check %mingw_make check 3) mock --rebuild