1 Summary: A JSON implementation in C
2 Summary(pl.UTF-8): Implementacja JSON w C
8 #Source0Download: https://s3.amazonaws.com/json-c_releases/releases/index.html # with AJAX (requires JavaScript)
9 Source0: https://s3.amazonaws.com/json-c_releases/releases/%{name}-%{version}.tar.gz
10 # Source0-md5: 04969ad59cc37bddd83741a08b98f350
11 URL: https://github.com/json-c/json-c/wiki
12 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15 JSON-C implements a reference counting object model that allows you to
16 easily construct JSON objects in C, output them as JSON formatted
17 strings and parse JSON formatted strings back into the C
18 representation of JSON objects.
20 %description -l pl.UTF-8
21 JSON-C implementuje model obiektów ze zliczaniem odwołań, pozwalający
22 łatwo konstruować obiekty JSON w C, wypisywać je w postaci łańcuchów w
23 formacie JSON i analizować łańcuchy w formacie JSON tworząc z powrotem
24 reprezentacje obiektów JSON w C.
27 Summary: Header files for the json-c library
28 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki json-c
29 Group: Development/Libraries
30 Requires: %{name} = %{version}-%{release}
33 Header files for the json-c library.
35 %description devel -l pl.UTF-8
36 Pliki nagłówkowe biblioteki json-c.
39 Summary: Static json-c library
40 Summary(pl.UTF-8): Statyczna biblioteka json-c
41 Group: Development/Libraries
42 Requires: %{name}-devel = %{version}-%{release}
45 Static json-c library.
47 %description static -l pl.UTF-8
48 Statyczna biblioteka json-c.
54 # avoid "json_tokener.c:355:6: error: variable 'size' set but not used [-Werror=unused-but-set-variable]"
55 CFLAGS="%{rpmcflags} -Wno-unused-but-set-variable"
57 --disable-silent-rules
61 rm -rf $RPM_BUILD_ROOT
64 DESTDIR=$RPM_BUILD_ROOT
66 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
69 rm -rf $RPM_BUILD_ROOT
71 %post -p /sbin/ldconfig
72 %postun -p /sbin/ldconfig
75 # transition from 0.11-2
76 [ ! -L %{_includedir}/json-c ] || rm -f %{_includedir}/json-c
77 # transition from <= 0.10 and 0.11-2
78 if [ -d %{_includedir}/json -a ! -d %{_includedir}/json-c ]; then
79 mv -f %{_includedir}/json %{_includedir}/json-c
80 ln -sf json-c %{_includedir}/json
84 %defattr(644,root,root,755)
85 %doc AUTHORS COPYING ChangeLog README README.html
86 %attr(755,root,root) %{_libdir}/libjson-c.so.*.*.*
87 %attr(755,root,root) %ghost %{_libdir}/libjson-c.so.4
90 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_libdir}/libjson-c.so
93 %{_pkgconfigdir}/json-c.pc
96 %defattr(644,root,root,755)
97 %{_libdir}/libjson-c.a