]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | %bcond_without static_libs # static library | |
5 | %bcond_without selinux # SELinux support in gio | |
6 | %bcond_without systemtap # systemtap/dtrace probes | |
7 | ||
8 | %include /usr/lib/rpm/macros.perl | |
9 | Summary: Useful routines for 'C' programming | |
10 | Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy | |
11 | Summary(da.UTF-8): Nyttige biblioteksfunktioner | |
12 | Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen | |
13 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias | |
14 | Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita | |
15 | Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires | |
16 | Summary(ja.UTF-8): 便利なユーティリティ関数のライブラリ | |
17 | Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C | |
18 | Summary(pt_BR.UTF-8): Conjunto de funções gráficas utilitárias | |
19 | Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı | |
20 | Summary(zh_CN.UTF-8): 实用工具函数库 | |
21 | Name: glib2 | |
22 | Version: 2.62.0 | |
23 | Release: 1 | |
24 | Epoch: 1 | |
25 | License: LGPL v2+ | |
26 | Group: Libraries | |
27 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.62/glib-%{version}.tar.xz | |
28 | # Source0-md5: a5d34752dd3a6c8d929ade7debc4db03 | |
29 | URL: http://www.gtk.org/ | |
30 | BuildRequires: docbook-dtd412-xml | |
31 | BuildRequires: docbook-dtd45-xml | |
32 | BuildRequires: docbook-style-xsl-nons | |
33 | BuildRequires: elfutils-devel | |
34 | BuildRequires: fam-devel | |
35 | BuildRequires: gettext-tools | |
36 | %if %(locale -a | grep -q '^C\.utf8$'; echo $?) | |
37 | BuildRequires: glibc-localedb-all | |
38 | %endif | |
39 | %if %{with apidocs} | |
40 | BuildRequires: gtk-doc >= 1.20 | |
41 | BuildRequires: gtk-doc-automake >= 1.20 | |
42 | %endif | |
43 | BuildRequires: libffi-devel >= 3.0.0 | |
44 | BuildRequires: libmount-devel >= 2.28 | |
45 | %{?with_selinux:BuildRequires: libselinux-devel} | |
46 | BuildRequires: meson >= 0.49.2 | |
47 | BuildRequires: ninja | |
48 | BuildRequires: pcre-devel >= 8.31 | |
49 | BuildRequires: perl-base | |
50 | BuildRequires: pkgconfig >= 1:0.16 | |
51 | # in case of separate libelf (elfutils don't provide .pc file) | |
52 | #BuildRequires: pkgconfig(libelf) >= 0.8.12 | |
53 | BuildRequires: pkgconfig(libffi) >= 3.0.0 | |
54 | BuildRequires: python3 >= 1:3.4 | |
55 | BuildRequires: rpm-perlprov | |
56 | BuildRequires: rpm-pythonprov | |
57 | BuildRequires: rpmbuild(macros) >= 1.736 | |
58 | BuildRequires: sed >= 4.0 | |
59 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} | |
60 | BuildRequires: tar >= 1:1.22 | |
61 | BuildRequires: xz | |
62 | BuildRequires: zlib-devel | |
63 | Requires: iconv | |
64 | Requires: libmount >= 2.28 | |
65 | Requires: pcre >= 8.31 | |
66 | Suggests: gvfs | |
67 | Provides: glib2-libs | |
68 | Obsoletes: glib2-libs | |
69 | # see https://bugzilla.xfce.org/show_bug.cgi?id=9709 | |
70 | Conflicts: xfce4-session < 4.10.0-5 | |
71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
72 | ||
73 | %description | |
74 | GLib, is a library which includes support routines for C such as | |
75 | lists, trees, hashes, memory allocation, and many other things. GLib | |
76 | includes also generally useful data structures used by GIMP and many | |
77 | other. | |
78 | ||
79 | %description -l cs.UTF-8 | |
80 | Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a | |
81 | hlavičky jsou v balíčku glib-devel. | |
82 | ||
83 | %description -l da.UTF-8 | |
84 | Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker | |
85 | og headerfiler er i glib-devel pakken. | |
86 | ||
87 | %description -l de.UTF-8 | |
88 | Eine nützliche Library von Dienstprogramm-Funktionen. | |
89 | Entwicklungs-Libraries und Header befinden sich in glib-devel. | |
90 | ||
91 | %description -l es.UTF-8 | |
92 | Conjunto de funciones utilitarias. Bibliotecas de desarrollo y | |
93 | archivos de inclusión están en glib-devel. | |
94 | ||
95 | %description -l fi.UTF-8 | |
96 | Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja | |
97 | header-tiedostot ovat glib-devel-paketissa. | |
98 | ||
99 | %description -l ja.UTF-8 | |
100 | GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、 | |
101 | いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい 関数を提供します。 | |
102 | ||
103 | GLibはGDK, GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション | |
104 | 等のためにこのglibパッケージをインストールしてください。 | |
105 | ||
106 | %description -l pl.UTF-8 | |
107 | GLib jest zestawem bibliotek zawierających funkcje do obsługi list i | |
108 | drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych | |
109 | podstawowych funkcji i różnych struktur danych używanych przez program | |
110 | GIMP i wiele innych. | |
111 | ||
112 | %description -l pt_BR.UTF-8 | |
113 | Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e | |
114 | arquivos de inclusão estão em glib-devel. | |
115 | ||
116 | %description -l tr.UTF-8 | |
117 | Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık | |
118 | dosyaları glib-devel paketinde yer almaktadır. | |
119 | ||
120 | %package devel | |
121 | Summary: GLib heades files, documentation | |
122 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo | |
123 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GLib | |
124 | Summary(pt_BR.UTF-8): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP | |
125 | Group: Development/Libraries | |
126 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
127 | Requires: libffi-devel >= 3.0.0 | |
128 | Requires: libmount-devel >= 2.28 | |
129 | Requires: pcre-devel >= 8.31 | |
130 | Requires: python3-modules | |
131 | # gio only | |
132 | %{?with_selinux:Requires: libselinux-devel} | |
133 | Requires: zlib-devel | |
134 | ||
135 | %description devel | |
136 | Header files for the support library for the GIMP's X libraries, which | |
137 | are available as public libraries. GLib includes generally useful data | |
138 | structures. | |
139 | ||
140 | %description devel -l es.UTF-8 | |
141 | Conjunto de funciones gráficas utilitarias para desarrollo. | |
142 | ||
143 | %description devel -l ja.UTF-8 | |
144 | glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群 | |
145 | (GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが 含まれています。 | |
146 | ||
147 | もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト ールしてください。 | |
148 | ||
149 | %description devel -l pl.UTF-8 | |
150 | Pliki nagłówkowe i dokumentacja do GLib przydatna przy pisaniu | |
151 | programów wykorzystujących tę bibliotekę. | |
152 | ||
153 | %description devel -l pt_BR.UTF-8 | |
154 | Bibliotecas e arquivos de inclusão para a biblioteca de suporte para | |
155 | as bibliotecas X do GIMP, que são disponíveis como bibliotecas | |
156 | públicas. A GLib inclui estruturas de dados genéricas úteis. | |
157 | ||
158 | %package static | |
159 | Summary: Static GLib libraries | |
160 | Summary(pl.UTF-8): Biblioteki statyczne GLib | |
161 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com GLib | |
162 | Group: Development/Libraries | |
163 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
164 | ||
165 | %description static | |
166 | Static GLib libraries. | |
167 | ||
168 | %description static -l pl.UTF-8 | |
169 | Biblioteki statyczne GLib. | |
170 | ||
171 | %description static -l pt_BR.UTF-8 | |
172 | Bibliotecas estáticas para desenvolvimento com GLib. | |
173 | ||
174 | %package apidocs | |
175 | Summary: GLib API documetation | |
176 | Summary(pl.UTF-8): Dokumentacja API GLib | |
177 | Group: Documentation | |
178 | Requires: gtk-doc-common | |
179 | %if "%{_rpmversion}" >= "5" | |
180 | BuildArch: noarch | |
181 | %endif | |
182 | ||
183 | %description apidocs | |
184 | GLib API documetation. | |
185 | ||
186 | %description apidocs -l pl.UTF-8 | |
187 | Dokumentacja API GLib. | |
188 | ||
189 | %package gdb | |
190 | Summary: GDB Python pretty printers for GObject/GLib types | |
191 | Summary(pl.UTF-8): Skrypty Pythona dla GDB do ładnego wypisywania typów GObject/GLib | |
192 | Group: Development/Debuggers | |
193 | Requires: gdb | |
194 | ||
195 | %description gdb | |
196 | GDB Python pretty printers for GObject/GLib types. This includes | |
197 | support for GObject pointer pretty printing and signal frame | |
198 | compression in backtraces. | |
199 | ||
200 | %description gdb -l pl.UTF-8 | |
201 | Skrypty Pythona dla GDB do ładnego wypisywania typów GObject/GLib. | |
202 | Obejmują także ładne wypisywanie wskaźników GObject oraz kompresję | |
203 | ramek sygnagłów w zrzutach wywołań (backtrace). | |
204 | ||
205 | %package -n bash-completion-gio | |
206 | Summary: bash-completion for gio utilities | |
207 | Summary(pl.UTF-8): Bashowe uzupełnianie nazw dla narzędzi gio | |
208 | Group: Applications/Shells | |
209 | Requires: bash-completion >= 2.0 | |
210 | Obsoletes: bash-completion-gdbus | |
211 | %if "%{_rpmversion}" >= "5" | |
212 | BuildArch: noarch | |
213 | %endif | |
214 | ||
215 | %description -n bash-completion-gio | |
216 | bash-completion for gio utilities: gdbus and gsettings. | |
217 | ||
218 | %description -n bash-completion-gio -l pl.UTF-8 | |
219 | Bashowe uzupełnianie nazw dla narzędzi gio: gdbus i gsettings. | |
220 | ||
221 | %package -n systemtap-glib2 | |
222 | Summary: systemtap/dtrace probes for GLib 2 | |
223 | Summary(pl.UTF-8): Sondy systemtap/dtrace dla GLib 2 | |
224 | Group: Development/Tools | |
225 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
226 | Requires: systemtap-client | |
227 | ||
228 | %description -n systemtap-glib2 | |
229 | systemtap/dtrace probes for GLib 2. | |
230 | ||
231 | %description -n systemtap-glib2 -l pl.UTF-8 | |
232 | Sondy systemtap/dtrace dla GLib 2. | |
233 | ||
234 | %prep | |
235 | %setup -q -n glib-%{version} | |
236 | ||
237 | %build | |
238 | %meson build \ | |
239 | %{?debug:--debug} \ | |
240 | -Ddtrace=%{__true_false systemtap} \ | |
241 | -Dsystemtap=%{__true_false systemtap} \ | |
242 | %ifarch %{ix86} | |
243 | %{?with_systemtap:-Dtapset_install_dir=%{_datadir}/systemtap/tapset/i386} \ | |
244 | %endif | |
245 | -Dfam=true \ | |
246 | -Dgtk_doc=%{__true_false apidocs} \ | |
247 | -Dselinux=%{?with_selinux:enabled}%{!?with_selinux:disabled} \ | |
248 | -Dman=true \ | |
249 | -Dinternal_pcre=false | |
250 | ||
251 | %ninja_build -C build | |
252 | ||
253 | %install | |
254 | rm -rf $RPM_BUILD_ROOT | |
255 | ||
256 | %ninja_install -C build | |
257 | ||
258 | > $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache | |
259 | > $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/gschemas.compiled | |
260 | ||
261 | %py_comp $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb | |
262 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb | |
263 | %py_postclean $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb | |
264 | ||
265 | # adjust for compatibility with names supported by glibc | |
266 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} | |
267 | ||
268 | %find_lang glib20 | |
269 | ||
270 | %clean | |
271 | rm -rf $RPM_BUILD_ROOT | |
272 | ||
273 | %post | |
274 | /sbin/ldconfig | |
275 | ||
276 | umask 022 | |
277 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : | |
278 | ||
279 | %postun -p /sbin/ldconfig | |
280 | ||
281 | %files -f glib20.lang | |
282 | %defattr(644,root,root,755) | |
283 | %doc AUTHORS README NEWS | |
284 | %attr(755,root,root) %{_bindir}/gapplication | |
285 | %attr(755,root,root) %{_bindir}/gdbus | |
286 | %attr(755,root,root) %{_bindir}/gio | |
287 | %attr(755,root,root) %{_bindir}/gio-launch-desktop | |
288 | %attr(755,root,root) %{_bindir}/gio-querymodules | |
289 | %attr(755,root,root) %{_bindir}/glib-compile-schemas | |
290 | %attr(755,root,root) %{_bindir}/gsettings | |
291 | %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.* | |
292 | %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0 | |
293 | %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.* | |
294 | %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0 | |
295 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.* | |
296 | %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0 | |
297 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.* | |
298 | %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0 | |
299 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.* | |
300 | %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0 | |
301 | %dir %{_libdir}/gio | |
302 | %dir %{_libdir}/gio/modules | |
303 | %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so | |
304 | %ghost %{_libdir}/gio/modules/giomodule.cache | |
305 | %dir %{_datadir}/glib-2.0 | |
306 | %dir %{_datadir}/glib-2.0/schemas | |
307 | %ghost %{_datadir}/glib-2.0/schemas/gschemas.compiled | |
308 | %if %{with apidocs} | |
309 | %{_mandir}/man1/gapplication.1* | |
310 | %{_mandir}/man1/gdbus.1* | |
311 | %{_mandir}/man1/gio.1* | |
312 | %{_mandir}/man1/gio-querymodules.1* | |
313 | %{_mandir}/man1/glib-compile-schemas.1* | |
314 | %{_mandir}/man1/gsettings.1* | |
315 | %endif | |
316 | ||
317 | %files devel | |
318 | %defattr(644,root,root,755) | |
319 | %attr(755,root,root) %{_bindir}/gdbus-codegen | |
320 | %attr(755,root,root) %{_bindir}/glib-compile-resources | |
321 | %attr(755,root,root) %{_bindir}/glib-genmarshal | |
322 | %attr(755,root,root) %{_bindir}/glib-gettextize | |
323 | %attr(755,root,root) %{_bindir}/glib-mkenums | |
324 | %attr(755,root,root) %{_bindir}/gobject-query | |
325 | %attr(755,root,root) %{_bindir}/gresource | |
326 | %attr(755,root,root) %{_bindir}/gtester | |
327 | %attr(755,root,root) %{_bindir}/gtester-report | |
328 | %attr(755,root,root) %{_libdir}/libgio-2.0.so | |
329 | %attr(755,root,root) %{_libdir}/libglib-2.0.so | |
330 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so | |
331 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so | |
332 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so | |
333 | %{_libdir}/glib-2.0 | |
334 | %{_includedir}/gio-unix-2.0 | |
335 | %{_includedir}/glib-2.0 | |
336 | %dir %{_datadir}/glib-2.0/codegen | |
337 | %{_datadir}/glib-2.0/codegen/*.py* | |
338 | %dir %{_datadir}/glib-2.0/gettext | |
339 | %{_datadir}/glib-2.0/gettext/po | |
340 | %{_datadir}/glib-2.0/schemas/gschema.dtd | |
341 | %{_datadir}/glib-2.0/valgrind | |
342 | %{_datadir}/gettext/its/gschema.its | |
343 | %{_datadir}/gettext/its/gschema.loc | |
344 | %{_pkgconfigdir}/gio-2.0.pc | |
345 | %{_pkgconfigdir}/gio-unix-2.0.pc | |
346 | %{_pkgconfigdir}/glib-2.0.pc | |
347 | %{_pkgconfigdir}/gmodule-2.0.pc | |
348 | %{_pkgconfigdir}/gmodule-export-2.0.pc | |
349 | %{_pkgconfigdir}/gmodule-no-export-2.0.pc | |
350 | %{_pkgconfigdir}/gobject-2.0.pc | |
351 | %{_pkgconfigdir}/gthread-2.0.pc | |
352 | %{_aclocaldir}/glib-2.0.m4 | |
353 | %{_aclocaldir}/glib-gettext.m4 | |
354 | %{_aclocaldir}/gsettings.m4 | |
355 | %if %{with apidocs} | |
356 | %{_mandir}/man1/gdbus-codegen.1* | |
357 | %{_mandir}/man1/glib-compile-resources.1* | |
358 | %{_mandir}/man1/glib-genmarshal.1* | |
359 | %{_mandir}/man1/glib-gettextize.1* | |
360 | %{_mandir}/man1/glib-mkenums.1* | |
361 | %{_mandir}/man1/gobject-query.1* | |
362 | %{_mandir}/man1/gresource.1* | |
363 | %{_mandir}/man1/gtester-report.1* | |
364 | %{_mandir}/man1/gtester.1* | |
365 | %endif | |
366 | ||
367 | %if %{with static_libs} | |
368 | %files static | |
369 | %defattr(644,root,root,755) | |
370 | %{_libdir}/libgio-2.0.a | |
371 | %{_libdir}/libglib-2.0.a | |
372 | %{_libdir}/libgmodule-2.0.a | |
373 | %{_libdir}/libgobject-2.0.a | |
374 | %{_libdir}/libgthread-2.0.a | |
375 | %endif | |
376 | ||
377 | %if %{with apidocs} | |
378 | %files apidocs | |
379 | %defattr(644,root,root,755) | |
380 | %{_gtkdocdir}/gio | |
381 | %{_gtkdocdir}/glib | |
382 | %{_gtkdocdir}/gobject | |
383 | %endif | |
384 | ||
385 | %files gdb | |
386 | %defattr(644,root,root,755) | |
387 | %{_datadir}/gdb/auto-load/usr/%{_lib}/libglib-2.0.so.*.*.*-gdb.py | |
388 | %{_datadir}/gdb/auto-load/usr/%{_lib}/libgobject-2.0.so.*.*.*-gdb.py | |
389 | %{_datadir}/glib-2.0/gdb | |
390 | ||
391 | %files -n bash-completion-gio | |
392 | %defattr(644,root,root,755) | |
393 | %{_datadir}/bash-completion/completions/gapplication | |
394 | %{_datadir}/bash-completion/completions/gdbus | |
395 | %{_datadir}/bash-completion/completions/gio | |
396 | %{_datadir}/bash-completion/completions/gresource | |
397 | %{_datadir}/bash-completion/completions/gsettings | |
398 | ||
399 | %if %{with systemtap} | |
400 | %files -n systemtap-glib2 | |
401 | %defattr(644,root,root,755) | |
402 | %{_datadir}/systemtap/tapset/*/libgio-2.0*.stp | |
403 | %{_datadir}/systemtap/tapset/*/libglib-2.0*.stp | |
404 | %{_datadir}/systemtap/tapset/*/libgobject-2.0*.stp | |
405 | %endif |