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