return parsed_spec_file
- def have_macro_configure( self ):
- '''
- return the number of macro %configure used inn the spec file.
- '''
- res_macro_configure = 0
- raw_build_section = self.get_raw_build_section()
- configure_count = raw_build_section.count( "%configure" )
- res_macro_configure += configure_count
- return res_macro_configure
-
- def have_macro_reconfigure( self ):
- '''
- return the number of macro %reconfigure used inn the spec file.
- '''
- res_have_macro_reconfigure = 0
- raw_build_section = self.get_raw_build_section()
- reconfigure_count = raw_build_section.count( "%reconfigure" )
-
- res_have_macro_reconfigure += reconfigure_count
- return res_have_macro_reconfigure
-
def get_install_section( self ):
'''
return the install section.