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