# File lib/gem2rpm/rpm_file.rb, line 8
    def to_rpm
      config = Gem2Rpm::Configuration.instance

      case
      when license?
        "#{config.macro_for(:license)} #{config.macro_for(:instdir)}/#{self}".strip
      when doc?
        "#{config.macro_for(:doc)} #{config.macro_for(:instdir)}/#{self}".strip
      when ignore?
        "#{config.macro_for(:ignore)} #{config.macro_for(:instdir)}/#{self}".strip
      # /lib should have its own macro
      when self == 'lib'
        "#{config.macro_for(:libdir)}"
      else
        "#{config.macro_for(:instdir)}/#{self}"
      end
    end