Update 1691 patch and fix license and script issues in spec