msgpack-vl.spec 2.8 KB

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