forked from pool/lua-mpack
- Switch to namespaced lua builds
- Fix compilation in openSUSE Leap 42.3. - Run spec-cleaner. - Version bump to 1.0.6. Upstream changelog: Version 1.0.6 ============= * It seems luarocks.orgs caches a previously uploaded rockspec for a version, even if we explicitly delete the version. Version 1.0.5 ============= * Bump and adapt build scripts for repository transfer. - Adapt .spec because the upstream repository changed. * libmpack was split into libmpack and libmpack-lua. Hence, now we need to download libmpack source code and unpack it into the folder mpack-src to build libmapck-lua. Thus, the file `libmpack-1.0.5.tar.gz` that contains libmpack v1.0.5 source code was added. - Add patch `lua51-mpack-fix-compilation.patch` to fix a compilation problem when using `USE_SYSTEM_LUA=1`. For more information, see gh#libmpack/libmpack-lua#2 . - Add patch `lua51-mpack-fix-gcc7.patch` to fix a compilation failure when using GCC7. For more information, see gh#libmpack/libmpack-lua#3 . - Version bump to 1.0.3. * No changelog available. OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-mpack?expand=0&rev=2
This commit is contained in:
committed by
Git OBS Bridge
parent
0667f6300f
commit
d04159f6fc
5
_multibuild
Normal file
5
_multibuild
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<multibuild>
|
||||||
|
<package>lua51</package>
|
||||||
|
<package>lua52</package>
|
||||||
|
<package>lua53</package>
|
||||||
|
</multibuild>
|
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jul 14 11:10:45 UTC 2017 - tchvatal@suse.com
|
||||||
|
|
||||||
|
- Switch to namespaced lua builds
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 4 16:57:57 UTC 2017 - ronisbr@gmail.com
|
Tue Jul 4 16:57:57 UTC 2017 - ronisbr@gmail.com
|
||||||
|
|
@@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# spec file for package lua51-mpack
|
# spec file for package lua-mpack
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
@@ -16,33 +16,35 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2)
|
%define flavor @BUILD_FLAVOR@
|
||||||
%define lua_archdir %{_libdir}/lua/%{lua_version}
|
|
||||||
%define libmpack_version 1.0.5
|
%define libmpack_version 1.0.5
|
||||||
Name: lua51-mpack
|
Name: %{flavor}-mpack
|
||||||
Version: 1.0.6
|
Version: 1.0.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Implementation of MessagePack for Lua 5.1
|
Summary: Implementation of MessagePack for Lua 5.1
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Url: https://github.com/libmpack/libmpack-lua
|
Url: https://github.com/libmpack/libmpack-lua
|
||||||
|
# Building against system version is in works of upstream Master branch
|
||||||
Source: https://github.com/libmpack/libmpack-lua/archive/%{version}.tar.gz
|
Source: https://github.com/libmpack/libmpack-lua/archive/%{version}.tar.gz
|
||||||
# libmpack source is necessary to build lua51-mpack.
|
# libmpack source is necessary to build lua51-mpack.
|
||||||
# The latest source can be downloaded from: https://github.com/libmpack/libmpack
|
# The latest source can be downloaded from: https://github.com/libmpack/libmpack
|
||||||
Source1: libmpack-%{libmpack_version}.tar.gz
|
Source1: https://github.com/libmpack/libmpack/archive/%{version}/libmpack-%{libmpack_version}.tar.gz
|
||||||
# PATCH-FIX-UPSTREAM lua51-mpack-fix-gcc7.patch gh#libmpack/libmpack-lua#3 -- Fix compilation error when using GCC7.
|
# PATCH-FIX-UPSTREAM lua51-mpack-fix-gcc7.patch gh#libmpack/libmpack-lua#3 -- Fix compilation error when using GCC7.
|
||||||
Patch0: lua51-mpack-fix-gcc7.patch
|
Patch0: lua51-mpack-fix-gcc7.patch
|
||||||
# PATCH-FIX-UPSTREAM lua51-mpack-fix-compilation.patch gh#libmpack/libmpack-lua#2 -- Fix compilation error when using `USE_SYSTEM_LUA=1`.
|
# PATCH-FIX-UPSTREAM lua51-mpack-fix-compilation.patch gh#libmpack/libmpack-lua#2 -- Fix compilation error when using `USE_SYSTEM_LUA=1`.
|
||||||
Patch1: lua51-mpack-fix-compilation.patch
|
Patch1: lua51-mpack-fix-compilation.patch
|
||||||
|
BuildRequires: %{flavor}-devel
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: lua51-devel
|
Requires: %{flavor}
|
||||||
Requires: lua51
|
%if "%{flavor}" == ""
|
||||||
|
ExclusiveArch: do_not_build
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
|
mpack is a binary serialization/RPC library that implements both the msgpack
|
||||||
mpack is a small binary serialization/RPC library that implements
|
and msgpack-rpc specifications.
|
||||||
both the msgpack and msgpack-rpc specifications.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n libmpack-lua-%{version}
|
%setup -q -n libmpack-lua-%{version}
|
||||||
@@ -57,23 +59,15 @@ tar --strip-components=1 -xzf libmpack-%{libmpack_version}.tar.gz
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
# Fix lua directory.
|
# Fix lua directory.
|
||||||
sed -i 's|LUA_CMOD_INSTALLDIR :=.*|LUA_CMOD_INSTALLDIR := $(shell echo "%{_libdir}/lua/%{lua_version}")|g' Makefile
|
sed -i 's|LUA_CMOD_INSTALLDIR :=.*|LUA_CMOD_INSTALLDIR := $(shell echo "%{lua_archdir}")|g' Makefile
|
||||||
|
|
||||||
# Fix Lua 5.1 library name if we are building for Leap 42.3.
|
|
||||||
%if 0%{?leap_version} == 420300
|
|
||||||
sed -i 's|LUA_LIB :=.*|LUA_LIB := -llua|g' Makefile
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} USE_SYSTEM_LUA=yes
|
make %{?_smp_mflags} USE_SYSTEM_LUA=yes
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make USE_SYSTEM_LUA=yes \
|
%make_install USE_SYSTEM_LUA=yes
|
||||||
DESTDIR=%{buildroot} \
|
|
||||||
install
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc mpack-src/LICENSE-MIT README.md
|
%doc mpack-src/LICENSE-MIT README.md
|
||||||
%dir %{lua_archdir}
|
%dir %{lua_archdir}
|
||||||
%{lua_archdir}/*
|
%{lua_archdir}/*
|
Reference in New Issue
Block a user