]>
Commit | Line | Data |
---|---|---|
e047ea4b JP |
1 | Summary: Parsing gigabytes of JSON per second |
2 | Name: simdjson | |
f0366cee | 3 | Version: 0.8.0 |
e047ea4b JP |
4 | Release: 1 |
5 | License: Apache v2.0 | |
6 | Group: Libraries | |
7 | #Source0Download: https://github.com/simdjson/simdjson/releases | |
8 | Source0: https://github.com/simdjson/simdjson/archive/v%{version}/%{name}-%{version}.tar.gz | |
f0366cee | 9 | # Source0-md5: e9d56ec469e665d0d1ae29693874704d |
e047ea4b JP |
10 | URL: https://simdjson.org |
11 | BuildRequires: cmake >= 3.9 | |
12 | BuildRequires: libstdc++-devel >= 6:5 | |
13 | ExclusiveArch: %{x8664} aarch64 | |
14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
15 | ||
16 | %description | |
17 | JSON documents are everywhere on the Internet. Servers spend a lot of | |
18 | time parsing these documents. simdjson aims to accelerate the parsing | |
19 | of JSON per se using commonly available SIMD instructions as much as | |
20 | possible while doing full validation (including character encoding). | |
21 | ||
22 | %package devel | |
23 | Summary: Header files for simdjson library | |
24 | Group: Development/Libraries | |
25 | Requires: %{name} = %{version}-%{release} | |
26 | ||
27 | %description devel | |
28 | Header files for simdjson library. | |
29 | ||
30 | %prep | |
31 | %setup -q | |
32 | ||
33 | %build | |
9bb26865 JP |
34 | %cmake \ |
35 | -DSIMDJSON_JUST_LIBRARY=ON | |
e047ea4b JP |
36 | %{__make} |
37 | ||
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | %{__make} install \ | |
41 | DESTDIR=$RPM_BUILD_ROOT | |
42 | ||
43 | %clean | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | ||
46 | %post -p /sbin/ldconfig | |
47 | %postun -p /sbin/ldconfig | |
48 | ||
49 | %files | |
50 | %defattr(644,root,root,755) | |
51 | %doc AUTHORS CONTRIBUTING.md CONTRIBUTORS HACKING.md README.md RELEASES.md | |
52 | %attr(755,root,root) %{_libdir}/libsimdjson.so.*.*.* | |
f0366cee | 53 | %attr(755,root,root) %ghost %{_libdir}/libsimdjson.so.7 |
e047ea4b JP |
54 | |
55 | %files devel | |
56 | %defattr(644,root,root,755) | |
57 | %attr(755,root,root) %{_libdir}/libsimdjson.so | |
58 | %{_libdir}/cmake/simdjson | |
59 | %{_includedir}/simdjson.h |