1 Summary: Simple implementation of msgpack in C
6 Group: Development/Libraries
7 Source0: https://github.com/tarruda/libmpack/archive/%{version}/%{name}-%{version}.tar.gz
8 # Source0-md5: a6320e37991bb56520d4670419edb43c
9 URL: https://github.com/tarruda/libmpack/
10 BuildRequires: libtool
11 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 libmpack is a small binary serialization/RPC library that implements
15 both the msgpack and msgpack-rpc specifications.
17 Differences from mspack-c:
18 - Callback-based API to simplify (de)serialization directly to/from
19 application-specific objects.
21 - No allocation performed by the library, but helpers to simplify
22 dynamic allocation if the application needs it.
23 - Non-backtracking, incremental/iterative parse/serialization API
29 %{__make} config=release \
32 CFLAGS="%{rpmcflags}" \
33 LDFLAGS="%{rpmldflags} -fPIC -shared" \
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_libdir}
41 libtool --mode=install install -p build/release/*.la $RPM_BUILD_ROOT%{_libdir}
44 rm -rf $RPM_BUILD_ROOT
47 %defattr(644,root,root,755)
48 %doc README.md LICENSE-MIT