rpm: make more flexible