jordansissel/fpm — comment on commit 6c76ecb1ea6e63b9745eb425a824252dd9e9dd83
File:  line 0
By wu-lee:

Line 92 in rpm.rb dies when I try to use fpm (master branch, commit f6c265d).

`
cd /opt
git clone git clone git://github.com/jordansissel/fpm.git
cd /tmp
./opt/fpm/bin/fpm -s dir -t rpm -n perl -v 5.12.3 -m "...." --iteration 1 -S .ii --description "This is perl 5, version 12, subversion 3 (v5.12.3) built for i686-linux (CentOS 6), with extras. Experimental." -C / opt/perl
`

"define" is not defined , and it crashes with:

`
../opt/fpm/bin/../lib/fpm/target/rpm.rb:92:in `build!': undefined local variable or method `defines' for # (NameError)
from ../opt/fpm/bin/../lib/fpm/builder.rb:120:in `assemble!'
from ../opt/fpm/bin/../lib/fpm/builder.rb:119:in `chdir'
from ../opt/fpm/bin/../lib/fpm/builder.rb:119:in `assemble!'
from ../opt/fpm/bin/../lib/fpm/program.rb:55:in `run'
from ../opt/fpm/bin/fpm:20
`

If I add a paramter `--define-rpmbuild-option 'dist .ii'` it fails exactly as above. If I comment out line 92, and 94-96, or define `define`, fpm completes (at least, without crashing.)