a4867df1637dc4acc7bdaf5a45f01acce2923679
[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:    LGPLv2.1
9 Source0:    %{name}-%{version}.tar.gz
10 Requires(post): /sbin/ldconfig
11 Requires(postun): /sbin/ldconfig
12 BuildRequires:  pkgconfig(gobject-2.0)
13 BuildRequires:  pkgconfig(gnutls)
14
15
16 %description
17 an json-glib api library implementation in C (shared libs)
18
19
20
21 %package devel
22 Summary:    Development components for the json-glib package
23 Group:      Development/Libraries
24 Requires:   %{name} = %{version}-%{release}
25
26 %description devel
27 Components for the json-glib package (devel)
28
29 %package docs
30 Summary:    Documentation components for the json-glib package
31 Group:      Documentation
32 Requires:   %{name} = %{version}-%{release}
33
34 %description docs
35 Components for the json-glib package (doc)
36
37
38 %prep
39 %setup -q -n %{name}-%{version}
40
41
42 %build
43
44 %reconfigure --disable-static
45 make %{?jobs:-j%jobs}
46
47 %install
48 rm -rf %{buildroot}
49 %make_install
50
51 %post -p /sbin/ldconfig
52
53 %postun -p /sbin/ldconfig
54
55
56 %files
57 %defattr(-,root,root,-)
58 %doc COPYING
59 /usr/lib/libjson-glib-1.0.so.*
60
61
62 %files devel
63 %defattr(-,root,root,-)
64 /usr/include/json-glib-1.0/json-glib/*.h
65 /usr/lib/*.so
66 /usr/lib/pkgconfig/*.pc
67
68 %files docs
69 %defattr(-,root,root,-)
70 %doc /usr/share/gtk-doc/html/json-glib/*
71