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