Skip to content

Commit

Permalink
Update constants
Browse files Browse the repository at this point in the history
  • Loading branch information
softwarefactory-project-zuul authored May 1, 2024
1 parent 904cb3b commit 1729603
Showing 1 changed file with 2 additions and 90 deletions.
92 changes: 2 additions & 90 deletions specfile/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,43 +3,7 @@

# 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",

}

SIMPLE_SCRIPT_SECTIONS = {
Expand Down Expand Up @@ -89,59 +53,7 @@

# 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",

}

# tags that can optionally have an argument (language or qualifier)
Expand Down

0 comments on commit 1729603

Please sign in to comment.