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