]>
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.6 | |
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: 7d8fc15ae70d5111c0cf2a79d50ef717 | |
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 | %build | |
207 | %{?with_apidocs:%{__gtkdocize}} | |
208 | %{__libtoolize} | |
209 | %{__aclocal} -I m4macros | |
210 | %{__autoconf} | |
211 | %{__autoheader} | |
212 | %{__automake} | |
213 | %configure \ | |
214 | --disable-silent-rules \ | |
215 | %{__enable_disable apidocs gtk-doc} \ | |
216 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ | |
217 | %{__enable_disable selinux} \ | |
218 | %{__enable_disable static_libs static} \ | |
219 | --enable-debug=%{?debug:yes} \ | |
220 | --enable-man \ | |
221 | --enable-threads \ | |
222 | --with-pcre=system | |
223 | ||
224 | %{__make} | |
225 | ||
226 | %install | |
227 | rm -rf $RPM_BUILD_ROOT | |
228 | ||
229 | %{__make} install \ | |
230 | DESTDIR=$RPM_BUILD_ROOT \ | |
231 | m4datadir=%{_aclocaldir} \ | |
232 | pkgconfigdir=%{_pkgconfigdir} | |
233 | ||
234 | > $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache | |
235 | ||
236 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.la \ | |
237 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.a} | |
238 | ||
239 | %py_comp $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb | |
240 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb | |
241 | %py_postclean $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb | |
242 | ||
243 | %find_lang glib20 | |
244 | ||
245 | %clean | |
246 | rm -rf $RPM_BUILD_ROOT | |
247 | ||
248 | %post | |
249 | /sbin/ldconfig | |
250 | ||
251 | umask 022 | |
252 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : | |
253 | ||
254 | %postun -p /sbin/ldconfig | |
255 | ||
256 | %files -f glib20.lang | |
257 | %defattr(644,root,root,755) | |
258 | %doc AUTHORS README NEWS | |
259 | %attr(755,root,root) %{_bindir}/gdbus | |
260 | %attr(755,root,root) %{_bindir}/gio-querymodules | |
261 | %attr(755,root,root) %{_bindir}/glib-compile-schemas | |
262 | %attr(755,root,root) %{_bindir}/gsettings | |
263 | %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.* | |
264 | %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0 | |
265 | %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.* | |
266 | %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0 | |
267 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.* | |
268 | %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0 | |
269 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.* | |
270 | %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0 | |
271 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.* | |
272 | %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0 | |
273 | %dir %{_libdir}/gio | |
274 | %dir %{_libdir}/gio/modules | |
275 | %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so | |
276 | %ghost %{_libdir}/gio/modules/giomodule.cache | |
277 | %dir %{_datadir}/glib-2.0 | |
278 | %dir %{_datadir}/glib-2.0/schemas | |
279 | %if %{with apidocs} | |
280 | %{_mandir}/man1/gdbus.1* | |
281 | %{_mandir}/man1/gio-querymodules.1* | |
282 | %{_mandir}/man1/glib-compile-schemas.1* | |
283 | %{_mandir}/man1/gsettings.1* | |
284 | %endif | |
285 | ||
286 | %files devel | |
287 | %defattr(644,root,root,755) | |
288 | %doc ChangeLog | |
289 | %attr(755,root,root) %{_bindir}/glib-genmarshal | |
290 | %attr(755,root,root) %{_bindir}/glib-gettextize | |
291 | %attr(755,root,root) %{_bindir}/glib-mkenums | |
292 | %attr(755,root,root) %{_bindir}/gobject-query | |
293 | %attr(755,root,root) %{_bindir}/gtester | |
294 | %attr(755,root,root) %{_bindir}/gtester-report | |
295 | %attr(755,root,root) %{_libdir}/libgio-2.0.so | |
296 | %attr(755,root,root) %{_libdir}/libglib-2.0.so | |
297 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so | |
298 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so | |
299 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so | |
300 | %{_libdir}/libgio-2.0.la | |
301 | %{_libdir}/libglib-2.0.la | |
302 | %{_libdir}/libgmodule-2.0.la | |
303 | %{_libdir}/libgobject-2.0.la | |
304 | %{_libdir}/libgthread-2.0.la | |
305 | %{_libdir}/glib-2.0 | |
306 | %{_includedir}/gio-unix-2.0 | |
307 | %{_includedir}/glib-2.0 | |
308 | %dir %{_datadir}/glib-2.0/gettext | |
309 | %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs | |
310 | %{_datadir}/glib-2.0/gettext/po | |
311 | %{_datadir}/glib-2.0/schemas/gschema.dtd | |
312 | %{_pkgconfigdir}/gio-2.0.pc | |
313 | %{_pkgconfigdir}/gio-unix-2.0.pc | |
314 | %{_pkgconfigdir}/glib-2.0.pc | |
315 | %{_pkgconfigdir}/gmodule-2.0.pc | |
316 | %{_pkgconfigdir}/gmodule-export-2.0.pc | |
317 | %{_pkgconfigdir}/gmodule-no-export-2.0.pc | |
318 | %{_pkgconfigdir}/gobject-2.0.pc | |
319 | %{_pkgconfigdir}/gthread-2.0.pc | |
320 | %{_aclocaldir}/glib-2.0.m4 | |
321 | %{_aclocaldir}/glib-gettext.m4 | |
322 | %{_aclocaldir}/gsettings.m4 | |
323 | %if %{with apidocs} | |
324 | %{_mandir}/man1/glib-genmarshal.1* | |
325 | %{_mandir}/man1/glib-gettextize.1* | |
326 | %{_mandir}/man1/glib-mkenums.1* | |
327 | %{_mandir}/man1/gobject-query.1* | |
328 | %{_mandir}/man1/gtester-report.1* | |
329 | %{_mandir}/man1/gtester.1* | |
330 | %endif | |
331 | ||
332 | %if %{with static_libs} | |
333 | %files static | |
334 | %defattr(644,root,root,755) | |
335 | %{_libdir}/libgio-2.0.a | |
336 | %{_libdir}/libglib-2.0.a | |
337 | %{_libdir}/libgmodule-2.0.a | |
338 | %{_libdir}/libgobject-2.0.a | |
339 | %{_libdir}/libgthread-2.0.a | |
340 | %endif | |
341 | ||
342 | %if %{with apidocs} | |
343 | %files apidocs | |
344 | %defattr(644,root,root,755) | |
345 | %{_gtkdocdir}/gio | |
346 | %{_gtkdocdir}/glib | |
347 | %{_gtkdocdir}/gobject | |
348 | %endif | |
349 | ||
350 | %files gdb | |
351 | %defattr(644,root,root,755) | |
352 | %{_datadir}/gdb/auto-load/usr/%{_lib}/libglib-2.0.so.*.*.*-gdb.py | |
353 | %{_datadir}/gdb/auto-load/usr/%{_lib}/libgobject-2.0.so.*.*.*-gdb.py | |
354 | %{_datadir}/glib-2.0/gdb | |
355 | ||
356 | %files -n bash-completion-gio | |
357 | %defattr(644,root,root,755) | |
358 | %{_sysconfdir}/bash_completion.d/gdbus-bash-completion.sh | |
359 | %{_sysconfdir}/bash_completion.d/gsettings-bash-completion.sh |