summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack/srpm/main.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-05 00:59:16 +0800
committerruki <[email protected]>2024-09-05 00:59:16 +0800
commitee4935050a6165e1da500731fb00f3b08265c266 (patch)
tree396e8240da274fe077d1f15b2206dbf6548d04c2 /xmake/plugins/pack/srpm/main.lua
parent9d824b19fdf646557585c9a74bae05b6d970e0af (diff)
improve xpack spec
Diffstat (limited to 'xmake/plugins/pack/srpm/main.lua')
-rw-r--r--xmake/plugins/pack/srpm/main.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/pack/srpm/main.lua b/xmake/plugins/pack/srpm/main.lua
index a0b2d2dad..72b76563e 100644
--- a/xmake/plugins/pack/srpm/main.lua
+++ b/xmake/plugins/pack/srpm/main.lua
@@ -205,7 +205,7 @@ function _pack_srpm(rpmbuild, package)
local specfile = path.join(package:buildir(), package:basename() .. ".spec")
if not os.isfile(specfile) then
local specfile_template = package:get("specfile") or path.join(os.programdir(), "scripts", "xpack", "srpm", "srpm.spec")
- os.cp(specfile_template, specfile)
+ os.cp(specfile_template, specfile, {writeable = true})
end
-- replace variables in specfile