]> git.pld-linux.org Git - packages/glib2.git/blame - glib2.spec
- merged from DEVEL
[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
b2fe5363 21Release: 1
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
7966f809
MB
163%package -n bash-completion-gdbus
164Summary: bash-completion for gdbus
165Summary(pl.UTF-8): bashowe uzupełnianie nazw dla gdbus
166Group: Applications/Shells
167Requires: bash-completion
168
169%description -n bash-completion-gdbus
170bash-completion for gdbus.
171
172%description -n bash-completion-gdbus -l pl.UTF-8
173bashowe uzupełnianie nazw dla gdbus.
174
c5cd89bd 175%prep
9c7ef8c6 176%setup -q -n glib-%{version}
f29ca197 177%patch0 -p1
7966f809 178%{__sed} -i 's#^en@shaw##' po/LINGUAS
f9f8e5ca 179rm po/en@shaw.po
cac85f6c 180
d0edc3ae 181%if !%{with apidocs}
7966f809
MB
182%{__sed} -e '/SUBDIRS/s/docs//' -i Makefile.am
183%{__sed} -e '/^docs.*Makefile$/d' -i configure.ac
d0edc3ae 184echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
185%endif
c5cd89bd
AF
186
187%build
5c21d4b9 188%{?with_apidocs:%{__gtkdocize}}
5294c0c5 189%{__libtoolize}
f562fe91 190%{__aclocal} -I m4macros
5afe4131 191%{__autoconf}
7fbaba5f 192%{__autoheader}
5294c0c5 193%{__automake}
c5cd89bd 194%configure \
e051a6b2 195 --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
196 %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
2f90d369 197 --%{?with_selinux:en}%{!?with_selinux:dis}able-selinux \
e051a6b2 198 --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
dd7b40ff 199 --enable-debug=%{?debug:yes} \
511b979a 200 --enable-man \
ad8e0c63
JB
201 --enable-threads \
202 --with-pcre=system
e051a6b2 203
56faf6a4 204%{__make}
c5cd89bd
AF
205
206%install
207rm -rf $RPM_BUILD_ROOT
9ae10cd0 208
c5cd89bd
AF
209%{__make} install \
210 DESTDIR=$RPM_BUILD_ROOT \
5216d86c 211 m4datadir=%{_aclocaldir} \
4469893c 212 pkgconfigdir=%{_pkgconfigdir}
c5cd89bd 213
f9f8e5ca
MB
214> $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache
215
1ebb8361
MB
216rm -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.{la,a}
217
1ebb8361 218%find_lang glib20
2a2588d0 219
c5cd89bd
AF
220%clean
221rm -rf $RPM_BUILD_ROOT
222
f9f8e5ca
MB
223%post
224/sbin/ldconfig
225
226umask 022
227%{_bindir}/gio-querymodules %{_libdir}/gio/modules
228exit 0
229
4d5d23a0 230%postun -p /sbin/ldconfig
27d447ab 231
d0edc3ae 232%files -f glib20.lang
c5cd89bd 233%defattr(644,root,root,755)
beac3f53 234%doc AUTHORS README NEWS
7966f809 235%attr(755,root,root) %{_bindir}/gdbus
f9f8e5ca 236%attr(755,root,root) %{_bindir}/gio-querymodules
7966f809
MB
237%attr(755,root,root) %{_bindir}/glib-compile-schemas
238%attr(755,root,root) %{_bindir}/gsettings
1ebb8361
MB
239%attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.*
240%attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0
6fa08951
JB
241%attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.*
242%attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0
243%attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.*
244%attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0
245%attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.*
246%attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0
247%attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.*
248%attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0
1ebb8361
MB
249%dir %{_libdir}/gio
250%dir %{_libdir}/gio/modules
251%attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so
f9f8e5ca 252%ghost %{_libdir}/gio/modules/giomodule.cache
7966f809
MB
253%{_mandir}/man1/gdbus.1*
254%{_mandir}/man1/gio-querymodules.1*
255%{_mandir}/man1/glib-compile-schemas.1*
256%{_mandir}/man1/gsettings.1*
c5cd89bd
AF
257
258%files devel
259%defattr(644,root,root,755)
beac3f53 260%doc ChangeLog
6fa08951
JB
261%attr(755,root,root) %{_bindir}/glib-genmarshal
262%attr(755,root,root) %{_bindir}/glib-gettextize
263%attr(755,root,root) %{_bindir}/glib-mkenums
264%attr(755,root,root) %{_bindir}/gobject-query
1ebb8361
MB
265%attr(755,root,root) %{_bindir}/gtester
266%attr(755,root,root) %{_bindir}/gtester-report
267%attr(755,root,root) %{_libdir}/libgio-2.0.so
6fa08951
JB
268%attr(755,root,root) %{_libdir}/libglib-2.0.so
269%attr(755,root,root) %{_libdir}/libgmodule-2.0.so
270%attr(755,root,root) %{_libdir}/libgobject-2.0.so
271%attr(755,root,root) %{_libdir}/libgthread-2.0.so
1ebb8361 272%{_libdir}/libgio-2.0.la
6fa08951
JB
273%{_libdir}/libglib-2.0.la
274%{_libdir}/libgmodule-2.0.la
275%{_libdir}/libgobject-2.0.la
276%{_libdir}/libgthread-2.0.la
7191dcf9 277%dir %{_datadir}/glib-2.0
7966f809 278%{_datadir}/glib-2.0/gdb
7191dcf9 279%dir %{_datadir}/glib-2.0/gettext
280%attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs
281%{_datadir}/glib-2.0/gettext/po
7966f809 282%{_datadir}/glib-2.0/schemas
1ebb8361
MB
283%{_pkgconfigdir}/gio-2.0.pc
284%{_pkgconfigdir}/gio-unix-2.0.pc
6fa08951
JB
285%{_pkgconfigdir}/glib-2.0.pc
286%{_pkgconfigdir}/gmodule-2.0.pc
287%{_pkgconfigdir}/gmodule-export-2.0.pc
288%{_pkgconfigdir}/gmodule-no-export-2.0.pc
289%{_pkgconfigdir}/gobject-2.0.pc
290%{_pkgconfigdir}/gthread-2.0.pc
1ebb8361 291%{_libdir}/glib-2.0
7966f809 292%{_aclocaldir}/gsettings.m4
1ebb8361
MB
293%{_includedir}/gio-unix-2.0
294%{_includedir}/glib-2.0
6fa08951
JB
295%{_aclocaldir}/glib-2.0.m4
296%{_aclocaldir}/glib-gettext.m4
297%if %{with apidocs}
298%{_mandir}/man1/glib-genmarshal.1*
299%{_mandir}/man1/glib-gettextize.1*
300%{_mandir}/man1/glib-mkenums.1*
301%{_mandir}/man1/gobject-query.1*
848cb578
MB
302%{_mandir}/man1/gtester-report.1*
303%{_mandir}/man1/gtester.1*
6fa08951 304%endif
c5cd89bd 305
5cb5b210 306%if %{with static_libs}
c5cd89bd
AF
307%files static
308%defattr(644,root,root,755)
1ebb8361 309%{_libdir}/libgio-2.0.a
6fa08951
JB
310%{_libdir}/libglib-2.0.a
311%{_libdir}/libgmodule-2.0.a
312%{_libdir}/libgobject-2.0.a
313%{_libdir}/libgthread-2.0.a
511b979a 314%endif
9fd4432e
JB
315
316%if %{with apidocs}
317%files apidocs
318%defattr(644,root,root,755)
1ebb8361 319%{_gtkdocdir}/gio
6fa08951
JB
320%{_gtkdocdir}/glib
321%{_gtkdocdir}/gobject
9fd4432e 322%endif
7966f809
MB
323
324%files -n bash-completion-gdbus
325%defattr(644,root,root,755)
326%{_sysconfdir}/bash_completion.d/gdbus-bash-completion.sh
This page took 0.092119 seconds and 4 git commands to generate.