Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update constants #373

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
96 changes: 2 additions & 94 deletions specfile/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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 = {
Expand Down
Loading