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