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