]>
Commit | Line | Data |
---|---|---|
232ea397 | 1 | Summary: JSON-GLib - a library providing serialization and deserialization support for the JSON format |
2292f43f | 2 | Summary(pl.UTF-8): JSON-GLib - biblioteka zapewniająca serializację i deserializację dla formatu JSON |
93e3e800 | 3 | Name: json-glib |
73bf8d04 | 4 | Version: 1.0.4 |
8210c6f7 | 5 | Release: 2 |
2292f43f JB |
6 | License: LGPL v2.1+ |
7 | Group: Libraries | |
030fd708 | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/json-glib/1.0/%{name}-%{version}.tar.xz |
73bf8d04 | 9 | # Source0-md5: 3131b0417ecde3da1ae72acceaa375cf |
232ea397 | 10 | URL: http://live.gnome.org/JsonGlib |
0c5e9bdf MB |
11 | BuildRequires: autoconf >= 2.63 |
12 | BuildRequires: automake >= 1:1.11 | |
06d32e47 | 13 | BuildRequires: docbook-dtd412-xml |
70529b14 | 14 | BuildRequires: gettext-tools >= 0.18 |
030fd708 | 15 | BuildRequires: glib2-devel >= 1:2.37.6 |
4804e6a2 | 16 | BuildRequires: gobject-introspection-devel >= 0.9.5 |
030fd708 | 17 | BuildRequires: gtk-doc >= 1.20 |
2292f43f | 18 | BuildRequires: libtool >= 2:2.2.6 |
06d32e47 | 19 | BuildRequires: pkgconfig |
030fd708 | 20 | Requires: glib2 >= 1:2.37.6 |
93e3e800 PZ |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
232ea397 PZ |
24 | JSON-GLib is a library providing serialization and deserialization |
25 | support for the JavaScript Object Notation (JSON) format described by | |
26 | RFC 4627. | |
93e3e800 | 27 | |
2292f43f JB |
28 | %description -l pl.UTF-8 |
29 | JSON-GLib to biblioteka zapewniająca obsługę serializacji i | |
30 | deserializacji dla formatu JSON (JavaScript Object Notation) opisanego | |
31 | w RFC 4627. | |
32 | ||
93e3e800 PZ |
33 | %package devel |
34 | Summary: Header files for the json-glib library | |
2292f43f | 35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki json-glib |
93e3e800 PZ |
36 | Group: Development/Libraries |
37 | Requires: %{name} = %{version}-%{release} | |
030fd708 | 38 | Requires: glib2-devel >= 1:2.37.6 |
93e3e800 PZ |
39 | |
40 | %description devel | |
41 | Header files for the json-glib library. | |
42 | ||
2292f43f JB |
43 | %description devel -l pl.UTF-8 |
44 | Pliki nagłówkowe biblioteki json-glib. | |
45 | ||
93e3e800 PZ |
46 | %package apidocs |
47 | Summary: json-glib API documentation | |
2292f43f | 48 | Summary(pl.UTF-8): Dokumentacja API json-glib |
93e3e800 PZ |
49 | Group: Documentation |
50 | Requires: gtk-doc-common | |
8210c6f7 ER |
51 | %if "%{_rpmversion}" >= "5" |
52 | BuildArch: noarch | |
53 | %endif | |
93e3e800 PZ |
54 | |
55 | %description apidocs | |
56 | json-glib API documentation. | |
57 | ||
2292f43f JB |
58 | %description apidocs -l pl.UTF-8 |
59 | Dokumentacja API json-glib. | |
60 | ||
93e3e800 PZ |
61 | %prep |
62 | %setup -q | |
63 | ||
64 | %build | |
65 | %{__gtkdocize} | |
66 | %{__libtoolize} | |
715ad0b8 | 67 | %{__aclocal} -I build/autotools |
93e3e800 PZ |
68 | %{__autoheader} |
69 | %{__autoconf} | |
70 | %{__automake} | |
71 | %configure \ | |
c1fe35a0 | 72 | --enable-gtk-doc \ |
4fb3a8cd MB |
73 | --with-html-dir=%{_gtkdocdir} \ |
74 | --disable-silent-rules | |
93e3e800 PZ |
75 | %{__make} |
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
93e3e800 PZ |
80 | %{__make} install \ |
81 | DESTDIR=$RPM_BUILD_ROOT | |
82 | ||
7b984440 AF |
83 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libjson-glib-1.0.la |
84 | ||
ea35e151 JB |
85 | %find_lang %{name}-1.0 |
86 | ||
93e3e800 PZ |
87 | %clean |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
d43e9703 PZ |
90 | %post -p /sbin/ldconfig |
91 | %postun -p /sbin/ldconfig | |
92 | ||
ea35e151 | 93 | %files -f %{name}-1.0.lang |
93e3e800 | 94 | %defattr(644,root,root,755) |
071d04a9 | 95 | %doc ChangeLog NEWS |
030fd708 ŁK |
96 | %attr(755,root,root) %{_bindir}/json-glib-format |
97 | %attr(755,root,root) %{_bindir}/json-glib-validate | |
93e3e800 PZ |
98 | %attr(755,root,root) %{_libdir}/libjson-glib-1.0.so.*.*.* |
99 | %attr(755,root,root) %ghost %{_libdir}/libjson-glib-1.0.so.0 | |
715ad0b8 | 100 | %{_libdir}/girepository-1.0/Json-1.0.typelib |
030fd708 ŁK |
101 | %{_mandir}/man1/json-glib-format.1* |
102 | %{_mandir}/man1/json-glib-validate.1* | |
93e3e800 PZ |
103 | |
104 | %files devel | |
105 | %defattr(644,root,root,755) | |
106 | %attr(755,root,root) %{_libdir}/libjson-glib-1.0.so | |
715ad0b8 | 107 | %{_datadir}/gir-1.0/Json-1.0.gir |
93e3e800 PZ |
108 | %{_includedir}/json-glib-1.0 |
109 | %{_pkgconfigdir}/json-glib-1.0.pc | |
110 | ||
111 | %files apidocs | |
112 | %defattr(644,root,root,755) | |
113 | %{_gtkdocdir}/json-glib |