]>
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 |
dc8ca89f | 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 |
ac56a29a | 21 | Version: 2.28.6 |
194f0423 | 22 | Release: 1 |
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 |
ac56a29a | 27 | # Source0-md5: 7d8fc15ae70d5111c0cf2a79d50ef717 |
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 |
54ae6377 SS |
37 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.15} |
38 | %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.15} | |
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 |
81df0f8b | 51 | Provides: glib2-libs |
43f3147b | 52 | Obsoletes: glib2-libs |
424a3c22 ER |
53 | # sr@Latn vs. sr@latin |
54 | Conflicts: glibc-misc < 6:2.7 | |
c5cd89bd AF |
55 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
56 | ||
c5cd89bd AF |
57 | %description |
58 | GLib, is a library which includes support routines for C such as | |
045fa5ec | 59 | lists, trees, hashes, memory allocation, and many other things. GLib |
c5cd89bd AF |
60 | includes also generally useful data structures used by GIMP and many |
61 | other. | |
62 | ||
1ccef3e3 JR |
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. | |
c5cd89bd | 66 | |
1ccef3e3 | 67 | %description -l da.UTF-8 |
c5cd89bd AF |
68 | Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker |
69 | og headerfiler er i glib-devel pakken. | |
70 | ||
1ccef3e3 JR |
71 | %description -l de.UTF-8 |
72 | Eine nützliche Library von Dienstprogramm-Funktionen. | |
c5cd89bd AF |
73 | Entwicklungs-Libraries und Header befinden sich in glib-devel. |
74 | ||
1ccef3e3 | 75 | %description -l es.UTF-8 |
fac1fbe3 | 76 | Conjunto de funciones utilitarias. Bibliotecas de desarrollo y |
1ccef3e3 | 77 | archivos de inclusión están en glib-devel. |
fac1fbe3 | 78 | |
1ccef3e3 JR |
79 | %description -l fi.UTF-8 |
80 | Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja | |
b19705b9 | 81 | header-tiedostot ovat glib-devel-paketissa. |
c5cd89bd | 82 | |
1ccef3e3 JR |
83 | %description -l ja.UTF-8 |
84 | GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、 | |
75195290 | 85 | いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい 関数を提供します。 |
fac1fbe3 | 86 | |
75195290 | 87 | GLibはGDK, GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション |
1ccef3e3 | 88 | 等のためにこのglibパッケージをインストールしてください。 |
fac1fbe3 | 89 | |
1ccef3e3 | 90 | %description -l pl.UTF-8 |
045fa5ec | 91 | GLib jest zestawem bibliotek zawierających funkcje do obsługi list i |
1ccef3e3 JR |
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 | |
fac1fbe3 | 94 | GIMP i wiele innych. |
95 | ||
1ccef3e3 JR |
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. | |
c5cd89bd | 99 | |
1ccef3e3 JR |
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. | |
c5cd89bd AF |
103 | |
104 | %package devel | |
045fa5ec | 105 | Summary: GLib heades files, documentation |
d62bd2ce | 106 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo |
045fa5ec | 107 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GLib |
d62bd2ce | 108 | Summary(pt_BR.UTF-8): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP |
c5cd89bd | 109 | Group: Development/Libraries |
4d5d23a0 | 110 | Requires: %{name} = %{epoch}:%{version}-%{release} |
ed9d8da1 | 111 | Requires: pcre-devel >= 8.11 |
f16b8cb0 JB |
112 | # gio only |
113 | %{?with_selinux:Requires: libselinux-devel} | |
c5cd89bd AF |
114 | |
115 | %description devel | |
116 | Header files for the support library for the GIMP's X libraries, which | |
045fa5ec | 117 | are available as public libraries. GLib includes generally useful data |
c5cd89bd AF |
118 | structures. |
119 | ||
1ccef3e3 JR |
120 | %description devel -l es.UTF-8 |
121 | Conjunto de funciones gráficas utilitarias para desarrollo. | |
fac1fbe3 | 122 | |
1ccef3e3 JR |
123 | %description devel -l ja.UTF-8 |
124 | glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群 | |
75195290 | 125 | (GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが 含まれています。 |
fac1fbe3 | 126 | |
75195290 | 127 | もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト ールしてください。 |
fac1fbe3 | 128 | |
1ccef3e3 | 129 | %description devel -l pl.UTF-8 |
045fa5ec | 130 | Pliki nagłówkowe i dokumentacja do GLib przydatna przy pisaniu |
1ccef3e3 | 131 | programów wykorzystujących tę bibliotekę. |
c5cd89bd | 132 | |
1ccef3e3 JR |
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 | |
045fa5ec | 136 | públicas. A GLib inclui estruturas de dados genéricas úteis. |
fac1fbe3 | 137 | |
c5cd89bd | 138 | %package static |
045fa5ec MB |
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 | |
c5cd89bd | 142 | Group: Development/Libraries |
e9536dab | 143 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
c5cd89bd AF |
144 | |
145 | %description static | |
045fa5ec | 146 | Static GLib libraries. |
c5cd89bd | 147 | |
1ccef3e3 | 148 | %description static -l pl.UTF-8 |
045fa5ec | 149 | Biblioteki statyczne GLib. |
c5cd89bd | 150 | |
1ccef3e3 | 151 | %description static -l pt_BR.UTF-8 |
045fa5ec | 152 | Bibliotecas estáticas para desenvolvimento com GLib. |
fac1fbe3 | 153 | |
9fd4432e | 154 | %package apidocs |
045fa5ec MB |
155 | Summary: GLib API documetation |
156 | Summary(pl.UTF-8): Dokumentacja API GLib | |
9fd4432e JB |
157 | Group: Documentation |
158 | Requires: gtk-doc-common | |
159 | ||
160 | %description apidocs | |
045fa5ec | 161 | GLib API documetation. |
9fd4432e | 162 | |
1ccef3e3 | 163 | %description apidocs -l pl.UTF-8 |
045fa5ec | 164 | Dokumentacja API GLib. |
9fd4432e | 165 | |
b6bcc451 JB |
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 | ||
f9d9fd77 JB |
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 | |
7966f809 MB |
185 | Group: Applications/Shells |
186 | Requires: bash-completion | |
f9d9fd77 | 187 | Obsoletes: bash-completion-gdbus |
7966f809 | 188 | |
f9d9fd77 JB |
189 | %description -n bash-completion-gio |
190 | bash-completion for gio utilities: gdbus and gsettings. | |
7966f809 | 191 | |
f9d9fd77 JB |
192 | %description -n bash-completion-gio -l pl.UTF-8 |
193 | Bashowe uzupełnianie nazw dla narzędzi gio: gdbus i gsettings. | |
7966f809 | 194 | |
c5cd89bd | 195 | %prep |
9c7ef8c6 | 196 | %setup -q -n glib-%{version} |
f29ca197 | 197 | %patch0 -p1 |
f5abea06 | 198 | %patch1 -p1 |
cac85f6c | 199 | |
d0edc3ae | 200 | %if !%{with apidocs} |
7966f809 MB |
201 | %{__sed} -e '/SUBDIRS/s/docs//' -i Makefile.am |
202 | %{__sed} -e '/^docs.*Makefile$/d' -i configure.ac | |
d0edc3ae | 203 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 |
204 | %endif | |
c5cd89bd AF |
205 | |
206 | %build | |
5c21d4b9 | 207 | %{?with_apidocs:%{__gtkdocize}} |
5294c0c5 | 208 | %{__libtoolize} |
f562fe91 | 209 | %{__aclocal} -I m4macros |
5afe4131 | 210 | %{__autoconf} |
7fbaba5f | 211 | %{__autoheader} |
5294c0c5 | 212 | %{__automake} |
c5cd89bd | 213 | %configure \ |
4099c72b | 214 | --disable-silent-rules \ |
215 | %{__enable_disable apidocs gtk-doc} \ | |
e051a6b2 | 216 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ |
4099c72b | 217 | %{__enable_disable selinux} \ |
218 | %{__enable_disable static_libs static} \ | |
dd7b40ff | 219 | --enable-debug=%{?debug:yes} \ |
511b979a | 220 | --enable-man \ |
ad8e0c63 JB |
221 | --enable-threads \ |
222 | --with-pcre=system | |
e051a6b2 | 223 | |
56faf6a4 | 224 | %{__make} |
c5cd89bd AF |
225 | |
226 | %install | |
227 | rm -rf $RPM_BUILD_ROOT | |
9ae10cd0 | 228 | |
c5cd89bd AF |
229 | %{__make} install \ |
230 | DESTDIR=$RPM_BUILD_ROOT \ | |
5216d86c | 231 | m4datadir=%{_aclocaldir} \ |
4469893c | 232 | pkgconfigdir=%{_pkgconfigdir} |
c5cd89bd | 233 | |
f9f8e5ca MB |
234 | > $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache |
235 | ||
4099c72b | 236 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.la \ |
237 | %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.a} | |
238 | ||
b6bcc451 JB |
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 | |
1ebb8361 | 242 | |
1ebb8361 | 243 | %find_lang glib20 |
2a2588d0 | 244 | |
c5cd89bd AF |
245 | %clean |
246 | rm -rf $RPM_BUILD_ROOT | |
247 | ||
f9f8e5ca MB |
248 | %post |
249 | /sbin/ldconfig | |
250 | ||
251 | umask 022 | |
531bf88c | 252 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
f9f8e5ca | 253 | |
4d5d23a0 | 254 | %postun -p /sbin/ldconfig |
27d447ab | 255 | |
d0edc3ae | 256 | %files -f glib20.lang |
c5cd89bd | 257 | %defattr(644,root,root,755) |
beac3f53 | 258 | %doc AUTHORS README NEWS |
7966f809 | 259 | %attr(755,root,root) %{_bindir}/gdbus |
f9f8e5ca | 260 | %attr(755,root,root) %{_bindir}/gio-querymodules |
7966f809 MB |
261 | %attr(755,root,root) %{_bindir}/glib-compile-schemas |
262 | %attr(755,root,root) %{_bindir}/gsettings | |
1ebb8361 MB |
263 | %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.* |
264 | %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0 | |
6fa08951 JB |
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 | |
1ebb8361 MB |
273 | %dir %{_libdir}/gio |
274 | %dir %{_libdir}/gio/modules | |
275 | %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so | |
f9f8e5ca | 276 | %ghost %{_libdir}/gio/modules/giomodule.cache |
587c0b40 | 277 | %dir %{_datadir}/glib-2.0 |
57359775 | 278 | %dir %{_datadir}/glib-2.0/schemas |
d28aa732 | 279 | %if %{with apidocs} |
7966f809 MB |
280 | %{_mandir}/man1/gdbus.1* |
281 | %{_mandir}/man1/gio-querymodules.1* | |
282 | %{_mandir}/man1/glib-compile-schemas.1* | |
283 | %{_mandir}/man1/gsettings.1* | |
d28aa732 | 284 | %endif |
c5cd89bd AF |
285 | |
286 | %files devel | |
287 | %defattr(644,root,root,755) | |
beac3f53 | 288 | %doc ChangeLog |
6fa08951 JB |
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 | |
1ebb8361 MB |
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 | |
6fa08951 JB |
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 | |
1ebb8361 | 300 | %{_libdir}/libgio-2.0.la |
6fa08951 JB |
301 | %{_libdir}/libglib-2.0.la |
302 | %{_libdir}/libgmodule-2.0.la | |
303 | %{_libdir}/libgobject-2.0.la | |
304 | %{_libdir}/libgthread-2.0.la | |
f9d9fd77 JB |
305 | %{_libdir}/glib-2.0 |
306 | %{_includedir}/gio-unix-2.0 | |
307 | %{_includedir}/glib-2.0 | |
7191dcf9 | 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 | |
57359775 | 311 | %{_datadir}/glib-2.0/schemas/gschema.dtd |
1ebb8361 MB |
312 | %{_pkgconfigdir}/gio-2.0.pc |
313 | %{_pkgconfigdir}/gio-unix-2.0.pc | |
6fa08951 JB |
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 | |
f9d9fd77 | 322 | %{_aclocaldir}/gsettings.m4 |
6fa08951 JB |
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* | |
848cb578 MB |
328 | %{_mandir}/man1/gtester-report.1* |
329 | %{_mandir}/man1/gtester.1* | |
6fa08951 | 330 | %endif |
c5cd89bd | 331 | |
5cb5b210 | 332 | %if %{with static_libs} |
c5cd89bd AF |
333 | %files static |
334 | %defattr(644,root,root,755) | |
1ebb8361 | 335 | %{_libdir}/libgio-2.0.a |
6fa08951 JB |
336 | %{_libdir}/libglib-2.0.a |
337 | %{_libdir}/libgmodule-2.0.a | |
338 | %{_libdir}/libgobject-2.0.a | |
339 | %{_libdir}/libgthread-2.0.a | |
511b979a | 340 | %endif |
9fd4432e JB |
341 | |
342 | %if %{with apidocs} | |
343 | %files apidocs | |
344 | %defattr(644,root,root,755) | |
1ebb8361 | 345 | %{_gtkdocdir}/gio |
6fa08951 JB |
346 | %{_gtkdocdir}/glib |
347 | %{_gtkdocdir}/gobject | |
9fd4432e | 348 | %endif |
7966f809 | 349 | |
b6bcc451 JB |
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 | ||
f9d9fd77 | 356 | %files -n bash-completion-gio |
7966f809 MB |
357 | %defattr(644,root,root,755) |
358 | %{_sysconfdir}/bash_completion.d/gdbus-bash-completion.sh | |
f9d9fd77 | 359 | %{_sysconfdir}/bash_completion.d/gsettings-bash-completion.sh |