From eb3e4b04443c243a89357619d0dcdd85383c6ee7 Mon Sep 17 00:00:00 2001 From: Daiki Ueno Date: Mon, 18 Jun 2012 09:57:07 +0900 Subject: [PATCH] Initial import. --- .gitignore | 1 + msgpack-gtest-implicit-dso.patch | 12 ++++++ msgpack.spec | 70 ++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 84 insertions(+) create mode 100644 msgpack-gtest-implicit-dso.patch create mode 100644 msgpack.spec diff --git a/.gitignore b/.gitignore index e69de29..cf66fdd 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/msgpack-0.5.7.tar.gz diff --git a/msgpack-gtest-implicit-dso.patch b/msgpack-gtest-implicit-dso.patch new file mode 100644 index 0000000..6602da8 --- /dev/null +++ b/msgpack-gtest-implicit-dso.patch @@ -0,0 +1,12 @@ +diff -ru msgpack-0.5.7.orig/test/Makefile.am msgpack-0.5.7/test/Makefile.am +--- msgpack-0.5.7.orig/test/Makefile.am 2011-06-12 14:37:51.000000000 +0900 ++++ msgpack-0.5.7/test/Makefile.am 2012-02-15 15:21:10.241665810 +0900 +@@ -1,7 +1,7 @@ + + AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src + AM_C_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src +-AM_LDFLAGS = $(top_builddir)/src/libmsgpack.la -lgtest_main -pthread ++AM_LDFLAGS = $(top_builddir)/src/libmsgpack.la -lgtest_main -lgtest -pthread + + check_PROGRAMS = \ + zone \ diff --git a/msgpack.spec b/msgpack.spec new file mode 100644 index 0000000..0c25d04 --- /dev/null +++ b/msgpack.spec @@ -0,0 +1,70 @@ +Name: msgpack +Version: 0.5.7 +Release: 1%{?dist} +Summary: Binary-based efficient object serialization library +Group: System Environment/Libraries + +License: ASL 2.0 +URL: http://msgpack.org +Source0: http://msgpack.org/releases/cpp/%{name}-%{version}.tar.gz +Patch0: msgpack-gtest-implicit-dso.patch + +# for regenerating configure +BuildRequires: libtool +# for %%check +BuildRequires: gtest-devel +BuildRequires: zlib-devel + +%description +MessagePack is a binary-based efficient object serialization +library. It enables to exchange structured objects between many +languages like JSON. But unlike JSON, it is very fast and small. + + +%package devel +Summary: Libraries and header files for %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +Libraries and header files for %{name} + + +%prep +%setup -q +%patch0 -p1 -b .gtest-implicit-dso + + +%build +autoreconf -f -i +%configure --disable-static +make %{?_smp_mflags} + + +%check +make check + + +%install +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f '{}' ';' + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%doc AUTHORS COPYING ChangeLog LICENSE NOTICE README README.md +%{_libdir}/*.so.* + +%files devel +%{_includedir}/* +%{_libdir}/*.so + + +%changelog +* Wed Feb 15 2012 Daiki Ueno - 0.5.7-1 +- initial packaging for Fedora + diff --git a/sources b/sources index e69de29..b78809b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +705106a9378c792fe22d285dba5c142c msgpack-0.5.7.tar.gz