- Upgrade to 3.0.4

* Version 3.* is a large rewrite including changes of format,
      so full changelog is too long, and can be found on
      https://github.com/luarocks/luarocks/blob/master/CHANGELOG.md

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luarocks?expand=0&rev=9
This commit is contained in:
Matej Cepl 2018-10-31 09:26:34 +00:00 committed by Git OBS Bridge
parent a320451295
commit 39636f5b62
4 changed files with 23 additions and 16 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Oct 31 07:48:19 CET 2018 - mcepl@suse.com
- Upgrade to 3.0.4
* Version 3.* is a large rewrite including changes of format,
so full changelog is too long, and can be found on
https://github.com/luarocks/luarocks/blob/master/CHANGELOG.md
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 30 14:45:32 UTC 2017 - jmatejek@suse.com Mon Oct 30 14:45:32 UTC 2017 - jmatejek@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package lua-luarocks # spec file for package lua-luarocks
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org # Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -13,19 +13,20 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
%define flavor @BUILD_FLAVOR@ # %%define flavor @BUILD_FLAVOR@
%define flavor lua51
%define mod_name luarocks %define mod_name luarocks
%define lua_value %(echo "%{flavor}" |sed -e 's:lua::') %define lua_value %(echo "%{flavor}" |sed -e 's:lua::')
Version: 2.4.2 Version: 3.0.4
Release: 0 Release: 0
Summary: A deployment and management system for Lua modules Summary: A deployment and management system for Lua modules
License: MIT License: MIT
Group: Development/Languages/Other Group: Development/Languages/Other
Url: https://luarocks.org URL: https://luarocks.org
Source: https://github.com/luarocks/luarocks/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz Source: https://github.com/luarocks/luarocks/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
BuildRequires: %{flavor}-devel BuildRequires: %{flavor}-devel
BuildRequires: curl BuildRequires: curl
@ -42,6 +43,8 @@ ExclusiveArch: do_not_build
%else %else
Name: %{flavor}-%{mod_name} Name: %{flavor}-%{mod_name}
%endif %endif
Requires(post): update-alternatives
Requires(postun): update-alternatives
%description %description
LuaRocks allows you to install Lua modules as self-contained packages LuaRocks allows you to install Lua modules as self-contained packages
@ -60,18 +63,13 @@ repositories, and multiple local rocks trees.
./configure \ ./configure \
--prefix=%{_prefix} \ --prefix=%{_prefix} \
--lua-version=%{lua_version} \ --lua-version=%{lua_version} \
--with-downloader=curl \
--with-md5-checker=openssl \
--versioned-rocks-dir --versioned-rocks-dir
make %{?_smp_mflags} build make %{?_smp_mflags} build
%install %install
%make_install %make_install
# Add C module lib directory to fix "built" rocks not working mv %{buildroot}%{_bindir}/luarocks{,-%{lua_version}}
# See https://github.com/keplerproject/luarocks/issues/416 mv %{buildroot}%{_bindir}/luarocks-admin{,-%{lua_version}}
%if %{_lib}==lib64
echo -e -n "\nlib_modules_path=\"/%{_lib}/lua/\"..lua_version" >> %{buildroot}%{_sysconfdir}/luarocks/config-%{lua_version}.lua
%endif
# update-alternatives # update-alternatives
mkdir -p %{buildroot}%{_sysconfdir}/alternatives/ mkdir -p %{buildroot}%{_sysconfdir}/alternatives/
@ -90,7 +88,8 @@ if [ "$1" = 0 ] ; then
fi fi
%files %files
%doc COPYING README.md %license COPYING
%doc README.md
%dir %{_sysconfdir}/luarocks %dir %{_sysconfdir}/luarocks
%config(noreplace) %{_sysconfdir}/luarocks/config-%{lua_version}.lua %config(noreplace) %{_sysconfdir}/luarocks/config-%{lua_version}.lua
%ghost %{_sysconfdir}/alternatives/luarocks %ghost %{_sysconfdir}/alternatives/luarocks

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eef88c2429c715a7beb921e4b1ba571dddb7c74a250fbb0d3cc0d4be7a5865d9
size 4027001

3
luarocks-3.0.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ce82a2ebe8b5707d18aa99b56cbb995147fee55749f0d994157e8ed62d29f2d4
size 5374421