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