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