]> git.pld-linux.org Git - packages/flatbuffers.git/blame - flatbuffers.spec
install flatc/flathash manually
[packages/flatbuffers.git] / flatbuffers.spec
CommitLineData
e9a9e63b
ER
1Summary: Memory efficient serialization library
2Name: flatbuffers
3Version: 1.9.0
ebc1c68a 4Release: 1
e9a9e63b
ER
5License: Apache v2.0
6Group: Applications
7Source0: https://github.com/google/flatbuffers/archive/v%{version}/%{name}-%{version}.tar.gz
8# Source0-md5: 8be7513bf960034f6873326d09521a4b
ebc1c68a
ER
9Patch0: https://github.com/google/flatbuffers/pull/4698.patch
10# Patch0-md5: f72d57f8befcb0052349a7d9a0df3f24
e9a9e63b
ER
11URL: https://google.github.io/flatbuffers/
12BuildRequires: cmake
13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
16FlatBuffers is an efficient cross platform serialization library for
17C++, C#, C, Go, Java, JavaScript, Lobster, Lua, TypeScript, PHP,
18Python, and Rust. It was originally created at Google for game
19development and other performance-critical applications.
20
21%package devel
22Summary: Header files for %{name} library
23Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
24Group: Development/Libraries
25
26%description devel
27Header files for %{name} library.
28
29%prep
30%setup -q
ebc1c68a 31%patch0 -p1
e9a9e63b
ER
32
33%build
34install -d build
35cd build
36%cmake \
37 -DFLATBUFFERS_BUILD_FLATLIB=OFF \
38 -DFLATBUFFERS_BUILD_SHAREDLIB=ON \
39 -DFLATBUFFERS_BUILD_TESTS=OFF \
40 ..
41%{__make}
42
43%install
44rm -rf $RPM_BUILD_ROOT
45%{__make} -C build install \
46 DESTDIR=$RPM_BUILD_ROOT
47
34653994
ER
48# somewhy not installed by make
49cd build
50install -d $RPM_BUILD_ROOT%{_bindir}
51install -p flatc flathash $RPM_BUILD_ROOT%{_bindir}
52
e9a9e63b
ER
53%clean
54rm -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
This page took 0.480211 seconds and 4 git commands to generate.