3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
6 Summary: C library for encoding, decoding and manipulating JSON data
7 Summary(pl.UTF-8): Biblioteka C do kodowania, dekodowania i obróbki danych JSON
13 Source0: http://www.digip.org/jansson/releases/%{name}-%{version}.tar.bz2
14 # Source0-md5: ffac352f9c5f80a6ae8145d451af2c0e
15 URL: http://www.digip.org/jansson/
16 BuildRequires: autoconf >= 2.60
17 BuildRequires: automake >= 1:1.10
18 BuildRequires: libtool
19 %{?with_apidocs:BuildRequires: sphinx-pdg}
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Jansson is a C library for encoding, decoding and manipulating JSON
25 - Simple and intuitive API and data model
26 - Comprehensive documentation
27 - No dependencies on other libraries
28 - Full Unicode support (UTF-8)
29 - Extensive test suite
31 %description -l pl.UTF-8
32 Jansson to biblioteka C do kodowania, dekodowania oraz obróbki danych
34 - proste i intuicyjne API oraz model danych
35 - wyczerpująca dokumentacja
36 - brak zależności od innych bibliotek
37 - pełna obsługa Unicode (UTF-8)
38 - obszerny zestaw testów
41 Summary: Header files for %{name} library
42 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki %{name}
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
47 Header files for %{name} library.
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki %{name}.
53 Summary: Static %{name} library
54 Summary(pl.UTF-8): Statyczna biblioteka %{name}
55 Group: Development/Libraries
56 Requires: %{name}-devel = %{version}-%{release}
59 Static %{name} library.
61 %description static -l pl.UTF-8
62 Statyczna biblioteka %{name}.
65 Summary: %{name} API documentation
66 Summary(pl.UTF-8): Dokumentacja API biblioteki %{name}
68 %if "%{_rpmversion}" >= "5"
73 API documentation for %{name} library.
75 %description apidocs -l pl.UTF-8
76 Dokumentacja API biblioteki %{name}.
88 %{!?with_static_libs:--disable-static}
96 rm -rf $RPM_BUILD_ROOT
99 DESTDIR=$RPM_BUILD_ROOT
101 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libjansson.la
104 rm -rf $RPM_BUILD_ROOT
106 %post -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
110 %defattr(644,root,root,755)
111 %doc CHANGES LICENSE README.rst
112 %attr(755,root,root) %{_libdir}/libjansson.so.*.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libjansson.so.4
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libjansson.so
118 %{_includedir}/jansson*.h
119 %{_pkgconfigdir}/jansson.pc
121 %if %{with static_libs}
123 %defattr(644,root,root,755)
124 %{_libdir}/libjansson.a
129 %defattr(644,root,root,755)