msgpack.spec 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. Name: msgpack
  2. Version: 0.5.7
  3. Release: 2%{?dist}
  4. Summary: Binary-based efficient object serialization library
  5. Group: System Environment/Libraries
  6. License: ASL 2.0
  7. URL: http://msgpack.org
  8. Source0: http://msgpack.org/releases/cpp/%{name}-%{version}.tar.gz
  9. Patch0: msgpack-gtest-implicit-dso.patch
  10. # for regenerating configure
  11. BuildRequires: libtool
  12. # for %%check
  13. BuildRequires: gtest-devel
  14. BuildRequires: zlib-devel
  15. %description
  16. MessagePack is a binary-based efficient object serialization
  17. library. It enables to exchange structured objects between many
  18. languages like JSON. But unlike JSON, it is very fast and small.
  19. %package devel
  20. Summary: Libraries and header files for %{name}
  21. Group: Development/Libraries
  22. Requires: %{name}%{?_isa} = %{version}-%{release}
  23. %description devel
  24. Libraries and header files for %{name}
  25. %prep
  26. %setup -q
  27. %patch0 -p1 -b .gtest-implicit-dso
  28. %build
  29. autoreconf -f -i
  30. %configure --disable-static
  31. make %{?_smp_mflags}
  32. %check
  33. make check
  34. %install
  35. make install DESTDIR=$RPM_BUILD_ROOT
  36. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f '{}' ';'
  37. %post -p /sbin/ldconfig
  38. %postun -p /sbin/ldconfig
  39. %files
  40. %doc AUTHORS COPYING ChangeLog LICENSE NOTICE README README.md
  41. %{_libdir}/*.so.*
  42. %files devel
  43. %{_includedir}/*
  44. %{_libdir}/*.so
  45. %changelog
  46. * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.7-2
  47. - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
  48. * Wed Feb 15 2012 Daiki Ueno <dueno@redhat.com> - 0.5.7-1
  49. - initial packaging for Fedora