- rel 1
[packages/libjansson.git] / libjansson.spec
1 %define         realname        jansson
2
3 Summary:        Jansson - JSON C Library
4 Summary(pl.UTF-8):      Jansson - biblioteka JSON napisana w C
5 Name:           libjansson
6 Version:        2.6
7 Release:        1
8 License:        GPL
9 Group:          Libraries
10 Source0:        http://www.digip.org/jansson/releases/%{realname}-%{version}.tar.bz2
11 # Source0-md5:  c70a52488db623a26f7213c7c6b7c878
12 URL:            http://www.digip.org/jansson/
13 #BuildRequires: -
14 #Requires:      -
15 BuildRoot:      %{tmpdir}/%{realname}-%{version}-root-%(id -u -n)
16
17 %description
18 Jansson is a C library for encoding, decoding and manipulating JSON 
19 data.
20
21 %description -l pl.UTF-8
22
23 %package devel
24 Summary:        Header files for %{name} library
25 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki %{name}
26 Group:          Development/Libraries
27 Requires:       %{name} = %{version}-%{release}
28
29 %description devel
30 Header files for %{name} library.
31
32 %description devel -l pl.UTF-8
33 Pliki nagłówkowe biblioteki %{name}.
34
35 %prep
36 %setup -q -n %{realname}-%{version}
37
38 %build
39 %{__libtoolize}
40 %{__aclocal}
41 %{__autoconf}
42 %{__automake}
43 %configure \
44         --disable-static
45 %{__make}
46
47 %install
48 rm -rf $RPM_BUILD_ROOT
49
50 %{__make} install \
51         DESTDIR=$RPM_BUILD_ROOT
52
53 %clean
54 rm -rf $RPM_BUILD_ROOT
55
56 %post   -p /sbin/ldconfig
57 %postun -p /sbin/ldconfig
58
59 %files
60 %defattr(644,root,root,755)
61 %attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
62 %attr(755,root,root) %ghost %{_libdir}/%{name}.so.?
63
64 %files devel
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_libdir}/%{name}.so
67 %{_includedir}/%{realname}.h
68 %{_includedir}/%{realname}_config.h
69 %{_pkgconfigdir}/%{realname}.pc