[11090] | 1 | %define ver 2.1.1 |
---|
| 2 | %define rel 1 |
---|
[7396] | 3 | |
---|
[7395] | 4 | Name: msgpack |
---|
[7396] | 5 | Version: %{ver} |
---|
| 6 | Release: %{rel}%{?_dist_release} |
---|
[7395] | 7 | Summary: Binary-based efficient object serialization library |
---|
| 8 | Group: System Environment/Libraries |
---|
| 9 | |
---|
[11090] | 10 | License: Boost Software License 1.0 |
---|
[7395] | 11 | URL: http://msgpack.org |
---|
| 12 | Source0: http://msgpack.org/releases/cpp/%{name}-%{version}.tar.gz |
---|
| 13 | |
---|
[7396] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
[11090] | 15 | BuildRequires: cmake >= 2.8.6 |
---|
| 16 | BuildRequires: zlib-devel |
---|
| 17 | BuildRequires: libboost-devel |
---|
[7395] | 18 | # for %%check |
---|
| 19 | BuildRequires: gtest-devel |
---|
| 20 | |
---|
[7396] | 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | Packager: iwaim |
---|
| 24 | |
---|
[7395] | 25 | %description |
---|
| 26 | MessagePack is a binary-based efficient object serialization |
---|
| 27 | library. It enables to exchange structured objects between many |
---|
| 28 | languages like JSON. But unlike JSON, it is very fast and small. |
---|
| 29 | |
---|
| 30 | |
---|
| 31 | %package devel |
---|
| 32 | Summary: Libraries and header files for %{name} |
---|
| 33 | Group: Development/Libraries |
---|
[7396] | 34 | Requires: %{name} = %{version}-%{release} |
---|
[7395] | 35 | |
---|
| 36 | %description devel |
---|
| 37 | Libraries and header files for %{name} |
---|
| 38 | |
---|
| 39 | |
---|
| 40 | %prep |
---|
| 41 | %setup -q |
---|
| 42 | |
---|
| 43 | |
---|
| 44 | %build |
---|
[11090] | 45 | %__cmake \ |
---|
| 46 | -DCMAKE_VERBOSE_MAKEFILE=ON \ |
---|
| 47 | -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \ |
---|
| 48 | -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \ |
---|
| 49 | -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \ |
---|
| 50 | -DLIB_INSTALL_DIR:PATH=%{_libdir} \ |
---|
| 51 | -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \ |
---|
| 52 | -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \ |
---|
| 53 | -DMSGPACK_BOOST=ON \ |
---|
| 54 | -DBoost_USE_STATIC_LIBS=OFF \ |
---|
| 55 | . |
---|
[7395] | 56 | make %{?_smp_mflags} |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | %check |
---|
[11090] | 60 | make test |
---|
[7395] | 61 | |
---|
| 62 | |
---|
| 63 | %install |
---|
| 64 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 65 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f '{}' ';' |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %post -p /sbin/ldconfig |
---|
| 69 | |
---|
| 70 | %postun -p /sbin/ldconfig |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %files |
---|
[11090] | 74 | %doc AUTHORS COPYING ChangeLog LICENSE* NOTICE README README.md |
---|
[7395] | 75 | %{_libdir}/*.so.* |
---|
| 76 | |
---|
| 77 | %files devel |
---|
| 78 | %{_includedir}/* |
---|
| 79 | %{_libdir}/*.so |
---|
[8090] | 80 | %{_libdir}/pkgconfig/msgpack.pc |
---|
[7395] | 81 | |
---|
| 82 | |
---|
| 83 | %changelog |
---|
[11090] | 84 | * Sat Feb 25 2017 IWAI, Masaharu <iwaim.sub@gmail.com> 2.2.1-1 |
---|
| 85 | - update to 2.2.1 |
---|
| 86 | - update License tag |
---|
| 87 | - update BuildRequires |
---|
| 88 | - using cmake |
---|
| 89 | - using libboost |
---|
| 90 | |
---|
[10766] | 91 | * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 0.5.8-2 |
---|
| 92 | - rebuild with gcc-5.4.0 |
---|
| 93 | |
---|
[8090] | 94 | * Tue Dec 31 2013 IWAI, Masaharu <iwaim.sub@gmail.com> 0.5.8-1 |
---|
| 95 | - update to 0.5.8 |
---|
| 96 | - drop gtest patch: upstream fixed |
---|
| 97 | - add pkgconfig file in msgpack-devel package |
---|
| 98 | |
---|
[7396] | 99 | * Fri Feb 1 2013 IWAI, Masaharu <iwai@alib.jp> 0.5.7-1 |
---|
| 100 | - initial build for Vine Linux |
---|
| 101 | |
---|
[7395] | 102 | * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-2 |
---|
| 103 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
---|
| 104 | |
---|
| 105 | * Wed Feb 15 2012 Daiki Ueno <dueno@redhat.com> - 0.5.7-1 |
---|
| 106 | - initial packaging for Fedora |
---|
| 107 | |
---|