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