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