[packages/libmpack: 1/2] new, version 1.0.2
glen
glen at pld-linux.org
Sat Sep 17 13:46:52 CEST 2016
commit 6e3d7976e63995c88e96bd6d7c5c4e1f34db82d5
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Sep 17 14:39:53 2016 +0300
new, version 1.0.2
libmpack.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
---
diff --git a/libmpack.spec b/libmpack.spec
new file mode 100644
index 0000000..0021dce
--- /dev/null
+++ b/libmpack.spec
@@ -0,0 +1,48 @@
+Summary: Simple implementation of msgpack in C
+Name: libmpack
+Version: 1.0.2
+Release: 0.1
+License: MIT
+Group: Development/Libraries
+Source0: https://github.com/tarruda/libmpack/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: a6320e37991bb56520d4670419edb43c
+URL: https://github.com/tarruda/libmpack/
+BuildRequires: libtool
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libmpack is a small binary serialization/RPC library that implements
+both the msgpack and msgpack-rpc specifications.
+
+Differences from mspack-c:
+ - Callback-based API to simplify (de)serialization directly to/from
+ application-specific objects.
+ - C89 compatible code
+ - No allocation performed by the library, but helpers to simplify
+ dynamic allocation if the application needs it.
+ - Non-backtracking, incremental/iterative parse/serialization API
+
+%prep
+%setup -q
+
+%build
+%{__make} config=release \
+ CC="%{__cc}" \
+ PREFIX=%{_prefix} \
+ CFLAGS="%{rpmcflags}" \
+ LDFLAGS="%{rpmldflags} -fPIC -shared" \
+ LIBDIR=%{_libdir} \
+ VERBOSE=1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}
+
+libtool --mode=install install -p build/release/*.la $RPM_BUILD_ROOT%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE-MIT
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libmpack.git/commitdiff/d5c2316ec6bb9bd39930c279f188a2f68a99bbfc
More information about the pld-cvs-commit
mailing list