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