SHA256
1
0
forked from pool/lua-luarepl

2 Commits

Author SHA256 Message Date
f3f9489a19 Accepting request 1204231 from devel:languages:lua
OBS-URL: https://build.opensuse.org/request/show/1204231
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lua-luarepl?expand=0&rev=3
2024-09-29 16:10:10 +00:00
f28b5366ff Fix rpmlint "file-contains-buildroot" error
This was failing with
osc build --noservice --clean --vm-type=kvm -M=lua51 standard

 lua51-luarepl.noarch: I: package-supports-update-alternatives
 lua51-luarepl.src: E: invalid-spec-name
 The spec file name (without the .spec suffix) must match the package name
 ('Name:' tag).

 lua51-luarepl.noarch: E: file-contains-buildroot (Badness: 10000) /usr/bin/rep.lua-5.1
 Your file contains traces of %{buildroot}.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luarepl?expand=0&rev=5
2024-09-27 20:31:23 +00:00
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Sep 27 12:17:35 UTC 2024 - Bernhard Wiedemann <bwiedemann@suse.com>
- Fix rpmlint "file-contains-buildroot" error
-------------------------------------------------------------------
Wed Jan 25 11:52:07 UTC 2023 - Michal Suchanek <msuchanek@suse.de>

View File

@@ -71,7 +71,7 @@ sed -i -r '1s/env (lua)/\1%{lua_version}/' rep.lua
%luarocks_install *.rock
# Version the rep.lua file
sed -i -r -e "s#%{buildroot}##" -e "s#(/bin/rep.lua)#\1-%{lua_version}#" \
sed -i -r -e "s#%{buildroot}##g" -e "s#(/bin/rep.lua)#\1-%{lua_version}#" \
"%{buildroot}/usr/bin/rep.lua"
mv %{buildroot}%{_bindir}/rep.lua{,-%{lua_version}}