File lua-messagepack.spec of Package lua-messagepack

#
# spec file for package lua-messagepack
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define flavor @BUILD_FLAVOR@
%define mod_name    MessagePack
Version:        0.3.3
Release:        0
Summary:        MessagePack is an efficient binary serialization format
License:        MIT
Group:          Development/Libraries/Other
Url:            http://fperrad.github.io/lua-MessagePack/
Source:         https://github.com/fperrad/lua-MessagePack/archive/%{version}.tar.gz
BuildRequires:  %{flavor}-devel
Requires:       %{flavor}
Provides:       %{flavor}-MessagePack = %{version}-%{release}
Obsoletes:      %{flavor}-NessagePack <= %{version}-%{release}
BuildArch:      noarch
%if "%{flavor}" == ""
Name:           lua-messagepack
ExclusiveArch:  do_not_build
%else
Name:           %{flavor}-messagepack
%endif

%description
MessagePack is an efficient binary serialization format.
It lets you exchange data among multiple languages like JSON but it's faster and
smaller.
It's a pure Lua implementation, without dependency.
And it's really fast with LuaJIT.

%prep
%setup -q -n lua-%{mod_name}-%{version}

%build
:

%install
make PREFIX=%{_prefix} DESTDIR=%{buildroot} LUAVER=%{lua_version} install

%files
%doc CHANGES COPYRIGHT README.md
%{lua_noarchdir}

%changelog
openSUSE Build Service is sponsored by