]>
Commit | Line | Data |
---|---|---|
e047ea4b JP |
1 | Summary: Parsing gigabytes of JSON per second |
2 | Name: simdjson | |
f902d04b | 3 | Version: 3.1.6 |
e047ea4b JP |
4 | Release: 1 |
5 | License: Apache v2.0 | |
6 | Group: Libraries | |
7 | #Source0Download: https://github.com/simdjson/simdjson/releases | |
76fef431 | 8 | Source0: https://github.com/simdjson/simdjson/archive/v%{version}/%{name}-%{version}.tar.gz |
f902d04b | 9 | # Source0-md5: 0da9a43b9228e6098b5827b5a46fa35b |
e047ea4b | 10 | URL: https://simdjson.org |
e6e5543e | 11 | BuildRequires: cmake >= 3.14 |
e047ea4b | 12 | BuildRequires: libstdc++-devel >= 6:5 |
d329d28b | 13 | BuildRequires: rpmbuild(macros) >= 1.605 |
e047ea4b JP |
14 | ExclusiveArch: %{x8664} aarch64 |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | JSON documents are everywhere on the Internet. Servers spend a lot of | |
19 | time parsing these documents. simdjson aims to accelerate the parsing | |
20 | of JSON per se using commonly available SIMD instructions as much as | |
21 | possible while doing full validation (including character encoding). | |
22 | ||
23 | %package devel | |
24 | Summary: Header files for simdjson library | |
25 | Group: Development/Libraries | |
26 | Requires: %{name} = %{version}-%{release} | |
27 | ||
28 | %description devel | |
29 | Header files for simdjson library. | |
30 | ||
31 | %prep | |
32 | %setup -q | |
33 | ||
34 | %build | |
be599bd1 | 35 | %cmake -B build |
0a7e4031 | 36 | %{__make} -C build |
e047ea4b JP |
37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
0a7e4031 | 40 | %{__make} -C build install \ |
e047ea4b JP |
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.*.*.* | |
e6e5543e | 53 | %attr(755,root,root) %ghost %{_libdir}/libsimdjson.so.15 |
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 | |
72506242 | 60 | %{_pkgconfigdir}/simdjson.pc |