3 %bcond_without static_libs # don't build static libraries
5 Summary: A JSON implementation in C
11 Source0: http://download.rsyslog.com/libfastjson/%{name}-%{version}.tar.gz
12 # Source0-md5: fe7b4eae1bf40499f6f92b51d7e5899e
13 URL: https://github.com/rsyslog/libfastjson
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 LIBFASTJSON implements a reference counting object model that allows
18 you to easily construct JSON objects in C, output them as JSON
19 formatted strings and parse JSON formatted strings back into the C
20 representation of JSON objects.
23 Summary: Header files for %{name} library
24 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
25 Group: Development/Libraries
26 Requires: %{name} = %{version}-%{release}
29 Header files for %{name} library.
31 %description devel -l pl.UTF-8
32 Pliki nagłówkowe biblioteki %{name}.
35 Summary: Static %{name} library
36 Summary(pl.UTF-8): Statyczna biblioteka %{name}
37 Group: Development/Libraries
38 Requires: %{name}-devel = %{version}-%{release}
41 Static %{name} library.
43 %description static -l pl.UTF-8
44 Statyczna biblioteka %{name}.
51 %{!?with_static_libs:--disable-static}
55 rm -rf $RPM_BUILD_ROOT
58 DESTDIR=$RPM_BUILD_ROOT
60 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
63 rm -rf $RPM_BUILD_ROOT
65 %post -p /sbin/ldconfig
66 %postun -p /sbin/ldconfig
69 %defattr(644,root,root,755)
71 %attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
72 %attr(755,root,root) %ghost %{_libdir}/%{name}.so.4
75 %defattr(644,root,root,755)
77 %attr(755,root,root) %{_libdir}/%{name}.so
78 %{_includedir}/%{name}
79 %{_pkgconfigdir}/%{name}.pc
81 %if %{with static_libs}
83 %defattr(644,root,root,755)