diff --git a/specfile/constants.py b/specfile/constants.py index 505271c..fd7f1e2 100644 --- a/specfile/constants.py +++ b/specfile/constants.py @@ -2,45 +2,7 @@ # SPDX-License-Identifier: MIT # valid section names as defined in build/parseSpec.c in RPM source -SECTION_NAMES = { - "build", - "changelog", - "check", - "clean", - "conf", - "description", - "end", - "files", - "filetrigger", - "filetriggerin", - "filetriggerpostun", - "filetriggerun", - "generate_buildrequires", - "install", - "package", - "patchlist", - "post", - "posttrans", - "postun", - "postuntrans", - "pre", - "prep", - "pretrans", - "preun", - "preuntrans", - "sepolicy", - "sourcelist", - "transfiletrigger", - "transfiletriggerin", - "transfiletriggerpostun", - "transfiletriggerun", - "trigger", - "triggerin", - "triggerpostun", - "triggerprein", - "triggerun", - "verifyscript", -} +SECTION_NAMES = {} SIMPLE_SCRIPT_SECTIONS = { "build", @@ -88,61 +50,7 @@ SECTION_OPTIONS.update({s: "n:f:p:P:eq" for s in SCRIPT_SECTIONS}) # valid tag names as defined in build/parsePreamble.c in RPM source -TAG_NAMES = { - "autoprov", - "autoreq", - "autoreqprov", - "bugurl", - "buildarch", - "buildarchitectures", - "buildconflicts", - "buildoption", - "buildprereq", - "buildrequires", - "buildroot", - "buildsystem", - "conflicts", - "distribution", - "disttag", - "disturl", - "docdir", - "enhances", - "epoch", - "excludearch", - "excludeos", - "exclusivearch", - "exclusiveos", - "group", - "icon", - "license", - "modularitylabel", - "name", - "nopatch", - "nosource", - "obsoletes", - "orderwithrequires", - "packager", - "patch", - "prefix", - "prefixes", - "prereq", - "provides", - "recommends", - "release", - "removepathpostfixes", - "requires", - "source", - "sourcelicense", - "suggests", - "summary", - "supplements", - "translationurl", - "upstreamreleases", - "url", - "vcs", - "vendor", - "version", -} +TAG_NAMES = {} # tags that can optionally have an argument (language or qualifier) TAGS_WITH_ARG = {