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