]> git.pld-linux.org Git - packages/glib2.git/blame - glib2.spec
Merge branch 'master' of git://git.pld-linux.org/packages/glib2
[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
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
02681579 21Version: 2.36.1
b5c2da0c 22Release: 1
f4f2082a 23Epoch: 1
d9eae184 24License: LGPL v2+
c5cd89bd 25Group: Libraries
b5c2da0c 26Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.36/glib-%{version}.tar.xz
02681579 27# Source0-md5: a3bbee44a13facb5a3cab18be5ece14c
0a6ddb4c 28Patch0: %{name}-makefile.patch
c5cd89bd 29URL: http://www.gtk.org/
72809582 30BuildRequires: autoconf >= 2.62
5028631e 31BuildRequires: automake >= 1:1.11
f562fe91 32BuildRequires: docbook-dtd412-xml
33BuildRequires: docbook-style-xsl
e2cf3c6c 34BuildRequires: elfutils-devel
a449f59a 35BuildRequires: fam-devel
d0edc3ae 36BuildRequires: gettext-devel
5911fe6b
ŁK
37%if %{with apidocs}
38BuildRequires: gtk-doc >= 1.17
39BuildRequires: gtk-doc-automake >= 1.17
40%endif
5028631e 41BuildRequires: libffi-devel >= 3.0.0
2f90d369 42%{?with_selinux:BuildRequires: libselinux-devel}
72809582 43BuildRequires: libtool >= 2:2.2
5911fe6b 44BuildRequires: pcre-devel >= 8.13
f562fe91 45BuildRequires: perl-base
b6bcc451 46BuildRequires: pkgconfig >= 1:0.16
c845492c
JB
47# advised
48#BuildRequires: pkgconfig(libelf) >= 0.8.12
b50dbf74 49BuildRequires: pkgconfig(libffi) >= 3.0.0
c917bd19 50BuildRequires: python >= 1:2.5
2cc1a497 51BuildRequires: rpm-perlprov
8c69dce2 52BuildRequires: rpm-pythonprov
4099c72b 53BuildRequires: rpmbuild(macros) >= 1.527
f9f8e5ca 54BuildRequires: sed >= 4.0
5028631e
AF
55BuildRequires: tar >= 1:1.22
56BuildRequires: xz
f9f8e5ca 57BuildRequires: zlib-devel
c47711ba 58Requires: iconv
5911fe6b 59Requires: pcre >= 8.13
d0d10187 60Suggests: gvfs
81df0f8b 61Provides: glib2-libs
43f3147b 62Obsoletes: glib2-libs
424a3c22
ER
63# sr@Latn vs. sr@latin
64Conflicts: glibc-misc < 6:2.7
c5cd89bd
AF
65BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
66
c5cd89bd
AF
67%description
68GLib, is a library which includes support routines for C such as
045fa5ec 69lists, trees, hashes, memory allocation, and many other things. GLib
c5cd89bd
AF
70includes also generally useful data structures used by GIMP and many
71other.
72
1ccef3e3
JR
73%description -l cs.UTF-8
74Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a
75hlavičky jsou v balíčku glib-devel.
c5cd89bd 76
1ccef3e3 77%description -l da.UTF-8
c5cd89bd
AF
78Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker
79og headerfiler er i glib-devel pakken.
80
1ccef3e3
JR
81%description -l de.UTF-8
82Eine nützliche Library von Dienstprogramm-Funktionen.
c5cd89bd
AF
83Entwicklungs-Libraries und Header befinden sich in glib-devel.
84
1ccef3e3 85%description -l es.UTF-8
fac1fbe3 86Conjunto de funciones utilitarias. Bibliotecas de desarrollo y
1ccef3e3 87archivos de inclusión están en glib-devel.
fac1fbe3 88
1ccef3e3
JR
89%description -l fi.UTF-8
90Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja
b19705b9 91header-tiedostot ovat glib-devel-paketissa.
c5cd89bd 92
1ccef3e3
JR
93%description -l ja.UTF-8
94GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、
75195290 95いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい 関数を提供します。
fac1fbe3 96
75195290 97GLibはGDK, GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション
1ccef3e3 98等のためにこのglibパッケージをインストールしてください。
fac1fbe3 99
1ccef3e3 100%description -l pl.UTF-8
045fa5ec 101GLib jest zestawem bibliotek zawierających funkcje do obsługi list i
1ccef3e3
JR
102drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych
103podstawowych funkcji i różnych struktur danych używanych przez program
fac1fbe3 104GIMP i wiele innych.
105
1ccef3e3
JR
106%description -l pt_BR.UTF-8
107Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e
108arquivos de inclusão estão em glib-devel.
c5cd89bd 109
1ccef3e3
JR
110%description -l tr.UTF-8
111Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık
112dosyaları glib-devel paketinde yer almaktadır.
c5cd89bd
AF
113
114%package devel
045fa5ec 115Summary: GLib heades files, documentation
d62bd2ce 116Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo
045fa5ec 117Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GLib
d62bd2ce 118Summary(pt_BR.UTF-8): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP
c5cd89bd 119Group: Development/Libraries
4d5d23a0 120Requires: %{name} = %{epoch}:%{version}-%{release}
5911fe6b 121Requires: pcre-devel >= 8.13
f16b8cb0
JB
122# gio only
123%{?with_selinux:Requires: libselinux-devel}
5c35f474 124Requires: zlib-devel
c5cd89bd
AF
125
126%description devel
127Header files for the support library for the GIMP's X libraries, which
045fa5ec 128are available as public libraries. GLib includes generally useful data
c5cd89bd
AF
129structures.
130
1ccef3e3
JR
131%description devel -l es.UTF-8
132Conjunto de funciones gráficas utilitarias para desarrollo.
fac1fbe3 133
1ccef3e3
JR
134%description devel -l ja.UTF-8
135glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群
75195290 136(GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが 含まれています。
fac1fbe3 137
75195290 138もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト ールしてください。
fac1fbe3 139
1ccef3e3 140%description devel -l pl.UTF-8
045fa5ec 141Pliki nagłówkowe i dokumentacja do GLib przydatna przy pisaniu
1ccef3e3 142programów wykorzystujących tę bibliotekę.
c5cd89bd 143
1ccef3e3
JR
144%description devel -l pt_BR.UTF-8
145Bibliotecas e arquivos de inclusão para a biblioteca de suporte para
146as bibliotecas X do GIMP, que são disponíveis como bibliotecas
045fa5ec 147públicas. A GLib inclui estruturas de dados genéricas úteis.
fac1fbe3 148
c5cd89bd 149%package static
045fa5ec
MB
150Summary: Static GLib libraries
151Summary(pl.UTF-8): Biblioteki statyczne GLib
152Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com GLib
c5cd89bd 153Group: Development/Libraries
e9536dab 154Requires: %{name}-devel = %{epoch}:%{version}-%{release}
c5cd89bd
AF
155
156%description static
045fa5ec 157Static GLib libraries.
c5cd89bd 158
1ccef3e3 159%description static -l pl.UTF-8
045fa5ec 160Biblioteki statyczne GLib.
c5cd89bd 161
1ccef3e3 162%description static -l pt_BR.UTF-8
045fa5ec 163Bibliotecas estáticas para desenvolvimento com GLib.
fac1fbe3 164
9fd4432e 165%package apidocs
045fa5ec
MB
166Summary: GLib API documetation
167Summary(pl.UTF-8): Dokumentacja API GLib
9fd4432e
JB
168Group: Documentation
169Requires: gtk-doc-common
170
171%description apidocs
045fa5ec 172GLib API documetation.
9fd4432e 173
1ccef3e3 174%description apidocs -l pl.UTF-8
045fa5ec 175Dokumentacja API GLib.
9fd4432e 176
b6bcc451
JB
177%package gdb
178Summary: GDB Python pretty printers for GObject/GLib types
179Summary(pl.UTF-8): Skrypty Pythona dla GDB do ładnego wypisywania typów GObject/GLib
180Group: Development/Debuggers
8b3d5b05 181Requires: gdb
b6bcc451
JB
182
183%description gdb
184GDB Python pretty printers for GObject/GLib types. This includes
185support for GObject pointer pretty printing and signal frame
186compression in backtraces.
187
188%description gdb -l pl.UTF-8
189Skrypty Pythona dla GDB do ładnego wypisywania typów GObject/GLib.
190Obejmują także ładne wypisywanie wskaźników GObject oraz kompresję
191ramek sygnagłów w zrzutach wywołań (backtrace).
192
f9d9fd77
JB
193%package -n bash-completion-gio
194Summary: bash-completion for gio utilities
195Summary(pl.UTF-8): Bashowe uzupełnianie nazw dla narzędzi gio
7966f809 196Group: Applications/Shells
5911fe6b 197Requires: bash-completion >= 2.0
f9d9fd77 198Obsoletes: bash-completion-gdbus
7966f809 199
f9d9fd77
JB
200%description -n bash-completion-gio
201bash-completion for gio utilities: gdbus and gsettings.
7966f809 202
f9d9fd77
JB
203%description -n bash-completion-gio -l pl.UTF-8
204Bashowe uzupełnianie nazw dla narzędzi gio: gdbus i gsettings.
7966f809 205
c5cd89bd 206%prep
9c7ef8c6 207%setup -q -n glib-%{version}
f29ca197 208%patch0 -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
f9d9fd77
JB
316%{_libdir}/glib-2.0
317%{_includedir}/gio-unix-2.0
318%{_includedir}/glib-2.0
b5c2da0c
MB
319%dir %{_datadir}/glib-2.0/codegen
320%{_datadir}/glib-2.0/codegen/*.py*
7191dcf9 321%dir %{_datadir}/glib-2.0/gettext
7191dcf9 322%{_datadir}/glib-2.0/gettext/po
57359775 323%{_datadir}/glib-2.0/schemas/gschema.dtd
abe50ec6
ŁK
324%{_libdir}/libgio-2.0.la
325%{_libdir}/libglib-2.0.la
326%{_libdir}/libgmodule-2.0.la
327%{_libdir}/libgobject-2.0.la
328%{_libdir}/libgthread-2.0.la
1ebb8361
MB
329%{_pkgconfigdir}/gio-2.0.pc
330%{_pkgconfigdir}/gio-unix-2.0.pc
6fa08951
JB
331%{_pkgconfigdir}/glib-2.0.pc
332%{_pkgconfigdir}/gmodule-2.0.pc
333%{_pkgconfigdir}/gmodule-export-2.0.pc
334%{_pkgconfigdir}/gmodule-no-export-2.0.pc
335%{_pkgconfigdir}/gobject-2.0.pc
336%{_pkgconfigdir}/gthread-2.0.pc
337%{_aclocaldir}/glib-2.0.m4
338%{_aclocaldir}/glib-gettext.m4
f9d9fd77 339%{_aclocaldir}/gsettings.m4
6fa08951 340%if %{with apidocs}
5028631e 341%{_mandir}/man1/gdbus-codegen.1*
9a6262ab 342%{_mandir}/man1/glib-compile-resources.1*
6fa08951
JB
343%{_mandir}/man1/glib-genmarshal.1*
344%{_mandir}/man1/glib-gettextize.1*
345%{_mandir}/man1/glib-mkenums.1*
346%{_mandir}/man1/gobject-query.1*
9a6262ab 347%{_mandir}/man1/gresource.1*
848cb578
MB
348%{_mandir}/man1/gtester-report.1*
349%{_mandir}/man1/gtester.1*
6fa08951 350%endif
c5cd89bd 351
5cb5b210 352%if %{with static_libs}
c5cd89bd
AF
353%files static
354%defattr(644,root,root,755)
1ebb8361 355%{_libdir}/libgio-2.0.a
6fa08951
JB
356%{_libdir}/libglib-2.0.a
357%{_libdir}/libgmodule-2.0.a
358%{_libdir}/libgobject-2.0.a
359%{_libdir}/libgthread-2.0.a
511b979a 360%endif
9fd4432e
JB
361
362%if %{with apidocs}
363%files apidocs
364%defattr(644,root,root,755)
5028631e 365%{_gtkdocdir}/gdbus-object-manager-example
1ebb8361 366%{_gtkdocdir}/gio
6fa08951
JB
367%{_gtkdocdir}/glib
368%{_gtkdocdir}/gobject
9fd4432e 369%endif
7966f809 370
b6bcc451
JB
371%files gdb
372%defattr(644,root,root,755)
373%{_datadir}/gdb/auto-load/usr/%{_lib}/libglib-2.0.so.*.*.*-gdb.py
374%{_datadir}/gdb/auto-load/usr/%{_lib}/libgobject-2.0.so.*.*.*-gdb.py
375%{_datadir}/glib-2.0/gdb
376
f9d9fd77 377%files -n bash-completion-gio
7966f809 378%defattr(644,root,root,755)
5911fe6b
ŁK
379%{_datadir}/bash-completion/completions/gdbus
380%{_datadir}/bash-completion/completions/gresource
381%{_datadir}/bash-completion/completions/gsettings
This page took 0.12985 seconds and 4 git commands to generate.