| 1 | %define ver 0.5.7 |
|---|
| 2 | %define rel 1 |
|---|
| 3 | |
|---|
| 4 | Name: msgpack |
|---|
| 5 | Version: %{ver} |
|---|
| 6 | Release: %{rel}%{?_dist_release} |
|---|
| 7 | Summary: Binary-based efficient object serialization library |
|---|
| 8 | Group: System Environment/Libraries |
|---|
| 9 | |
|---|
| 10 | License: ASL 2.0 |
|---|
| 11 | URL: http://msgpack.org |
|---|
| 12 | Source0: http://msgpack.org/releases/cpp/%{name}-%{version}.tar.gz |
|---|
| 13 | Patch0: msgpack-gtest-implicit-dso.patch |
|---|
| 14 | |
|---|
| 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
|---|
| 16 | # for regenerating configure |
|---|
| 17 | BuildRequires: libtool |
|---|
| 18 | # for %%check |
|---|
| 19 | BuildRequires: gtest-devel |
|---|
| 20 | BuildRequires: zlib-devel |
|---|
| 21 | |
|---|
| 22 | Vendor: Project Vine |
|---|
| 23 | Distribution: Vine Linux |
|---|
| 24 | Packager: iwaim |
|---|
| 25 | |
|---|
| 26 | %description |
|---|
| 27 | MessagePack is a binary-based efficient object serialization |
|---|
| 28 | library. It enables to exchange structured objects between many |
|---|
| 29 | languages like JSON. But unlike JSON, it is very fast and small. |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | %package devel |
|---|
| 33 | Summary: Libraries and header files for %{name} |
|---|
| 34 | Group: Development/Libraries |
|---|
| 35 | Requires: %{name} = %{version}-%{release} |
|---|
| 36 | |
|---|
| 37 | %description devel |
|---|
| 38 | Libraries and header files for %{name} |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | %prep |
|---|
| 42 | %setup -q |
|---|
| 43 | %patch0 -p1 -b .gtest-implicit-dso |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | %build |
|---|
| 47 | autoreconf -f -i |
|---|
| 48 | %configure --disable-static |
|---|
| 49 | make %{?_smp_mflags} |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | %check |
|---|
| 53 | make check |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | %install |
|---|
| 57 | make install DESTDIR=$RPM_BUILD_ROOT |
|---|
| 58 | find $RPM_BUILD_ROOT -name '*.la' -exec rm -f '{}' ';' |
|---|
| 59 | |
|---|
| 60 | |
|---|
| 61 | %post -p /sbin/ldconfig |
|---|
| 62 | |
|---|
| 63 | %postun -p /sbin/ldconfig |
|---|
| 64 | |
|---|
| 65 | |
|---|
| 66 | %files |
|---|
| 67 | %doc AUTHORS COPYING ChangeLog LICENSE NOTICE README README.md |
|---|
| 68 | %{_libdir}/*.so.* |
|---|
| 69 | |
|---|
| 70 | %files devel |
|---|
| 71 | %{_includedir}/* |
|---|
| 72 | %{_libdir}/*.so |
|---|
| 73 | |
|---|
| 74 | |
|---|
| 75 | %changelog |
|---|
| 76 | * Fri Feb 1 2013 IWAI, Masaharu <iwai@alib.jp> 0.5.7-1 |
|---|
| 77 | - initial build for Vine Linux |
|---|
| 78 | |
|---|
| 79 | * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-2 |
|---|
| 80 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
|---|
| 81 | |
|---|
| 82 | * Wed Feb 15 2012 Daiki Ueno <dueno@redhat.com> - 0.5.7-1 |
|---|
| 83 | - initial packaging for Fedora |
|---|
| 84 | |
|---|