gbp.rpm.SpecFile(object)
class documentationgbp.rpm
(View In Hierarchy)
Class for parsing/modifying spec files
Method | __init__ | Undocumented |
Method | version | Get the (downstream) version |
Method | specpath | Get the dir/filename |
Method | ignorepatches | Get numbers of ignored patches as a sorted list |
Method | sources | Get all source tags as a dict |
Method | macro_expand | Expand the rpm macros (that gbp knows of) in the given text. |
Method | write_spec_file | Write, possibly updated, spec to disk |
Method | set_tag | Update a tag in spec file content |
Method | set_changelog | Update or create the %changelog section |
Method | get_changelog | Get the %changelog section |
Method | update_patches | Update spec with new patch tags and patch macros |
Method | patchseries | Return non-ignored patches of the RPM as a gbp patchseries |
Method | _parse_filtered_spec | Parse a filtered spec file in rpm-python |
Method | _patches | Get all patch tags as a dict |
Method | _sources | Get all source tags as a dict |
Method | _macro_replace | Undocumented |
Method | _parse_tag | Parse tag line |
Static Method | _patch_macro_opts | Parse arguments of the '%patch' macro |
Static Method | _setup_macro_opts | Parse arguments of the '%setup' macro |
Method | _parse_directive | Parse special directive/scriptlet/macro lines |
Method | _parse_gbp_tag | Parse special git-buildpackage tags |
Method | _parse_content | Go through spec file content line-by-line and (re-)parse info from it |
Method | _delete_tag | Delete a tag |
Method | _set_tag | Set a tag value |
Method | _delete_special_macro | Delete a special macro line in spec file content |
Method | _set_special_macro | Update a special macro line in spec file content |
Method | _set_section | Update/create a complete section in spec file. |
Method | _guess_orig_prefix | Guess prefix for the orig file |
Method | _guess_orig_file | Try to guess the name of the primary upstream/source archive. Returns a dict with all the relevant information. |
Expand the rpm macros (that gbp knows of) in the given text. @param text: text to check for macros @type text: C{str} @return: text with macros expanded @rtype: C{str}
Update a special macro line in spec file content