Name: flatbuffers Version: 1.7.1 Release: 1%{?dist} Summary: Memory efficient serialization library License: ASL 2.0 URL: http://google.github.io/flatbuffers/ Source0: https://github.com/google/flatbuffers/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: flatc.1 Source2: flatbuffers.7 Patch0: 0000-use-cmake-install-dirs.patch Patch1: 0001-fix-endianswap-for-bigendian.patch Patch2: 0002-specify-so-version.patch BuildRequires: cmake %description FlatBuffers is a serialization library for games and other memory constrained apps. FlatBuffers allows you to directly access serialized data without unpacking/parsing it first, while still having great forwards/backwards compatibility. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. %prep %autosetup -p1 %ifarch ppc64 s390x armv7hl # upstream have issues in tests on big-endian platforms TESTS_FLAG="-DFLATBUFFERS_BUILD_TESTS=OFF" %endif %cmake -DFLATBUFFERS_BUILD_SHAREDLIB=ON \ -DFLATBUFFERS_BUILD_FLATLIB=OFF \ ${TESTS_FLAG} %build %make_build %install %make_install mkdir -p %{buildroot}%{_mandir}/man{1,7} cp -p %SOURCE1 %{buildroot}%{_mandir}/man1/flatc.1 cp -p %SOURCE2 %{buildroot}%{_mandir}/man7/flatbuffers.7 %check %ifnarch ppc64 s390x armv7hl make test %endif %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %license LICENSE.txt %doc %attr(644,-,-) readme.md %{_bindir}/flatc %{_libdir}/libflatbuffers.so.* %{_mandir}/man1/flatc.1* %files devel %{_includedir}/flatbuffers %{_libdir}/libflatbuffers.so %{_mandir}/man7/flatbuffers.7* %changelog * Thu Nov 2 2017 Sergey Avseyev - 1.7.1-1 - Initial version * Mon Mar 30 2015 Daniel Vrátil - 1.0.3-1 - Initial version (abandoned at #1207208)