]>
Commit | Line | Data |
---|---|---|
680072d1 | 1 | # |
dc8ca89f | 2 | # Conditional build: |
e051a6b2 | 3 | %bcond_without apidocs # disable gtk-doc |
5cb5b210 | 4 | %bcond_without static_libs # don't build static library |
f16b8cb0 | 5 | %bcond_with selinux # gio with SELinux support |
2378ed3f | 6 | |
fe32950e | 7 | %include /usr/lib/rpm/macros.perl |
c5cd89bd | 8 | Summary: Useful routines for 'C' programming |
d62bd2ce ER |
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): 实用工具函数库 | |
184f9dda | 20 | Name: glib2 |
1ce80a6a | 21 | Version: 2.28.8 |
2378ed3f | 22 | Release: 2 |
f4f2082a | 23 | Epoch: 1 |
d9eae184 | 24 | License: LGPL v2+ |
c5cd89bd | 25 | Group: Libraries |
ed9d8da1 | 26 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.28/glib-%{version}.tar.bz2 |
1ce80a6a | 27 | # Source0-md5: 789e7520f71c6a4bf08bc683ec764d24 |
0a6ddb4c | 28 | Patch0: %{name}-makefile.patch |
f5abea06 | 29 | Patch1: %{name}-pc.patch |
c5cd89bd | 30 | URL: http://www.gtk.org/ |
72809582 JB |
31 | BuildRequires: autoconf >= 2.62 |
32 | BuildRequires: automake >= 1:1.10 | |
f562fe91 | 33 | BuildRequires: docbook-dtd412-xml |
34 | BuildRequires: docbook-style-xsl | |
a449f59a | 35 | BuildRequires: fam-devel |
d0edc3ae | 36 | BuildRequires: gettext-devel |
e8a8eafc | 37 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.17} |
38 | %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.17} | |
2f90d369 | 39 | %{?with_selinux:BuildRequires: libselinux-devel} |
72809582 | 40 | BuildRequires: libtool >= 2:2.2 |
189db612 | 41 | BuildRequires: pcre-devel >= 8.11 |
f562fe91 | 42 | BuildRequires: perl-base |
b6bcc451 | 43 | BuildRequires: pkgconfig >= 1:0.16 |
2cc1a497 | 44 | BuildRequires: rpm-perlprov |
8c69dce2 | 45 | BuildRequires: rpm-pythonprov |
4099c72b | 46 | BuildRequires: rpmbuild(macros) >= 1.527 |
f9f8e5ca MB |
47 | BuildRequires: sed >= 4.0 |
48 | BuildRequires: zlib-devel | |
c47711ba | 49 | Requires: iconv |
ed9d8da1 | 50 | Requires: pcre >= 8.11 |
d0d10187 | 51 | Suggests: gvfs |
81df0f8b | 52 | Provides: glib2-libs |
43f3147b | 53 | Obsoletes: glib2-libs |
424a3c22 ER |
54 | # sr@Latn vs. sr@latin |
55 | Conflicts: glibc-misc < 6:2.7 | |
c5cd89bd AF |
56 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
57 | ||
c5cd89bd AF |
58 | %description |
59 | GLib, is a library which includes support routines for C such as | |
045fa5ec | 60 | lists, trees, hashes, memory allocation, and many other things. GLib |
c5cd89bd AF |
61 | includes also generally useful data structures used by GIMP and many |
62 | other. | |
63 | ||
1ccef3e3 JR |
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. | |
c5cd89bd | 67 | |
1ccef3e3 | 68 | %description -l da.UTF-8 |
c5cd89bd AF |
69 | Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker |
70 | og headerfiler er i glib-devel pakken. | |
71 | ||
1ccef3e3 JR |
72 | %description -l de.UTF-8 |
73 | Eine nützliche Library von Dienstprogramm-Funktionen. | |
c5cd89bd AF |
74 | Entwicklungs-Libraries und Header befinden sich in glib-devel. |
75 | ||
1ccef3e3 | 76 | %description -l es.UTF-8 |
fac1fbe3 | 77 | Conjunto de funciones utilitarias. Bibliotecas de desarrollo y |
1ccef3e3 | 78 | archivos de inclusión están en glib-devel. |
fac1fbe3 | 79 | |
1ccef3e3 JR |
80 | %description -l fi.UTF-8 |
81 | Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja | |
b19705b9 | 82 | header-tiedostot ovat glib-devel-paketissa. |
c5cd89bd | 83 | |
1ccef3e3 JR |
84 | %description -l ja.UTF-8 |
85 | GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、 | |
75195290 | 86 | いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい 関数を提供します。 |
fac1fbe3 | 87 | |
75195290 | 88 | GLibはGDK, GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション |
1ccef3e3 | 89 | 等のためにこのglibパッケージをインストールしてください。 |
fac1fbe3 | 90 | |
1ccef3e3 | 91 | %description -l pl.UTF-8 |
045fa5ec | 92 | GLib jest zestawem bibliotek zawierających funkcje do obsługi list i |
1ccef3e3 JR |
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 | |
fac1fbe3 | 95 | GIMP i wiele innych. |
96 | ||
1ccef3e3 JR |
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. | |
c5cd89bd | 100 | |
1ccef3e3 JR |
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. | |
c5cd89bd AF |
104 | |
105 | %package devel | |
045fa5ec | 106 | Summary: GLib heades files, documentation |
d62bd2ce | 107 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo |
045fa5ec | 108 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GLib |
d62bd2ce | 109 | Summary(pt_BR.UTF-8): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP |
c5cd89bd | 110 | Group: Development/Libraries |
4d5d23a0 | 111 | Requires: %{name} = %{epoch}:%{version}-%{release} |
ed9d8da1 | 112 | Requires: pcre-devel >= 8.11 |
f16b8cb0 JB |
113 | # gio only |
114 | %{?with_selinux:Requires: libselinux-devel} | |
5c35f474 | 115 | Requires: zlib-devel |
c5cd89bd AF |
116 | |
117 | %description devel | |
118 | Header files for the support library for the GIMP's X libraries, which | |
045fa5ec | 119 | are available as public libraries. GLib includes generally useful data |
c5cd89bd AF |
120 | structures. |
121 | ||
1ccef3e3 JR |
122 | %description devel -l es.UTF-8 |
123 | Conjunto de funciones gráficas utilitarias para desarrollo. | |
fac1fbe3 | 124 | |
1ccef3e3 JR |
125 | %description devel -l ja.UTF-8 |
126 | glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群 | |
75195290 | 127 | (GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが 含まれています。 |
fac1fbe3 | 128 | |
75195290 | 129 | もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト ールしてください。 |
fac1fbe3 | 130 | |
1ccef3e3 | 131 | %description devel -l pl.UTF-8 |
045fa5ec | 132 | Pliki nagłówkowe i dokumentacja do GLib przydatna przy pisaniu |
1ccef3e3 | 133 | programów wykorzystujących tę bibliotekę. |
c5cd89bd | 134 | |
1ccef3e3 JR |
135 | %description devel -l pt_BR.UTF-8 |
136 | Bibliotecas e arquivos de inclusão para a biblioteca de suporte para | |
137 | as bibliotecas X do GIMP, que são disponíveis como bibliotecas | |
045fa5ec | 138 | públicas. A GLib inclui estruturas de dados genéricas úteis. |
fac1fbe3 | 139 | |
c5cd89bd | 140 | %package static |
045fa5ec MB |
141 | Summary: Static GLib libraries |
142 | Summary(pl.UTF-8): Biblioteki statyczne GLib | |
143 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com GLib | |
c5cd89bd | 144 | Group: Development/Libraries |
e9536dab | 145 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
c5cd89bd AF |
146 | |
147 | %description static | |
045fa5ec | 148 | Static GLib libraries. |
c5cd89bd | 149 | |
1ccef3e3 | 150 | %description static -l pl.UTF-8 |
045fa5ec | 151 | Biblioteki statyczne GLib. |
c5cd89bd | 152 | |
1ccef3e3 | 153 | %description static -l pt_BR.UTF-8 |
045fa5ec | 154 | Bibliotecas estáticas para desenvolvimento com GLib. |
fac1fbe3 | 155 | |
9fd4432e | 156 | %package apidocs |
045fa5ec MB |
157 | Summary: GLib API documetation |
158 | Summary(pl.UTF-8): Dokumentacja API GLib | |
9fd4432e JB |
159 | Group: Documentation |
160 | Requires: gtk-doc-common | |
161 | ||
162 | %description apidocs | |
045fa5ec | 163 | GLib API documetation. |
9fd4432e | 164 | |
1ccef3e3 | 165 | %description apidocs -l pl.UTF-8 |
045fa5ec | 166 | Dokumentacja API GLib. |
9fd4432e | 167 | |
b6bcc451 JB |
168 | %package gdb |
169 | Summary: GDB Python pretty printers for GObject/GLib types | |
170 | Summary(pl.UTF-8): Skrypty Pythona dla GDB do ładnego wypisywania typów GObject/GLib | |
171 | Group: Development/Debuggers | |
172 | Requires: python-gdb | |
173 | ||
174 | %description gdb | |
175 | GDB Python pretty printers for GObject/GLib types. This includes | |
176 | support for GObject pointer pretty printing and signal frame | |
177 | compression in backtraces. | |
178 | ||
179 | %description gdb -l pl.UTF-8 | |
180 | Skrypty Pythona dla GDB do ładnego wypisywania typów GObject/GLib. | |
181 | Obejmują także ładne wypisywanie wskaźników GObject oraz kompresję | |
182 | ramek sygnagłów w zrzutach wywołań (backtrace). | |
183 | ||
f9d9fd77 JB |
184 | %package -n bash-completion-gio |
185 | Summary: bash-completion for gio utilities | |
186 | Summary(pl.UTF-8): Bashowe uzupełnianie nazw dla narzędzi gio | |
7966f809 MB |
187 | Group: Applications/Shells |
188 | Requires: bash-completion | |
f9d9fd77 | 189 | Obsoletes: bash-completion-gdbus |
7966f809 | 190 | |
f9d9fd77 JB |
191 | %description -n bash-completion-gio |
192 | bash-completion for gio utilities: gdbus and gsettings. | |
7966f809 | 193 | |
f9d9fd77 JB |
194 | %description -n bash-completion-gio -l pl.UTF-8 |
195 | Bashowe uzupełnianie nazw dla narzędzi gio: gdbus i gsettings. | |
7966f809 | 196 | |
c5cd89bd | 197 | %prep |
9c7ef8c6 | 198 | %setup -q -n glib-%{version} |
f29ca197 | 199 | %patch0 -p1 |
f5abea06 | 200 | %patch1 -p1 |
cac85f6c | 201 | |
d0edc3ae | 202 | %if !%{with apidocs} |
7966f809 MB |
203 | %{__sed} -e '/SUBDIRS/s/docs//' -i Makefile.am |
204 | %{__sed} -e '/^docs.*Makefile$/d' -i configure.ac | |
d0edc3ae | 205 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 |
206 | %endif | |
c5cd89bd AF |
207 | |
208 | %build | |
5c21d4b9 | 209 | %{?with_apidocs:%{__gtkdocize}} |
5294c0c5 | 210 | %{__libtoolize} |
f562fe91 | 211 | %{__aclocal} -I m4macros |
5afe4131 | 212 | %{__autoconf} |
7fbaba5f | 213 | %{__autoheader} |
5294c0c5 | 214 | %{__automake} |
c5cd89bd | 215 | %configure \ |
4099c72b | 216 | --disable-silent-rules \ |
217 | %{__enable_disable apidocs gtk-doc} \ | |
e051a6b2 | 218 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ |
4099c72b | 219 | %{__enable_disable selinux} \ |
220 | %{__enable_disable static_libs static} \ | |
dd7b40ff | 221 | --enable-debug=%{?debug:yes} \ |
511b979a | 222 | --enable-man \ |
ad8e0c63 JB |
223 | --enable-threads \ |
224 | --with-pcre=system | |
e051a6b2 | 225 | |
56faf6a4 | 226 | %{__make} |
c5cd89bd AF |
227 | |
228 | %install | |
229 | rm -rf $RPM_BUILD_ROOT | |
9ae10cd0 | 230 | |
c5cd89bd AF |
231 | %{__make} install \ |
232 | DESTDIR=$RPM_BUILD_ROOT \ | |
5216d86c | 233 | m4datadir=%{_aclocaldir} \ |
4469893c | 234 | pkgconfigdir=%{_pkgconfigdir} |
c5cd89bd | 235 | |
f9f8e5ca | 236 | > $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache |
2378ed3f | 237 | > $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/gschemas.compiled |
f9f8e5ca | 238 | |
4099c72b | 239 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.la \ |
240 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.a} | |
241 | ||
b6bcc451 JB |
242 | %py_comp $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb |
243 | %py_ocomp $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb | |
244 | %py_postclean $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb | |
1ebb8361 | 245 | |
1ebb8361 | 246 | %find_lang glib20 |
2a2588d0 | 247 | |
c5cd89bd AF |
248 | %clean |
249 | rm -rf $RPM_BUILD_ROOT | |
250 | ||
f9f8e5ca MB |
251 | %post |
252 | /sbin/ldconfig | |
253 | ||
254 | umask 022 | |
531bf88c | 255 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
f9f8e5ca | 256 | |
4d5d23a0 | 257 | %postun -p /sbin/ldconfig |
27d447ab | 258 | |
d0edc3ae | 259 | %files -f glib20.lang |
c5cd89bd | 260 | %defattr(644,root,root,755) |
beac3f53 | 261 | %doc AUTHORS README NEWS |
7966f809 | 262 | %attr(755,root,root) %{_bindir}/gdbus |
f9f8e5ca | 263 | %attr(755,root,root) %{_bindir}/gio-querymodules |
7966f809 MB |
264 | %attr(755,root,root) %{_bindir}/glib-compile-schemas |
265 | %attr(755,root,root) %{_bindir}/gsettings | |
1ebb8361 MB |
266 | %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.* |
267 | %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0 | |
6fa08951 JB |
268 | %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.* |
269 | %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0 | |
270 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.* | |
271 | %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0 | |
272 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.* | |
273 | %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0 | |
274 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.* | |
275 | %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0 | |
1ebb8361 MB |
276 | %dir %{_libdir}/gio |
277 | %dir %{_libdir}/gio/modules | |
278 | %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so | |
f9f8e5ca | 279 | %ghost %{_libdir}/gio/modules/giomodule.cache |
587c0b40 | 280 | %dir %{_datadir}/glib-2.0 |
57359775 | 281 | %dir %{_datadir}/glib-2.0/schemas |
2378ed3f | 282 | %ghost %{_datadir}/glib-2.0/schemas/gschemas.compiled |
d28aa732 | 283 | %if %{with apidocs} |
7966f809 MB |
284 | %{_mandir}/man1/gdbus.1* |
285 | %{_mandir}/man1/gio-querymodules.1* | |
286 | %{_mandir}/man1/glib-compile-schemas.1* | |
287 | %{_mandir}/man1/gsettings.1* | |
d28aa732 | 288 | %endif |
c5cd89bd AF |
289 | |
290 | %files devel | |
291 | %defattr(644,root,root,755) | |
beac3f53 | 292 | %doc ChangeLog |
6fa08951 JB |
293 | %attr(755,root,root) %{_bindir}/glib-genmarshal |
294 | %attr(755,root,root) %{_bindir}/glib-gettextize | |
295 | %attr(755,root,root) %{_bindir}/glib-mkenums | |
296 | %attr(755,root,root) %{_bindir}/gobject-query | |
1ebb8361 MB |
297 | %attr(755,root,root) %{_bindir}/gtester |
298 | %attr(755,root,root) %{_bindir}/gtester-report | |
299 | %attr(755,root,root) %{_libdir}/libgio-2.0.so | |
6fa08951 JB |
300 | %attr(755,root,root) %{_libdir}/libglib-2.0.so |
301 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so | |
302 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so | |
303 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so | |
1ebb8361 | 304 | %{_libdir}/libgio-2.0.la |
6fa08951 JB |
305 | %{_libdir}/libglib-2.0.la |
306 | %{_libdir}/libgmodule-2.0.la | |
307 | %{_libdir}/libgobject-2.0.la | |
308 | %{_libdir}/libgthread-2.0.la | |
f9d9fd77 JB |
309 | %{_libdir}/glib-2.0 |
310 | %{_includedir}/gio-unix-2.0 | |
311 | %{_includedir}/glib-2.0 | |
7191dcf9 | 312 | %dir %{_datadir}/glib-2.0/gettext |
313 | %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs | |
314 | %{_datadir}/glib-2.0/gettext/po | |
57359775 | 315 | %{_datadir}/glib-2.0/schemas/gschema.dtd |
1ebb8361 MB |
316 | %{_pkgconfigdir}/gio-2.0.pc |
317 | %{_pkgconfigdir}/gio-unix-2.0.pc | |
6fa08951 JB |
318 | %{_pkgconfigdir}/glib-2.0.pc |
319 | %{_pkgconfigdir}/gmodule-2.0.pc | |
320 | %{_pkgconfigdir}/gmodule-export-2.0.pc | |
321 | %{_pkgconfigdir}/gmodule-no-export-2.0.pc | |
322 | %{_pkgconfigdir}/gobject-2.0.pc | |
323 | %{_pkgconfigdir}/gthread-2.0.pc | |
324 | %{_aclocaldir}/glib-2.0.m4 | |
325 | %{_aclocaldir}/glib-gettext.m4 | |
f9d9fd77 | 326 | %{_aclocaldir}/gsettings.m4 |
6fa08951 JB |
327 | %if %{with apidocs} |
328 | %{_mandir}/man1/glib-genmarshal.1* | |
329 | %{_mandir}/man1/glib-gettextize.1* | |
330 | %{_mandir}/man1/glib-mkenums.1* | |
331 | %{_mandir}/man1/gobject-query.1* | |
848cb578 MB |
332 | %{_mandir}/man1/gtester-report.1* |
333 | %{_mandir}/man1/gtester.1* | |
6fa08951 | 334 | %endif |
c5cd89bd | 335 | |
5cb5b210 | 336 | %if %{with static_libs} |
c5cd89bd AF |
337 | %files static |
338 | %defattr(644,root,root,755) | |
1ebb8361 | 339 | %{_libdir}/libgio-2.0.a |
6fa08951 JB |
340 | %{_libdir}/libglib-2.0.a |
341 | %{_libdir}/libgmodule-2.0.a | |
342 | %{_libdir}/libgobject-2.0.a | |
343 | %{_libdir}/libgthread-2.0.a | |
511b979a | 344 | %endif |
9fd4432e JB |
345 | |
346 | %if %{with apidocs} | |
347 | %files apidocs | |
348 | %defattr(644,root,root,755) | |
1ebb8361 | 349 | %{_gtkdocdir}/gio |
6fa08951 JB |
350 | %{_gtkdocdir}/glib |
351 | %{_gtkdocdir}/gobject | |
9fd4432e | 352 | %endif |
7966f809 | 353 | |
b6bcc451 JB |
354 | %files gdb |
355 | %defattr(644,root,root,755) | |
356 | %{_datadir}/gdb/auto-load/usr/%{_lib}/libglib-2.0.so.*.*.*-gdb.py | |
357 | %{_datadir}/gdb/auto-load/usr/%{_lib}/libgobject-2.0.so.*.*.*-gdb.py | |
358 | %{_datadir}/glib-2.0/gdb | |
359 | ||
f9d9fd77 | 360 | %files -n bash-completion-gio |
7966f809 MB |
361 | %defattr(644,root,root,755) |
362 | %{_sysconfdir}/bash_completion.d/gdbus-bash-completion.sh | |
f9d9fd77 | 363 | %{_sysconfdir}/bash_completion.d/gsettings-bash-completion.sh |