tizen 2.3.1 release
[external/libjson-glib.git] / packaging / json-glib.spec
1 #sbs-git:slp/pkgs/l/libjson-glib json-glib 0.0.1 982a2ec62fdaecef7bf0d791b9b7be16d398d70b
2
3 Name:             json-glib
4 Summary:          JSON Parser for GLib
5 Version:          0.0.1
6 Release:          1
7 Group:            System/Libraries
8 License:          LGPL-2.1+
9 Source0:          %{name}-%{version}.tar.gz
10 Patch0:           support_surrogate_pairs_in_json_string.patch
11 Requires(post):   /sbin/ldconfig
12 Requires(postun): /sbin/ldconfig
13 BuildRequires:    pkgconfig(gobject-2.0)
14 BuildRequires:    pkgconfig(gnutls)
15
16
17 %description
18 an json-glib api library implementation in C (shared libs)
19
20
21
22 %package devel
23 Summary:    Development components for the json-glib package
24 Group:      Development/Libraries
25 Requires:   %{name} = %{version}-%{release}
26
27 %description devel
28 Components for the json-glib package (devel)
29
30 %package docs
31 Summary:    Documentation components for the json-glib package
32 Group:      Documentation
33 Requires:   %{name} = %{version}-%{release}
34
35 %description docs
36 Components for the json-glib package (doc)
37
38
39 %prep
40 %setup -q -n %{name}-%{version}
41
42 %patch0 -p1 -b .support_surrogate_pairs
43
44 %build
45
46 %reconfigure --disable-static
47 make %{?jobs:-j%jobs}
48
49 %install
50
51 mkdir -p %{buildroot}/usr/share/license
52 cp COPYING %{buildroot}/usr/share/license/json-glib
53 #rm -rf %{buildroot}
54 %make_install
55
56 %post -p /sbin/ldconfig
57
58 %postun -p /sbin/ldconfig
59
60
61 %files
62 %defattr(-,root,root,-)
63 %doc COPYING
64 /usr/lib/libjson-glib-1.0.so.*
65 /usr/share/license/json-glib
66
67 %files devel
68 %defattr(-,root,root,-)
69 /usr/include/json-glib-1.0/json-glib/*.h
70 /usr/lib/*.so
71 /usr/lib/pkgconfig/*.pc
72
73 %files docs
74 %defattr(-,root,root,-)
75 %doc /usr/share/gtk-doc/html/json-glib/*
76