c8f9e8649fb2baae954b6d735c6a85123f921435
[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:        0.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}/%{name}-%{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
37
38 %build
39 %{__libtoolize}
40 %{__aclocal}
41 %{__autoconf}
42 %{__automake}
43 %configure \
44         --without-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 %files
57 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_libdir}/%{name}.so.*.*.*
59 %attr(755,root,root) %ghost %{_libdir}/%{name}.so.?
60
61 %files devel
62 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_libdir}/%{name}.so
64 %{_includedir}/%{realname}.h
65 %{_includedir}/%{realname}_config.h
66 %{_pkgconfigdir}/%{realname}.pc