Added option --define to add rpmbuild macros
fixed increment operator mistake