]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | %bcond_without static_libs # static library | |
5 | %bcond_without selinux # SELinux support in gio | |
6 | %bcond_without systemtap # systemtap/dtrace probes | |
7 | ||
8 | %include /usr/lib/rpm/macros.perl | |
9 | Summary: Useful routines for 'C' programming | |
10 | Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy | |
11 | Summary(da.UTF-8): Nyttige biblioteksfunktioner | |
12 | Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen | |
13 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias | |
14 | Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita | |
15 | Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires | |
16 | Summary(ja.UTF-8): 便利なユーティリティ関数のライブラリ | |
17 | Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C | |
18 | Summary(pt_BR.UTF-8): Conjunto de funções gráficas utilitárias | |
19 | Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı | |
20 | Summary(zh_CN.UTF-8): 实用工具函数库 | |
21 | Name: glib2 | |
22 | Version: 2.58.1 | |
23 | Release: 1 | |
24 | Epoch: 1 | |
25 | License: LGPL v2+ | |
26 | Group: Libraries | |
27 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.58/glib-%{version}.tar.xz | |
28 | # Source0-md5: 4fd2ead128a408c89b9153dfdb99f9a5 | |
29 | Patch0: %{name}-makefile.patch | |
30 | URL: http://www.gtk.org/ | |
31 | BuildRequires: autoconf >= 2.62 | |
32 | BuildRequires: automake >= 1:1.13.3 | |
33 | BuildRequires: docbook-dtd412-xml | |
34 | BuildRequires: docbook-dtd45-xml | |
35 | BuildRequires: docbook-style-xsl-nons | |
36 | BuildRequires: elfutils-devel | |
37 | BuildRequires: fam-devel | |
38 | BuildRequires: gettext-tools | |
39 | %if %(locale -a | grep -q '^C-UTF\.8$'; echo $?) | |
40 | BuildRequires: glibc-localedb-all | |
41 | %endif | |
42 | %if %{with apidocs} | |
43 | BuildRequires: gtk-doc >= 1.20 | |
44 | BuildRequires: gtk-doc-automake >= 1.20 | |
45 | %endif | |
46 | BuildRequires: libffi-devel >= 3.0.0 | |
47 | BuildRequires: libmount-devel >= 2.28 | |
48 | %{?with_selinux:BuildRequires: libselinux-devel} | |
49 | BuildRequires: libtool >= 2:2.2 | |
50 | BuildRequires: pcre-devel >= 8.31 | |
51 | BuildRequires: perl-base | |
52 | BuildRequires: pkgconfig >= 1:0.16 | |
53 | # in case of separate libelf (elfutils don't provide .pc file) | |
54 | #BuildRequires: pkgconfig(libelf) >= 0.8.12 | |
55 | BuildRequires: pkgconfig(libffi) >= 3.0.0 | |
56 | BuildRequires: python >= 1:2.7 | |
57 | BuildRequires: rpm-perlprov | |
58 | BuildRequires: rpm-pythonprov | |
59 | BuildRequires: rpmbuild(macros) >= 1.527 | |
60 | BuildRequires: sed >= 4.0 | |
61 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel} | |
62 | BuildRequires: tar >= 1:1.22 | |
63 | BuildRequires: xz | |
64 | BuildRequires: zlib-devel | |
65 | Requires: iconv | |
66 | Requires: libmount >= 2.28 | |
67 | Requires: pcre >= 8.31 | |
68 | Suggests: gvfs | |
69 | Provides: glib2-libs | |
70 | Obsoletes: glib2-libs | |
71 | # sr@Latn vs. sr@latin | |
72 | Conflicts: glibc-misc < 6:2.7 | |
73 | # see https://bugzilla.xfce.org/show_bug.cgi?id=9709 | |
74 | Conflicts: xfce4-session < 4.10.0-5 | |
75 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
76 | ||
77 | %description | |
78 | GLib, is a library which includes support routines for C such as | |
79 | lists, trees, hashes, memory allocation, and many other things. GLib | |
80 | includes also generally useful data structures used by GIMP and many | |
81 | other. | |
82 | ||
83 | %description -l cs.UTF-8 | |
84 | Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a | |
85 | hlavičky jsou v balíčku glib-devel. | |
86 | ||
87 | %description -l da.UTF-8 | |
88 | Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker | |
89 | og headerfiler er i glib-devel pakken. | |
90 | ||
91 | %description -l de.UTF-8 | |
92 | Eine nützliche Library von Dienstprogramm-Funktionen. | |
93 | Entwicklungs-Libraries und Header befinden sich in glib-devel. | |
94 | ||
95 | %description -l es.UTF-8 | |
96 | Conjunto de funciones utilitarias. Bibliotecas de desarrollo y | |
97 | archivos de inclusión están en glib-devel. | |
98 | ||
99 | %description -l fi.UTF-8 | |
100 | Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja | |
101 | header-tiedostot ovat glib-devel-paketissa. | |
102 | ||
103 | %description -l ja.UTF-8 | |
104 | GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、 | |
105 | いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい 関数を提供します。 | |
106 | ||
107 | GLibはGDK, GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション | |
108 | 等のためにこのglibパッケージをインストールしてください。 | |
109 | ||
110 | %description -l pl.UTF-8 | |
111 | GLib jest zestawem bibliotek zawierających funkcje do obsługi list i | |
112 | drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych | |
113 | podstawowych funkcji i różnych struktur danych używanych przez program | |
114 | GIMP i wiele innych. | |
115 | ||
116 | %description -l pt_BR.UTF-8 | |
117 | Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e | |
118 | arquivos de inclusão estão em glib-devel. | |
119 | ||
120 | %description -l tr.UTF-8 | |
121 | Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık | |
122 | dosyaları glib-devel paketinde yer almaktadır. | |
123 | ||
124 | %package devel | |
125 | Summary: GLib heades files, documentation | |
126 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo | |
127 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GLib | |
128 | Summary(pt_BR.UTF-8): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP | |
129 | Group: Development/Libraries | |
130 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
131 | Requires: libffi-devel >= 3.0.0 | |
132 | Requires: libmount-devel >= 2.28 | |
133 | Requires: pcre-devel >= 8.31 | |
134 | Requires: python-modules | |
135 | # gio only | |
136 | %{?with_selinux:Requires: libselinux-devel} | |
137 | Requires: zlib-devel | |
138 | ||
139 | %description devel | |
140 | Header files for the support library for the GIMP's X libraries, which | |
141 | are available as public libraries. GLib includes generally useful data | |
142 | structures. | |
143 | ||
144 | %description devel -l es.UTF-8 | |
145 | Conjunto de funciones gráficas utilitarias para desarrollo. | |
146 | ||
147 | %description devel -l ja.UTF-8 | |
148 | glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群 | |
149 | (GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが 含まれています。 | |
150 | ||
151 | もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト ールしてください。 | |
152 | ||
153 | %description devel -l pl.UTF-8 | |
154 | Pliki nagłówkowe i dokumentacja do GLib przydatna przy pisaniu | |
155 | programów wykorzystujących tę bibliotekę. | |
156 | ||
157 | %description devel -l pt_BR.UTF-8 | |
158 | Bibliotecas e arquivos de inclusão para a biblioteca de suporte para | |
159 | as bibliotecas X do GIMP, que são disponíveis como bibliotecas | |
160 | públicas. A GLib inclui estruturas de dados genéricas úteis. | |
161 | ||
162 | %package static | |
163 | Summary: Static GLib libraries | |
164 | Summary(pl.UTF-8): Biblioteki statyczne GLib | |
165 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com GLib | |
166 | Group: Development/Libraries | |
167 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
168 | ||
169 | %description static | |
170 | Static GLib libraries. | |
171 | ||
172 | %description static -l pl.UTF-8 | |
173 | Biblioteki statyczne GLib. | |
174 | ||
175 | %description static -l pt_BR.UTF-8 | |
176 | Bibliotecas estáticas para desenvolvimento com GLib. | |
177 | ||
178 | %package apidocs | |
179 | Summary: GLib API documetation | |
180 | Summary(pl.UTF-8): Dokumentacja API GLib | |
181 | Group: Documentation | |
182 | Requires: gtk-doc-common | |
183 | %if "%{_rpmversion}" >= "5" | |
184 | BuildArch: noarch | |
185 | %endif | |
186 | ||
187 | %description apidocs | |
188 | GLib API documetation. | |
189 | ||
190 | %description apidocs -l pl.UTF-8 | |
191 | Dokumentacja API GLib. | |
192 | ||
193 | %package gdb | |
194 | Summary: GDB Python pretty printers for GObject/GLib types | |
195 | Summary(pl.UTF-8): Skrypty Pythona dla GDB do ładnego wypisywania typów GObject/GLib | |
196 | Group: Development/Debuggers | |
197 | Requires: gdb | |
198 | ||
199 | %description gdb | |
200 | GDB Python pretty printers for GObject/GLib types. This includes | |
201 | support for GObject pointer pretty printing and signal frame | |
202 | compression in backtraces. | |
203 | ||
204 | %description gdb -l pl.UTF-8 | |
205 | Skrypty Pythona dla GDB do ładnego wypisywania typów GObject/GLib. | |
206 | Obejmują także ładne wypisywanie wskaźników GObject oraz kompresję | |
207 | ramek sygnagłów w zrzutach wywołań (backtrace). | |
208 | ||
209 | %package -n bash-completion-gio | |
210 | Summary: bash-completion for gio utilities | |
211 | Summary(pl.UTF-8): Bashowe uzupełnianie nazw dla narzędzi gio | |
212 | Group: Applications/Shells | |
213 | Requires: bash-completion >= 2.0 | |
214 | Obsoletes: bash-completion-gdbus | |
215 | %if "%{_rpmversion}" >= "5" | |
216 | BuildArch: noarch | |
217 | %endif | |
218 | ||
219 | %description -n bash-completion-gio | |
220 | bash-completion for gio utilities: gdbus and gsettings. | |
221 | ||
222 | %description -n bash-completion-gio -l pl.UTF-8 | |
223 | Bashowe uzupełnianie nazw dla narzędzi gio: gdbus i gsettings. | |
224 | ||
225 | %package -n systemtap-glib2 | |
226 | Summary: systemtap/dtrace probes for GLib 2 | |
227 | Summary(pl.UTF-8): Sondy systemtap/dtrace dla GLib 2 | |
228 | Group: Development/Tools | |
229 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
230 | Requires: systemtap-client | |
231 | ||
232 | %description -n systemtap-glib2 | |
233 | systemtap/dtrace probes for GLib 2. | |
234 | ||
235 | %description -n systemtap-glib2 -l pl.UTF-8 | |
236 | Sondy systemtap/dtrace dla GLib 2. | |
237 | ||
238 | %prep | |
239 | %setup -q -n glib-%{version} | |
240 | %patch0 -p1 | |
241 | ||
242 | %if %{without apidocs} | |
243 | %{__sed} -e '/SUBDIRS/s/docs//' -i Makefile.am | |
244 | %{__sed} -e '/^docs.*Makefile$/d' -i configure.ac | |
245 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 | |
246 | %endif | |
247 | ||
248 | %build | |
249 | %{?with_apidocs:%{__gtkdocize}} | |
250 | %{__libtoolize} | |
251 | %{__aclocal} -I m4macros | |
252 | %{__autoconf} | |
253 | %{__autoheader} | |
254 | %{__automake} | |
255 | ||
256 | # -Wall CPPFLAGS is workaround for https://bugzilla.gnome.org/show_bug.cgi?id=698716 | |
257 | %configure \ | |
258 | CPPFLAGS="%{rpmcppflags} -Wall" \ | |
259 | --enable-debug=%{?debug:yes} \ | |
260 | %{!?with_systemtap:--disable-dtrace} \ | |
261 | %ifarch %{ix86} | |
262 | %{?with_systemtap:--with-tapset-install-dir=%{_datadir}/systemtap/tapset/i386} \ | |
263 | %endif | |
264 | %{__enable_disable apidocs gtk-doc} \ | |
265 | %{__enable_disable selinux} \ | |
266 | --disable-silent-rules \ | |
267 | %{__enable_disable static_libs static} \ | |
268 | --enable-man \ | |
269 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ | |
270 | --with-pcre=system | |
271 | ||
272 | # gtk-doc build requires UTF-8 locale | |
273 | LC_ALL=C.UTF-8 \ | |
274 | %{__make} | |
275 | ||
276 | %install | |
277 | rm -rf $RPM_BUILD_ROOT | |
278 | ||
279 | %{__make} install \ | |
280 | DESTDIR=$RPM_BUILD_ROOT \ | |
281 | m4datadir=%{_aclocaldir} \ | |
282 | pkgconfigdir=%{_pkgconfigdir} | |
283 | ||
284 | > $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache | |
285 | > $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/gschemas.compiled | |
286 | ||
287 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.la \ | |
288 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.a} | |
289 | ||
290 | %{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr@ije,sr@ijekavian} | |
291 | ||
292 | %py_comp $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb | |
293 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb | |
294 | %py_postclean $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb | |
295 | ||
296 | %find_lang glib20 | |
297 | ||
298 | %clean | |
299 | rm -rf $RPM_BUILD_ROOT | |
300 | ||
301 | %post | |
302 | /sbin/ldconfig | |
303 | ||
304 | umask 022 | |
305 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : | |
306 | ||
307 | %postun -p /sbin/ldconfig | |
308 | ||
309 | %files -f glib20.lang | |
310 | %defattr(644,root,root,755) | |
311 | %doc AUTHORS README NEWS | |
312 | %attr(755,root,root) %{_bindir}/gapplication | |
313 | %attr(755,root,root) %{_bindir}/gdbus | |
314 | %attr(755,root,root) %{_bindir}/gio | |
315 | %attr(755,root,root) %{_bindir}/gio-launch-desktop | |
316 | %attr(755,root,root) %{_bindir}/gio-querymodules | |
317 | %attr(755,root,root) %{_bindir}/glib-compile-schemas | |
318 | %attr(755,root,root) %{_bindir}/gsettings | |
319 | %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.* | |
320 | %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0 | |
321 | %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.* | |
322 | %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0 | |
323 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.* | |
324 | %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0 | |
325 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.* | |
326 | %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0 | |
327 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.* | |
328 | %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0 | |
329 | %dir %{_libdir}/gio | |
330 | %dir %{_libdir}/gio/modules | |
331 | %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so | |
332 | %ghost %{_libdir}/gio/modules/giomodule.cache | |
333 | %dir %{_datadir}/glib-2.0 | |
334 | %dir %{_datadir}/glib-2.0/schemas | |
335 | %ghost %{_datadir}/glib-2.0/schemas/gschemas.compiled | |
336 | %if %{with apidocs} | |
337 | %{_mandir}/man1/gapplication.1* | |
338 | %{_mandir}/man1/gdbus.1* | |
339 | %{_mandir}/man1/gio.1* | |
340 | %{_mandir}/man1/gio-querymodules.1* | |
341 | %{_mandir}/man1/glib-compile-schemas.1* | |
342 | %{_mandir}/man1/gsettings.1* | |
343 | %endif | |
344 | ||
345 | %files devel | |
346 | %defattr(644,root,root,755) | |
347 | %attr(755,root,root) %{_bindir}/gdbus-codegen | |
348 | %attr(755,root,root) %{_bindir}/glib-compile-resources | |
349 | %attr(755,root,root) %{_bindir}/glib-genmarshal | |
350 | %attr(755,root,root) %{_bindir}/glib-gettextize | |
351 | %attr(755,root,root) %{_bindir}/glib-mkenums | |
352 | %attr(755,root,root) %{_bindir}/gobject-query | |
353 | %attr(755,root,root) %{_bindir}/gresource | |
354 | %attr(755,root,root) %{_bindir}/gtester | |
355 | %attr(755,root,root) %{_bindir}/gtester-report | |
356 | %attr(755,root,root) %{_libdir}/libgio-2.0.so | |
357 | %attr(755,root,root) %{_libdir}/libglib-2.0.so | |
358 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so | |
359 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so | |
360 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so | |
361 | %{_libdir}/glib-2.0 | |
362 | %{_includedir}/gio-unix-2.0 | |
363 | %{_includedir}/glib-2.0 | |
364 | %dir %{_datadir}/glib-2.0/codegen | |
365 | %{_datadir}/glib-2.0/codegen/*.py* | |
366 | %dir %{_datadir}/glib-2.0/gettext | |
367 | %{_datadir}/glib-2.0/gettext/po | |
368 | %{_datadir}/glib-2.0/schemas/gschema.dtd | |
369 | %{_datadir}/glib-2.0/valgrind | |
370 | %{_datadir}/gettext/its/gschema.its | |
371 | %{_datadir}/gettext/its/gschema.loc | |
372 | %{_libdir}/libgio-2.0.la | |
373 | %{_libdir}/libglib-2.0.la | |
374 | %{_libdir}/libgmodule-2.0.la | |
375 | %{_libdir}/libgobject-2.0.la | |
376 | %{_libdir}/libgthread-2.0.la | |
377 | %{_pkgconfigdir}/gio-2.0.pc | |
378 | %{_pkgconfigdir}/gio-unix-2.0.pc | |
379 | %{_pkgconfigdir}/glib-2.0.pc | |
380 | %{_pkgconfigdir}/gmodule-2.0.pc | |
381 | %{_pkgconfigdir}/gmodule-export-2.0.pc | |
382 | %{_pkgconfigdir}/gmodule-no-export-2.0.pc | |
383 | %{_pkgconfigdir}/gobject-2.0.pc | |
384 | %{_pkgconfigdir}/gthread-2.0.pc | |
385 | %{_aclocaldir}/glib-2.0.m4 | |
386 | %{_aclocaldir}/glib-gettext.m4 | |
387 | %{_aclocaldir}/gsettings.m4 | |
388 | %if %{with apidocs} | |
389 | %{_mandir}/man1/gdbus-codegen.1* | |
390 | %{_mandir}/man1/glib-compile-resources.1* | |
391 | %{_mandir}/man1/glib-genmarshal.1* | |
392 | %{_mandir}/man1/glib-gettextize.1* | |
393 | %{_mandir}/man1/glib-mkenums.1* | |
394 | %{_mandir}/man1/gobject-query.1* | |
395 | %{_mandir}/man1/gresource.1* | |
396 | %{_mandir}/man1/gtester-report.1* | |
397 | %{_mandir}/man1/gtester.1* | |
398 | %endif | |
399 | ||
400 | %if %{with static_libs} | |
401 | %files static | |
402 | %defattr(644,root,root,755) | |
403 | %{_libdir}/libgio-2.0.a | |
404 | %{_libdir}/libglib-2.0.a | |
405 | %{_libdir}/libgmodule-2.0.a | |
406 | %{_libdir}/libgobject-2.0.a | |
407 | %{_libdir}/libgthread-2.0.a | |
408 | %endif | |
409 | ||
410 | %if %{with apidocs} | |
411 | %files apidocs | |
412 | %defattr(644,root,root,755) | |
413 | %{_gtkdocdir}/gio | |
414 | %{_gtkdocdir}/glib | |
415 | %{_gtkdocdir}/gobject | |
416 | %endif | |
417 | ||
418 | %files gdb | |
419 | %defattr(644,root,root,755) | |
420 | %{_datadir}/gdb/auto-load/usr/%{_lib}/libglib-2.0.so.*.*.*-gdb.py | |
421 | %{_datadir}/gdb/auto-load/usr/%{_lib}/libgobject-2.0.so.*.*.*-gdb.py | |
422 | %{_datadir}/glib-2.0/gdb | |
423 | ||
424 | %files -n bash-completion-gio | |
425 | %defattr(644,root,root,755) | |
426 | %{_datadir}/bash-completion/completions/gapplication | |
427 | %{_datadir}/bash-completion/completions/gdbus | |
428 | %{_datadir}/bash-completion/completions/gio | |
429 | %{_datadir}/bash-completion/completions/gresource | |
430 | %{_datadir}/bash-completion/completions/gsettings | |
431 | ||
432 | %if %{with systemtap} | |
433 | %files -n systemtap-glib2 | |
434 | %defattr(644,root,root,755) | |
435 | %{_datadir}/systemtap/tapset/*/libgio-2.0*.stp | |
436 | %{_datadir}/systemtap/tapset/*/libglib-2.0*.stp | |
437 | %{_datadir}/systemtap/tapset/*/libgobject-2.0*.stp | |
438 | %endif |