]> git.pld-linux.org Git - packages/simdjson.git/blob - simdjson.spec
65b9b91e5bdddf654fef4af2d581f272e9aeab9c
[packages/simdjson.git] / simdjson.spec
1 Summary:        Parsing gigabytes of JSON per second
2 Name:           simdjson
3 Version:        0.3.1
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
9 # Source0-md5:  364a45a51526cad04d074ccd144b35fb
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
34 %cmake
35 %{__make}
36
37 %install
38 rm -rf $RPM_BUILD_ROOT
39 %{__make} install \
40         DESTDIR=$RPM_BUILD_ROOT
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post   -p /sbin/ldconfig
46 %postun -p /sbin/ldconfig
47
48 %files
49 %defattr(644,root,root,755)
50 %doc AUTHORS CONTRIBUTING.md CONTRIBUTORS HACKING.md README.md RELEASES.md
51 %attr(755,root,root) %{_libdir}/libsimdjson.so.*.*.*
52 %attr(755,root,root) %ghost %{_libdir}/libsimdjson.so.1
53
54 %files devel
55 %defattr(644,root,root,755)
56 %attr(755,root,root) %{_libdir}/libsimdjson.so
57 %{_libdir}/cmake/simdjson
58 %{_includedir}/simdjson.h
59 %{_includedir}/simdjson
This page took 0.07049 seconds and 2 git commands to generate.