]> git.pld-linux.org Git - packages/cjson.git/blame - cjson.spec
- updated to 1.7.17 (fixes CVE-2023-50471 CVE-2023-50472)
[packages/cjson.git] / cjson.spec
CommitLineData
5b36b517
JB
1Summary: Ultralightweight JSON parser in ANSI C
2Summary(pl.UTF-8): Ultralekki parser formatu JSON napisany w ANSI C
3Name: cjson
8481a234 4Version: 1.7.17
5b36b517
JB
5Release: 1
6License: MIT
7Group: Libraries
8#Source0Download: https://github.com/DaveGamble/cJSON/releases
9Source0: https://github.com/DaveGamble/cJSON/archive/v%{version}/cJSON-%{version}.tar.gz
8481a234 10# Source0-md5: 344409fa865ca3440be94089d1cc37ac
5b36b517 11URL: https://github.com/DaveGamble/cJSON
67bd4e42 12BuildRequires: cmake >= 3.0
5b36b517
JB
13BuildRequires: rpmbuild(macros) >= 1.605
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17cJSON aims to be the dumbest possible parser that you can get your job
18done with. It's a single file of C, and a single header file.
19
20%description -l pl.UTF-8
21cJSON jest tworzony jako możliwie najprostszy parser wykonujący swoje
22zadanie. Jest to pojedynczy plik w C i pojedynczy plik nagłówkowy.
23
24%package devel
25Summary: Header files for cJSON library
26Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cJSON
27Group: Development/Libraries
28Requires: %{name} = %{version}-%{release}
29
30%description devel
31Header files for cJSON library.
32
33%description devel -l pl.UTF-8
34Pliki nagłówkowe biblioteki cJSON.
35
36%prep
37%setup -q -n cJSON-%{version}
38
39%build
40install -d build
41cd build
42%cmake .. \
169419a9
JP
43 -DENABLE_CJSON_TEST:BOOL=OFF \
44 -DENABLE_CJSON_UTILS:BOOL=ON
5b36b517
JB
45
46%install
47rm -rf $RPM_BUILD_ROOT
48
49%{__make} -C build install \
50 DESTDIR=$RPM_BUILD_ROOT
51
52%clean
53rm -rf $RPM_BUILD_ROOT
54
55%post -p /sbin/ldconfig
56%postun -p /sbin/ldconfig
57
58%files
59%defattr(644,root,root,755)
60%doc CHANGELOG.md CONTRIBUTORS.md LICENSE README.md
61%attr(755,root,root) %{_libdir}/libcjson.so.*.*.*
62%attr(755,root,root) %ghost %{_libdir}/libcjson.so.1
63%attr(755,root,root) %{_libdir}/libcjson_utils.so.*.*.*
64%attr(755,root,root) %ghost %{_libdir}/libcjson_utils.so.1
65
66%files devel
67%defattr(644,root,root,755)
68%attr(755,root,root) %{_libdir}/libcjson.so
69%attr(755,root,root) %{_libdir}/libcjson_utils.so
70%{_includedir}/cjson
71%{_pkgconfigdir}/libcjson.pc
72%{_pkgconfigdir}/libcjson_utils.pc
73%{_libdir}/cmake/cJSON
This page took 0.216673 seconds and 4 git commands to generate.