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