|
@@ -1,5 +1,5 @@
|
|
|
-%define ver 0.5.8
|
|
|
-%define rel 2
|
|
|
+%define ver 2.1.1
|
|
|
+%define rel 1
|
|
|
|
|
|
Name: msgpack
|
|
|
Version: %{ver}
|
|
@@ -7,16 +7,16 @@ Release: %{rel}%{?_dist_release}
|
|
|
Summary: Binary-based efficient object serialization library
|
|
|
Group: System Environment/Libraries
|
|
|
|
|
|
-License: ASL 2.0
|
|
|
+License: Boost Software License 1.0
|
|
|
URL: http://msgpack.org
|
|
|
Source0: http://msgpack.org/releases/cpp/%{name}-%{version}.tar.gz
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
-# for regenerating configure
|
|
|
-BuildRequires: libtool
|
|
|
+BuildRequires: cmake >= 2.8.6
|
|
|
+BuildRequires: zlib-devel
|
|
|
+BuildRequires: libboost-devel
|
|
|
# for %%check
|
|
|
BuildRequires: gtest-devel
|
|
|
-BuildRequires: zlib-devel
|
|
|
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
@@ -42,12 +42,22 @@ Libraries and header files for %{name}
|
|
|
|
|
|
|
|
|
%build
|
|
|
-%configure --disable-static
|
|
|
+%__cmake \
|
|
|
+ -DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
|
+ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
|
|
|
+ -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
|
|
|
+ -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
|
|
|
+ -DLIB_INSTALL_DIR:PATH=%{_libdir} \
|
|
|
+ -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
|
|
|
+ -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
|
|
|
+ -DMSGPACK_BOOST=ON \
|
|
|
+ -DBoost_USE_STATIC_LIBS=OFF \
|
|
|
+.
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
%check
|
|
|
-make check
|
|
|
+make test
|
|
|
|
|
|
|
|
|
%install
|
|
@@ -61,7 +71,7 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f '{}' ';'
|
|
|
|
|
|
|
|
|
%files
|
|
|
-%doc AUTHORS COPYING ChangeLog LICENSE NOTICE README README.md
|
|
|
+%doc AUTHORS COPYING ChangeLog LICENSE* NOTICE README README.md
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
%files devel
|
|
@@ -71,6 +81,13 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f '{}' ';'
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
+* Sat Feb 25 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 2.2.1-1
|
|
|
+- update to 2.2.1
|
|
|
+- update License tag
|
|
|
+- update BuildRequires
|
|
|
+ - using cmake
|
|
|
+ - using libboost
|
|
|
+
|
|
|
* Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 0.5.8-2
|
|
|
- rebuild with gcc-5.4.0
|
|
|
|