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