]>
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 |
dec060eb | 4 | Version: 1.6.0 |
87fa5f7e | 5 | Release: 2 |
2292f43f JB |
6 | License: LGPL v2.1+ |
7 | Group: Libraries | |
dec060eb JB |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/json-glib/1.6/%{name}-%{version}.tar.xz |
9 | # Source0-md5: b0046d7de4c0fcbb3c71650527330fa6 | |
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 JB |
20 | BuildRequires: python3 >= 1:3 |
21 | BuildRequires: rpmbuild(macros) >= 1.736 | |
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 | |
dec060eb | 67 | %if "%{_rpmversion}" >= "4.6" |
8210c6f7 ER |
68 | BuildArch: noarch |
69 | %endif | |
93e3e800 PZ |
70 | |
71 | %description apidocs | |
72 | json-glib API documentation. | |
73 | ||
2292f43f JB |
74 | %description apidocs -l pl.UTF-8 |
75 | Dokumentacja API json-glib. | |
76 | ||
93e3e800 PZ |
77 | %prep |
78 | %setup -q | |
79 | ||
80 | %build | |
71553575 | 81 | %meson build \ |
6ad72b93 | 82 | -Dman=true |
913c70eb | 83 | |
dec060eb | 84 | %ninja_build -C build |
93e3e800 PZ |
85 | |
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
dec060eb | 89 | %ninja_install -C build |
93e3e800 | 90 | |
87fa5f7e | 91 | %{__rm} -r $RPM_BUILD_ROOT{%{_libexecdir},%{_datadir}}/installed-tests/json-glib-1.0 |
7b984440 | 92 | |
ea35e151 JB |
93 | %find_lang %{name}-1.0 |
94 | ||
93e3e800 PZ |
95 | %clean |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
d43e9703 PZ |
98 | %post -p /sbin/ldconfig |
99 | %postun -p /sbin/ldconfig | |
100 | ||
ea35e151 | 101 | %files -f %{name}-1.0.lang |
93e3e800 | 102 | %defattr(644,root,root,755) |
71553575 | 103 | %doc NEWS README.md |
030fd708 ŁK |
104 | %attr(755,root,root) %{_bindir}/json-glib-format |
105 | %attr(755,root,root) %{_bindir}/json-glib-validate | |
93e3e800 PZ |
106 | %attr(755,root,root) %{_libdir}/libjson-glib-1.0.so.*.*.* |
107 | %attr(755,root,root) %ghost %{_libdir}/libjson-glib-1.0.so.0 | |
715ad0b8 | 108 | %{_libdir}/girepository-1.0/Json-1.0.typelib |
030fd708 ŁK |
109 | %{_mandir}/man1/json-glib-format.1* |
110 | %{_mandir}/man1/json-glib-validate.1* | |
93e3e800 PZ |
111 | |
112 | %files devel | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_libdir}/libjson-glib-1.0.so | |
715ad0b8 | 115 | %{_datadir}/gir-1.0/Json-1.0.gir |
93e3e800 PZ |
116 | %{_includedir}/json-glib-1.0 |
117 | %{_pkgconfigdir}/json-glib-1.0.pc | |
118 | ||
6ad72b93 JB |
119 | %files static |
120 | %defattr(644,root,root,755) | |
121 | %{_libdir}/libjson-glib-1.0.a | |
122 | ||
93e3e800 PZ |
123 | %files apidocs |
124 | %defattr(644,root,root,755) | |
125 | %{_gtkdocdir}/json-glib |