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