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