]>
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 |
b070f2dc JB |
4 | Version: 1.6.2 |
5 | Release: 1 | |
2292f43f JB |
6 | License: LGPL v2.1+ |
7 | Group: Libraries | |
b070f2dc JB |
8 | Source0: https://download.gnome.org/sources/json-glib/1.6/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 7a981956939e21f78b560ac1ea57f2d7 | |
6ad72b93 | 10 | URL: https://wiki.gnome.org/Projects/JsonGlib |
dec060eb | 11 | BuildRequires: docbook-dtd43-xml |
70529b14 | 12 | BuildRequires: gettext-tools >= 0.18 |
dec060eb | 13 | BuildRequires: glib2-devel >= 1:2.54.0 |
4804e6a2 | 14 | BuildRequires: gobject-introspection-devel >= 0.9.5 |
030fd708 | 15 | BuildRequires: gtk-doc >= 1.20 |
6ad72b93 | 16 | BuildRequires: libxslt-progs |
dec060eb JB |
17 | BuildRequires: meson >= 0.52.0 |
18 | BuildRequires: ninja >= 1.5 | |
06d32e47 | 19 | BuildRequires: pkgconfig |
dec060eb | 20 | BuildRequires: python3 >= 1:3 |
b070f2dc | 21 | BuildRequires: rpmbuild(macros) >= 1.752 |
dec060eb JB |
22 | BuildRequires: tar >= 1:1.22 |
23 | BuildRequires: xz | |
24 | Requires: glib2 >= 1:2.54.0 | |
93e3e800 PZ |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
232ea397 PZ |
28 | JSON-GLib is a library providing serialization and deserialization |
29 | support for the JavaScript Object Notation (JSON) format described by | |
30 | RFC 4627. | |
93e3e800 | 31 | |
2292f43f JB |
32 | %description -l pl.UTF-8 |
33 | JSON-GLib to biblioteka zapewniająca obsługę serializacji i | |
34 | deserializacji dla formatu JSON (JavaScript Object Notation) opisanego | |
35 | w RFC 4627. | |
36 | ||
93e3e800 PZ |
37 | %package devel |
38 | Summary: Header files for the json-glib library | |
2292f43f | 39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki json-glib |
93e3e800 PZ |
40 | Group: Development/Libraries |
41 | Requires: %{name} = %{version}-%{release} | |
dec060eb | 42 | Requires: glib2-devel >= 1:2.54.0 |
93e3e800 PZ |
43 | |
44 | %description devel | |
45 | Header files for the json-glib library. | |
46 | ||
2292f43f JB |
47 | %description devel -l pl.UTF-8 |
48 | Pliki nagłówkowe biblioteki json-glib. | |
49 | ||
6ad72b93 JB |
50 | %package static |
51 | Summary: Static json-glib library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka json-glib | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static json-glib library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka json-glib. | |
61 | ||
93e3e800 PZ |
62 | %package apidocs |
63 | Summary: json-glib API documentation | |
2292f43f | 64 | Summary(pl.UTF-8): Dokumentacja API json-glib |
93e3e800 PZ |
65 | Group: Documentation |
66 | Requires: gtk-doc-common | |
b070f2dc | 67 | %{?noarchpackage} |
93e3e800 PZ |
68 | |
69 | %description apidocs | |
70 | json-glib API documentation. | |
71 | ||
2292f43f JB |
72 | %description apidocs -l pl.UTF-8 |
73 | Dokumentacja API json-glib. | |
74 | ||
93e3e800 PZ |
75 | %prep |
76 | %setup -q | |
77 | ||
78 | %build | |
71553575 | 79 | %meson build \ |
6ad72b93 | 80 | -Dman=true |
913c70eb | 81 | |
dec060eb | 82 | %ninja_build -C build |
93e3e800 PZ |
83 | |
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
dec060eb | 87 | %ninja_install -C build |
93e3e800 | 88 | |
87fa5f7e | 89 | %{__rm} -r $RPM_BUILD_ROOT{%{_libexecdir},%{_datadir}}/installed-tests/json-glib-1.0 |
7b984440 | 90 | |
ea35e151 JB |
91 | %find_lang %{name}-1.0 |
92 | ||
93e3e800 PZ |
93 | %clean |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
d43e9703 PZ |
96 | %post -p /sbin/ldconfig |
97 | %postun -p /sbin/ldconfig | |
98 | ||
ea35e151 | 99 | %files -f %{name}-1.0.lang |
93e3e800 | 100 | %defattr(644,root,root,755) |
71553575 | 101 | %doc NEWS README.md |
030fd708 ŁK |
102 | %attr(755,root,root) %{_bindir}/json-glib-format |
103 | %attr(755,root,root) %{_bindir}/json-glib-validate | |
93e3e800 PZ |
104 | %attr(755,root,root) %{_libdir}/libjson-glib-1.0.so.*.*.* |
105 | %attr(755,root,root) %ghost %{_libdir}/libjson-glib-1.0.so.0 | |
715ad0b8 | 106 | %{_libdir}/girepository-1.0/Json-1.0.typelib |
030fd708 ŁK |
107 | %{_mandir}/man1/json-glib-format.1* |
108 | %{_mandir}/man1/json-glib-validate.1* | |
93e3e800 PZ |
109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %attr(755,root,root) %{_libdir}/libjson-glib-1.0.so | |
715ad0b8 | 113 | %{_datadir}/gir-1.0/Json-1.0.gir |
93e3e800 PZ |
114 | %{_includedir}/json-glib-1.0 |
115 | %{_pkgconfigdir}/json-glib-1.0.pc | |
116 | ||
6ad72b93 JB |
117 | %files static |
118 | %defattr(644,root,root,755) | |
119 | %{_libdir}/libjson-glib-1.0.a | |
120 | ||
93e3e800 PZ |
121 | %files apidocs |
122 | %defattr(644,root,root,755) | |
123 | %{_gtkdocdir}/json-glib |