old_contents: # vim: set ts=4 sw=4 et: coding=UTF-8
  
  # We basically extend rpmcheck
  from .rpmcheck import RpmCheck
  
  
  class RpmBuild(RpmCheck):
  
      """
          Replace various troublemakers in build phase
      """
  
      def add(self, line):
          # we do not want to run suseupdateconfig, deprecated
          if self.reg.re_suseupdateconfig.search(line):
              return
  
          # if user uses cmake/configure directly just recommend him using the macros
          if not self.minimal and self.previous_line:
              if not self.previous_line.startswith('#') and \
                 line.startswith('./configure'):
                  self.lines.append('# FIXME: you should use the %%configure macro')
              if not self.previous_line.startswith('# FIXME') and \
                 line.startswith('cmake'):
                  self.lines.append('# FIXME: you should use %%cmake macros')
  
          RpmCheck.add(self, line)
  
new_contents: # vim: set ts=4 sw=4 et: coding=UTF-8
  
  # We basically extend rpmcheck
  from .rpmcheck import RpmCheck
  
  
  class RpmBuild(RpmCheck):
  
      """
          Replace various troublemakers in build phase
      """
  
      def add(self, line):
          # we do not want to run suseupdateconfig, deprecated
          if self.reg.re_suseupdateconfig.search(line):
              return
  
          # if user uses cmake/configure directly just recommend him using the macros
          # but check on the multiline entry and do not ammend that
          if not self.minimal:
              if (not self.previous_line \
                 or (not self.previous_line.startswith('#') \
                 and not self.previous_line.endswith('\\'))) \
                 and line.startswith('./configure'):
                  self.lines.append('# FIXME: you should use the %%configure macro')
              if (not self.previous_line \
                 or (not self.previous_line.startswith('#') \
                 and not self.previous_line.endswith('\\'))) \
                 and line.startswith('cmake'):
                  self.lines.append('# FIXME: you should use %%cmake macros')
  
          RpmCheck.add(self, line)
  
subject: Add fix for errornous fixme adding wrt issue #140