3 %bcond_without apidocs # disable gtk-doc
4 %bcond_without static_libs # don't build static library
6 Summary: Useful routines for 'C' programming
7 Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy
8 Summary(da.UTF-8): Nyttige biblioteksfunktioner
9 Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen
10 Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias
11 Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita
12 Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires
13 Summary(ja.UTF-8): 便利なユーティリティ関数のライブラリ
14 Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C
15 Summary(pt_BR.UTF-8): Conjunto de funções gráficas utilitárias
16 Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı
17 Summary(zh_CN.UTF-8): 实用工具函数库
24 Source0: ftp://ftp.gtk.org/pub/glib/2.12/glib-%{version}.tar.bz2
25 # Source0-md5: 077a9917b673a9a0bc63f351786dde24
26 Patch0: %{name}-makefile.patch
27 Patch1: %{name}-SEGV.patch
28 Patch2: %{name}-noarch.patch
29 URL: http://www.gtk.org/
30 BuildRequires: autoconf >= 2.54
31 BuildRequires: automake >= 1:1.7
32 BuildRequires: docbook-dtd412-xml
33 BuildRequires: docbook-style-xsl
34 BuildRequires: gettext-devel
35 %{?with_apidocs:BuildRequires: gtk-doc >= 1.7}
36 %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.7}
37 BuildRequires: libtool >= 1:1.4.2-9
38 BuildRequires: perl-base
39 BuildRequires: pkgconfig >= 1:0.14.0
40 BuildRequires: rpmbuild(macros) >= 1.197
41 %{!?with_apidocs:BuildRequires: sed >= 4.0}
43 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
44 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 GLib, is a library which includes support routines for C such as
48 lists, trees, hashes, memory allocation, and many other things. GLIB
49 includes also generally useful data structures used by GIMP and many
52 %description -l cs.UTF-8
53 Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a
54 hlavičky jsou v balíčku glib-devel.
56 %description -l da.UTF-8
57 Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker
58 og headerfiler er i glib-devel pakken.
60 %description -l de.UTF-8
61 Eine nützliche Library von Dienstprogramm-Funktionen.
62 Entwicklungs-Libraries und Header befinden sich in glib-devel.
64 %description -l es.UTF-8
65 Conjunto de funciones utilitarias. Bibliotecas de desarrollo y
66 archivos de inclusión están en glib-devel.
68 %description -l fi.UTF-8
69 Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja
70 header-tiedostot ovat glib-devel-paketissa.
72 %description -l ja.UTF-8
73 GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、
74 いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい
78 GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション
79 等のためにこのglibパッケージをインストールしてください。
81 %description -l pl.UTF-8
82 Glib jest zestawem bibliotek zawierających funkcje do obsługi list i
83 drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych
84 podstawowych funkcji i różnych struktur danych używanych przez program
87 %description -l pt_BR.UTF-8
88 Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e
89 arquivos de inclusão estão em glib-devel.
91 %description -l tr.UTF-8
92 Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık
93 dosyaları glib-devel paketinde yer almaktadır.
96 Summary: Shared Glib libraries
97 Summary(pl.UTF-8): Biblioteka współdzielona Glib
99 Conflicts: glib2 < 1:2.12.11-2
102 Glib shared libraries.
104 %description libs -l pl.UTF-8
105 Biblioteka współdzielona Glib.
108 Summary: Glib heades files, documentation
109 Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo
110 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do glib
111 Summary(pt_BR.UTF-8): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP
112 Group: Development/Libraries
113 Requires: %{name}-libs = %{epoch}:%{version}-%{release}
116 Header files for the support library for the GIMP's X libraries, which
117 are available as public libraries. GLIB includes generally useful data
120 %description devel -l es.UTF-8
121 Conjunto de funciones gráficas utilitarias para desarrollo.
123 %description devel -l ja.UTF-8
124 glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群
125 (GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが
128 もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト
131 %description devel -l pl.UTF-8
132 Pliki nagłówkowe i dokumentacja do glib przydatna przy pisaniu
133 programów wykorzystujących tę bibliotekę.
135 %description devel -l pt_BR.UTF-8
136 Bibliotecas e arquivos de inclusão para a biblioteca de suporte para
137 as bibliotecas X do GIMP, que são disponíveis como bibliotecas
138 públicas. A GLIB inclui estruturas de dados genéricas úteis.
141 Summary: Static glib libraries
142 Summary(pl.UTF-8): Biblioteki statyczne glib
143 Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com glib
144 Group: Development/Libraries
145 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
148 Static glib libraries.
150 %description static -l pl.UTF-8
151 Biblioteki statyczne glib.
153 %description static -l pt_BR.UTF-8
154 Bibliotecas estáticas para desenvolvimento com glib.
157 Summary: Glib API documetation
158 Summary(pl.UTF-8): Dokumentacja API Glib
160 Requires: gtk-doc-common
163 Glib API documetation.
165 %description apidocs -l pl.UTF-8
166 Dokumentacja API Glib.
169 %setup -q -n glib-%{version}
175 sed -e '/SUBDIRS/s/docs//' -i Makefile.am
176 sed -e '/^docs.*Makefile$/d' -i configure.in
177 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
181 %{?with_apidocs:%{__gtkdocize}}
183 %{__aclocal} -I m4macros
188 --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
189 %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
190 --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
191 --enable-debug=%{?debug:yes} \
198 rm -rf $RPM_BUILD_ROOT
201 DESTDIR=$RPM_BUILD_ROOT \
202 m4datadir=%{_aclocaldir} \
203 pkgconfigdir=%{_pkgconfigdir}
205 %find_lang glib20 --with-gnome
208 rm -rf $RPM_BUILD_ROOT
210 %post libs -p /sbin/ldconfig
211 %postun libs -p /sbin/ldconfig
213 %files -f glib20.lang
214 %defattr(644,root,root,755)
215 %doc AUTHORS README NEWS
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/lib*.so.*.*
222 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_bindir}/*
225 %attr(755,root,root) %{_libdir}/lib*.so
227 %dir %{_datadir}/glib-2.0
228 %dir %{_datadir}/glib-2.0/gettext
229 %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs
230 %{_datadir}/glib-2.0/gettext/po
235 %{?with_apidocs:%{_mandir}/man?/*}
237 %if %{with static_libs}
239 %defattr(644,root,root,755)
245 %defattr(644,root,root,755)