diff options
| author | ruki <[email protected]> | 2023-12-21 14:41:31 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-21 14:41:31 +0800 |
| commit | b9bcacc934f10e034e7429a53921814c16d994ec (patch) | |
| tree | 88f65d5e7491a08f21010042b670cfc08344022d /xmake/plugins/pack/xpack.lua | |
| parent | 1597b1aab9db774d123f37a4ae38d145cef3f1bb (diff) | |
| parent | 16271a7919d9ee12203f1ba5774d73f720b79451 (diff) | |
Merge pull request #4515 from xmake-io/rpm
Support to pack srpm package
Diffstat (limited to 'xmake/plugins/pack/xpack.lua')
| -rw-r--r-- | xmake/plugins/pack/xpack.lua | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xmake/plugins/pack/xpack.lua b/xmake/plugins/pack/xpack.lua index 64e9d77dc..5cf5f24f4 100644 --- a/xmake/plugins/pack/xpack.lua +++ b/xmake/plugins/pack/xpack.lua @@ -237,7 +237,7 @@ function xpack:inputkind() srctargz = "source", runself = "source", deb = "source", - rpm = "source" + srpm = "source" } inputkind = inputkinds[self:format()] or "binary" end @@ -302,6 +302,7 @@ function xpack:specvars() PACKAGE_COPYRIGHT = self:get("copyright") or "", PACKAGE_COMPANY = self:get("company") or "", PACKAGE_ICONFILE = self:get("iconfile") or "", + PACKAGE_LICENSE = self:license() or "", PACKAGE_LICENSEFILE = self:get("licensefile") or "" } @@ -359,7 +360,9 @@ end -- get the specfile path function xpack:specfile() local extensions = { - nsis = ".nsi" + nsis = ".nsi", + srpm = ".spec", + runself = ".lsm" } local extension = extensions[self:format()] or ".spec" return self:get("specfile") or path.join(self:buildir(), self:basename() .. extension) @@ -377,7 +380,7 @@ function xpack:extension() srctargz = ".tar.gz", runself = ".gz.run", deb = ".deb", - rpm = ".rpm" + srpm = ".src.rpm" } extension = extensions[self:format()] or "" end |
