summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/xpack.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/pack/xpack.lua')
-rw-r--r--xmake/plugins/pack/xpack.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/plugins/pack/xpack.lua b/xmake/plugins/pack/xpack.lua
index 5cf5f24f4..0eae84a7a 100644
--- a/xmake/plugins/pack/xpack.lua
+++ b/xmake/plugins/pack/xpack.lua
@@ -237,7 +237,8 @@ function xpack:inputkind()
srctargz = "source",
runself = "source",
deb = "source",
- srpm = "source"
+ srpm = "source",
+ rpm = "source"
}
inputkind = inputkinds[self:format()] or "binary"
end
@@ -362,6 +363,7 @@ function xpack:specfile()
local extensions = {
nsis = ".nsi",
srpm = ".spec",
+ rpm = ".spec",
runself = ".lsm"
}
local extension = extensions[self:format()] or ".spec"
@@ -380,7 +382,8 @@ function xpack:extension()
srctargz = ".tar.gz",
runself = ".gz.run",
deb = ".deb",
- srpm = ".src.rpm"
+ srpm = ".src.rpm",
+ rpm = ".rpm"
}
extension = extensions[self:format()] or ""
end