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