]>
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} | |
c5cd89bd AF |
115 | |
116 | %description devel | |
117 | Header files for the support library for the GIMP's X libraries, which | |
045fa5ec | 118 | are available as public libraries. GLib includes generally useful data |
c5cd89bd AF |
119 | structures. |
120 | ||
1ccef3e3 JR |
121 | %description devel -l es.UTF-8 |
122 | Conjunto de funciones gráficas utilitarias para desarrollo. | |
fac1fbe3 | 123 | |
1ccef3e3 JR |
124 | %description devel -l ja.UTF-8 |
125 | glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群 | |
75195290 | 126 | (GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが 含まれています。 |
fac1fbe3 | 127 | |
75195290 | 128 | もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト ールしてください。 |
fac1fbe3 | 129 | |
1ccef3e3 | 130 | %description devel -l pl.UTF-8 |
045fa5ec | 131 | Pliki nagłówkowe i dokumentacja do GLib przydatna przy pisaniu |
1ccef3e3 | 132 | programów wykorzystujących tę bibliotekę. |
c5cd89bd | 133 | |
1ccef3e3 JR |
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 | |
045fa5ec | 137 | públicas. A GLib inclui estruturas de dados genéricas úteis. |
fac1fbe3 | 138 | |
c5cd89bd | 139 | %package static |
045fa5ec MB |
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 | |
c5cd89bd | 143 | Group: Development/Libraries |
e9536dab | 144 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
c5cd89bd AF |
145 | |
146 | %description static | |
045fa5ec | 147 | Static GLib libraries. |
c5cd89bd | 148 | |
1ccef3e3 | 149 | %description static -l pl.UTF-8 |
045fa5ec | 150 | Biblioteki statyczne GLib. |
c5cd89bd | 151 | |
1ccef3e3 | 152 | %description static -l pt_BR.UTF-8 |
045fa5ec | 153 | Bibliotecas estáticas para desenvolvimento com GLib. |
fac1fbe3 | 154 | |
9fd4432e | 155 | %package apidocs |
045fa5ec MB |
156 | Summary: GLib API documetation |
157 | Summary(pl.UTF-8): Dokumentacja API GLib | |
9fd4432e JB |
158 | Group: Documentation |
159 | Requires: gtk-doc-common | |
160 | ||
161 | %description apidocs | |
045fa5ec | 162 | GLib API documetation. |
9fd4432e | 163 | |
1ccef3e3 | 164 | %description apidocs -l pl.UTF-8 |
045fa5ec | 165 | Dokumentacja API GLib. |
9fd4432e | 166 | |
b6bcc451 JB |
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 | ||
f9d9fd77 JB |
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 | |
7966f809 MB |
186 | Group: Applications/Shells |
187 | Requires: bash-completion | |
f9d9fd77 | 188 | Obsoletes: bash-completion-gdbus |
7966f809 | 189 | |
f9d9fd77 JB |
190 | %description -n bash-completion-gio |
191 | bash-completion for gio utilities: gdbus and gsettings. | |
7966f809 | 192 | |
f9d9fd77 JB |
193 | %description -n bash-completion-gio -l pl.UTF-8 |
194 | Bashowe uzupełnianie nazw dla narzędzi gio: gdbus i gsettings. | |
7966f809 | 195 | |
c5cd89bd | 196 | %prep |
9c7ef8c6 | 197 | %setup -q -n glib-%{version} |
f29ca197 | 198 | %patch0 -p1 |
f5abea06 | 199 | %patch1 -p1 |
cac85f6c | 200 | |
d0edc3ae | 201 | %if !%{with apidocs} |
7966f809 MB |
202 | %{__sed} -e '/SUBDIRS/s/docs//' -i Makefile.am |
203 | %{__sed} -e '/^docs.*Makefile$/d' -i configure.ac | |
d0edc3ae | 204 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 |
205 | %endif | |
c5cd89bd AF |
206 | |
207 | %build | |
5c21d4b9 | 208 | %{?with_apidocs:%{__gtkdocize}} |
5294c0c5 | 209 | %{__libtoolize} |
f562fe91 | 210 | %{__aclocal} -I m4macros |
5afe4131 | 211 | %{__autoconf} |
7fbaba5f | 212 | %{__autoheader} |
5294c0c5 | 213 | %{__automake} |
c5cd89bd | 214 | %configure \ |
4099c72b | 215 | --disable-silent-rules \ |
216 | %{__enable_disable apidocs gtk-doc} \ | |
e051a6b2 | 217 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ |
4099c72b | 218 | %{__enable_disable selinux} \ |
219 | %{__enable_disable static_libs static} \ | |
dd7b40ff | 220 | --enable-debug=%{?debug:yes} \ |
511b979a | 221 | --enable-man \ |
ad8e0c63 JB |
222 | --enable-threads \ |
223 | --with-pcre=system | |
e051a6b2 | 224 | |
56faf6a4 | 225 | %{__make} |
c5cd89bd AF |
226 | |
227 | %install | |
228 | rm -rf $RPM_BUILD_ROOT | |
9ae10cd0 | 229 | |
c5cd89bd AF |
230 | %{__make} install \ |
231 | DESTDIR=$RPM_BUILD_ROOT \ | |
5216d86c | 232 | m4datadir=%{_aclocaldir} \ |
4469893c | 233 | pkgconfigdir=%{_pkgconfigdir} |
c5cd89bd | 234 | |
f9f8e5ca | 235 | > $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache |
2378ed3f | 236 | > $RPM_BUILD_ROOT%{_datadir}/glib-2.0/schemas/gschemas.compiled |
f9f8e5ca | 237 | |
4099c72b | 238 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.la \ |
239 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.a} | |
240 | ||
b6bcc451 JB |
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 | |
1ebb8361 | 244 | |
1ebb8361 | 245 | %find_lang glib20 |
2a2588d0 | 246 | |
c5cd89bd AF |
247 | %clean |
248 | rm -rf $RPM_BUILD_ROOT | |
249 | ||
f9f8e5ca MB |
250 | %post |
251 | /sbin/ldconfig | |
252 | ||
253 | umask 022 | |
531bf88c | 254 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
f9f8e5ca | 255 | |
4d5d23a0 | 256 | %postun -p /sbin/ldconfig |
27d447ab | 257 | |
d0edc3ae | 258 | %files -f glib20.lang |
c5cd89bd | 259 | %defattr(644,root,root,755) |
beac3f53 | 260 | %doc AUTHORS README NEWS |
7966f809 | 261 | %attr(755,root,root) %{_bindir}/gdbus |
f9f8e5ca | 262 | %attr(755,root,root) %{_bindir}/gio-querymodules |
7966f809 MB |
263 | %attr(755,root,root) %{_bindir}/glib-compile-schemas |
264 | %attr(755,root,root) %{_bindir}/gsettings | |
1ebb8361 MB |
265 | %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.* |
266 | %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0 | |
6fa08951 JB |
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 | |
1ebb8361 MB |
275 | %dir %{_libdir}/gio |
276 | %dir %{_libdir}/gio/modules | |
277 | %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so | |
f9f8e5ca | 278 | %ghost %{_libdir}/gio/modules/giomodule.cache |
587c0b40 | 279 | %dir %{_datadir}/glib-2.0 |
57359775 | 280 | %dir %{_datadir}/glib-2.0/schemas |
2378ed3f | 281 | %ghost %{_datadir}/glib-2.0/schemas/gschemas.compiled |
d28aa732 | 282 | %if %{with apidocs} |
7966f809 MB |
283 | %{_mandir}/man1/gdbus.1* |
284 | %{_mandir}/man1/gio-querymodules.1* | |
285 | %{_mandir}/man1/glib-compile-schemas.1* | |
286 | %{_mandir}/man1/gsettings.1* | |
d28aa732 | 287 | %endif |
c5cd89bd AF |
288 | |
289 | %files devel | |
290 | %defattr(644,root,root,755) | |
beac3f53 | 291 | %doc ChangeLog |
6fa08951 JB |
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 | |
1ebb8361 MB |
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 | |
6fa08951 JB |
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 | |
1ebb8361 | 303 | %{_libdir}/libgio-2.0.la |
6fa08951 JB |
304 | %{_libdir}/libglib-2.0.la |
305 | %{_libdir}/libgmodule-2.0.la | |
306 | %{_libdir}/libgobject-2.0.la | |
307 | %{_libdir}/libgthread-2.0.la | |
f9d9fd77 JB |
308 | %{_libdir}/glib-2.0 |
309 | %{_includedir}/gio-unix-2.0 | |
310 | %{_includedir}/glib-2.0 | |
7191dcf9 | 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 | |
57359775 | 314 | %{_datadir}/glib-2.0/schemas/gschema.dtd |
1ebb8361 MB |
315 | %{_pkgconfigdir}/gio-2.0.pc |
316 | %{_pkgconfigdir}/gio-unix-2.0.pc | |
6fa08951 JB |
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 | |
f9d9fd77 | 325 | %{_aclocaldir}/gsettings.m4 |
6fa08951 JB |
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* | |
848cb578 MB |
331 | %{_mandir}/man1/gtester-report.1* |
332 | %{_mandir}/man1/gtester.1* | |
6fa08951 | 333 | %endif |
c5cd89bd | 334 | |
5cb5b210 | 335 | %if %{with static_libs} |
c5cd89bd AF |
336 | %files static |
337 | %defattr(644,root,root,755) | |
1ebb8361 | 338 | %{_libdir}/libgio-2.0.a |
6fa08951 JB |
339 | %{_libdir}/libglib-2.0.a |
340 | %{_libdir}/libgmodule-2.0.a | |
341 | %{_libdir}/libgobject-2.0.a | |
342 | %{_libdir}/libgthread-2.0.a | |
511b979a | 343 | %endif |
9fd4432e JB |
344 | |
345 | %if %{with apidocs} | |
346 | %files apidocs | |
347 | %defattr(644,root,root,755) | |
1ebb8361 | 348 | %{_gtkdocdir}/gio |
6fa08951 JB |
349 | %{_gtkdocdir}/glib |
350 | %{_gtkdocdir}/gobject | |
9fd4432e | 351 | %endif |
7966f809 | 352 | |
b6bcc451 JB |
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 | ||
f9d9fd77 | 359 | %files -n bash-completion-gio |
7966f809 MB |
360 | %defattr(644,root,root,755) |
361 | %{_sysconfdir}/bash_completion.d/gdbus-bash-completion.sh | |
f9d9fd77 | 362 | %{_sysconfdir}/bash_completion.d/gsettings-bash-completion.sh |