]>
Commit | Line | Data |
---|---|---|
e9a9e63b ER |
1 | Summary: Memory efficient serialization library |
2 | Name: flatbuffers | |
92848552 | 3 | Version: 22.12.06 |
ebc1c68a | 4 | Release: 1 |
e9a9e63b ER |
5 | License: Apache v2.0 |
6 | Group: Applications | |
7 | Source0: https://github.com/google/flatbuffers/archive/v%{version}/%{name}-%{version}.tar.gz | |
92848552 | 8 | # Source0-md5: 33977086e1e28bb73c53cdf0d0584eac |
e9a9e63b | 9 | URL: https://google.github.io/flatbuffers/ |
92848552 | 10 | BuildRequires: cmake >= 3.16 |
e9a9e63b ER |
11 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
12 | ||
13 | %description | |
14 | FlatBuffers is an efficient cross platform serialization library for | |
15 | C++, C#, C, Go, Java, JavaScript, Lobster, Lua, TypeScript, PHP, | |
16 | Python, and Rust. It was originally created at Google for game | |
17 | development and other performance-critical applications. | |
18 | ||
19 | %package devel | |
20 | Summary: Header files for %{name} library | |
21 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name} | |
22 | Group: Development/Libraries | |
23 | ||
24 | %description devel | |
25 | Header files for %{name} library. | |
26 | ||
27 | %prep | |
28 | %setup -q | |
29 | ||
30 | %build | |
31 | install -d build | |
32 | cd build | |
33 | %cmake \ | |
34 | -DFLATBUFFERS_BUILD_FLATLIB=OFF \ | |
35 | -DFLATBUFFERS_BUILD_SHAREDLIB=ON \ | |
36 | -DFLATBUFFERS_BUILD_TESTS=OFF \ | |
37 | .. | |
38 | %{__make} | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | %{__make} -C build install \ | |
43 | DESTDIR=$RPM_BUILD_ROOT | |
44 | ||
34653994 ER |
45 | # somewhy not installed by make |
46 | cd build | |
47 | install -d $RPM_BUILD_ROOT%{_bindir} | |
48 | install -p flatc flathash $RPM_BUILD_ROOT%{_bindir} | |
49 | ||
e9a9e63b ER |
50 | %clean |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
0cdfa54b ER |
53 | %post -p /sbin/ldconfig |
54 | %postun -p /sbin/ldconfig | |
55 | ||
e9a9e63b ER |
56 | %files |
57 | %defattr(644,root,root,755) | |
0cdfa54b | 58 | %attr(755,root,root) %{_libdir}/libflatbuffers.so.*.*.* |
92848552 | 59 | %attr(755,root,root) %ghost %{_libdir}/libflatbuffers.so.22 |
0cdfa54b ER |
60 | |
61 | %files devel | |
62 | %defattr(644,root,root,755) | |
34653994 ER |
63 | %attr(755,root,root) %{_bindir}/flatc |
64 | %attr(755,root,root) %{_bindir}/flathash | |
0cdfa54b ER |
65 | %{_includedir}/flatbuffers |
66 | %{_libdir}/cmake/flatbuffers | |
67 | %{_libdir}/libflatbuffers.so | |
92848552 | 68 | %{_pkgconfigdir}/flatbuffers.pc |