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