]>
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 |
959c1902 | 21 | Version: 2.26.1 |
fe32950e | 22 | Release: 2 |
f4f2082a | 23 | Epoch: 1 |
d9eae184 | 24 | License: LGPL v2+ |
c5cd89bd | 25 | Group: Libraries |
45b3a8c1 | 26 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.26/glib-%{version}.tar.bz2 |
959c1902 | 27 | # Source0-md5: 17535accceef55bcb17a74d73f9c2aef |
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 | |
1ebb8361 | 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 |
27108172 | 40 | BuildRequires: pcre-devel >= 7.8 |
f562fe91 | 41 | BuildRequires: perl-base |
1ebb8361 | 42 | BuildRequires: pkgconfig >= 1:0.16.0 |
fe32950e | 43 | BuildRequires: rpm-perlprov |
8c69dce2 | 44 | BuildRequires: rpm-pythonprov |
dd7b40ff | 45 | BuildRequires: rpmbuild(macros) >= 1.197 |
f9f8e5ca MB |
46 | BuildRequires: sed >= 4.0 |
47 | BuildRequires: zlib-devel | |
c47711ba | 48 | Requires: iconv |
27108172 | 49 | Requires: pcre >= 7.8 |
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} |
27108172 | 110 | Requires: pcre-devel >= 7.8 |
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 |
7966f809 | 181 | %{__sed} -i 's#^en@shaw##' po/LINGUAS |
f9f8e5ca | 182 | rm po/en@shaw.po |
cac85f6c | 183 | |
d0edc3ae | 184 | %if !%{with apidocs} |
7966f809 MB |
185 | %{__sed} -e '/SUBDIRS/s/docs//' -i Makefile.am |
186 | %{__sed} -e '/^docs.*Makefile$/d' -i configure.ac | |
d0edc3ae | 187 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 |
188 | %endif | |
c5cd89bd AF |
189 | |
190 | %build | |
5c21d4b9 | 191 | %{?with_apidocs:%{__gtkdocize}} |
5294c0c5 | 192 | %{__libtoolize} |
f562fe91 | 193 | %{__aclocal} -I m4macros |
5afe4131 | 194 | %{__autoconf} |
7fbaba5f | 195 | %{__autoheader} |
5294c0c5 | 196 | %{__automake} |
c5cd89bd | 197 | %configure \ |
e051a6b2 | 198 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
199 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ | |
2f90d369 | 200 | --%{?with_selinux:en}%{!?with_selinux:dis}able-selinux \ |
e051a6b2 | 201 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \ |
dd7b40ff | 202 | --enable-debug=%{?debug:yes} \ |
511b979a | 203 | --enable-man \ |
ad8e0c63 JB |
204 | --enable-threads \ |
205 | --with-pcre=system | |
e051a6b2 | 206 | |
56faf6a4 | 207 | %{__make} |
c5cd89bd AF |
208 | |
209 | %install | |
210 | rm -rf $RPM_BUILD_ROOT | |
9ae10cd0 | 211 | |
c5cd89bd AF |
212 | %{__make} install \ |
213 | DESTDIR=$RPM_BUILD_ROOT \ | |
5216d86c | 214 | m4datadir=%{_aclocaldir} \ |
4469893c | 215 | pkgconfigdir=%{_pkgconfigdir} |
c5cd89bd | 216 | |
f9f8e5ca MB |
217 | > $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache |
218 | ||
1ebb8361 MB |
219 | rm -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.{la,a} |
220 | ||
1ebb8361 | 221 | %find_lang glib20 |
2a2588d0 | 222 | |
c5cd89bd AF |
223 | %clean |
224 | rm -rf $RPM_BUILD_ROOT | |
225 | ||
f9f8e5ca MB |
226 | %post |
227 | /sbin/ldconfig | |
228 | ||
229 | umask 022 | |
230 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules | |
231 | exit 0 | |
232 | ||
4d5d23a0 | 233 | %postun -p /sbin/ldconfig |
27d447ab | 234 | |
d0edc3ae | 235 | %files -f glib20.lang |
c5cd89bd | 236 | %defattr(644,root,root,755) |
beac3f53 | 237 | %doc AUTHORS README NEWS |
7966f809 | 238 | %attr(755,root,root) %{_bindir}/gdbus |
f9f8e5ca | 239 | %attr(755,root,root) %{_bindir}/gio-querymodules |
7966f809 MB |
240 | %attr(755,root,root) %{_bindir}/glib-compile-schemas |
241 | %attr(755,root,root) %{_bindir}/gsettings | |
1ebb8361 MB |
242 | %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.* |
243 | %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0 | |
6fa08951 JB |
244 | %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.* |
245 | %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0 | |
246 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.* | |
247 | %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0 | |
248 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.* | |
249 | %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0 | |
250 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.* | |
251 | %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0 | |
1ebb8361 MB |
252 | %dir %{_libdir}/gio |
253 | %dir %{_libdir}/gio/modules | |
254 | %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so | |
f9f8e5ca | 255 | %ghost %{_libdir}/gio/modules/giomodule.cache |
587c0b40 | 256 | %dir %{_datadir}/glib-2.0 |
57359775 | 257 | %dir %{_datadir}/glib-2.0/schemas |
7966f809 MB |
258 | %{_mandir}/man1/gdbus.1* |
259 | %{_mandir}/man1/gio-querymodules.1* | |
260 | %{_mandir}/man1/glib-compile-schemas.1* | |
261 | %{_mandir}/man1/gsettings.1* | |
c5cd89bd AF |
262 | |
263 | %files devel | |
264 | %defattr(644,root,root,755) | |
beac3f53 | 265 | %doc ChangeLog |
6fa08951 JB |
266 | %attr(755,root,root) %{_bindir}/glib-genmarshal |
267 | %attr(755,root,root) %{_bindir}/glib-gettextize | |
268 | %attr(755,root,root) %{_bindir}/glib-mkenums | |
269 | %attr(755,root,root) %{_bindir}/gobject-query | |
1ebb8361 MB |
270 | %attr(755,root,root) %{_bindir}/gtester |
271 | %attr(755,root,root) %{_bindir}/gtester-report | |
272 | %attr(755,root,root) %{_libdir}/libgio-2.0.so | |
6fa08951 JB |
273 | %attr(755,root,root) %{_libdir}/libglib-2.0.so |
274 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so | |
275 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so | |
276 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so | |
1ebb8361 | 277 | %{_libdir}/libgio-2.0.la |
6fa08951 JB |
278 | %{_libdir}/libglib-2.0.la |
279 | %{_libdir}/libgmodule-2.0.la | |
280 | %{_libdir}/libgobject-2.0.la | |
281 | %{_libdir}/libgthread-2.0.la | |
f9d9fd77 JB |
282 | %{_libdir}/glib-2.0 |
283 | %{_includedir}/gio-unix-2.0 | |
284 | %{_includedir}/glib-2.0 | |
7966f809 | 285 | %{_datadir}/glib-2.0/gdb |
7191dcf9 | 286 | %dir %{_datadir}/glib-2.0/gettext |
287 | %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs | |
288 | %{_datadir}/glib-2.0/gettext/po | |
57359775 | 289 | %{_datadir}/glib-2.0/schemas/gschema.dtd |
1ebb8361 MB |
290 | %{_pkgconfigdir}/gio-2.0.pc |
291 | %{_pkgconfigdir}/gio-unix-2.0.pc | |
6fa08951 JB |
292 | %{_pkgconfigdir}/glib-2.0.pc |
293 | %{_pkgconfigdir}/gmodule-2.0.pc | |
294 | %{_pkgconfigdir}/gmodule-export-2.0.pc | |
295 | %{_pkgconfigdir}/gmodule-no-export-2.0.pc | |
296 | %{_pkgconfigdir}/gobject-2.0.pc | |
297 | %{_pkgconfigdir}/gthread-2.0.pc | |
298 | %{_aclocaldir}/glib-2.0.m4 | |
299 | %{_aclocaldir}/glib-gettext.m4 | |
f9d9fd77 | 300 | %{_aclocaldir}/gsettings.m4 |
6fa08951 JB |
301 | %if %{with apidocs} |
302 | %{_mandir}/man1/glib-genmarshal.1* | |
303 | %{_mandir}/man1/glib-gettextize.1* | |
304 | %{_mandir}/man1/glib-mkenums.1* | |
305 | %{_mandir}/man1/gobject-query.1* | |
848cb578 MB |
306 | %{_mandir}/man1/gtester-report.1* |
307 | %{_mandir}/man1/gtester.1* | |
6fa08951 | 308 | %endif |
c5cd89bd | 309 | |
5cb5b210 | 310 | %if %{with static_libs} |
c5cd89bd AF |
311 | %files static |
312 | %defattr(644,root,root,755) | |
1ebb8361 | 313 | %{_libdir}/libgio-2.0.a |
6fa08951 JB |
314 | %{_libdir}/libglib-2.0.a |
315 | %{_libdir}/libgmodule-2.0.a | |
316 | %{_libdir}/libgobject-2.0.a | |
317 | %{_libdir}/libgthread-2.0.a | |
511b979a | 318 | %endif |
9fd4432e JB |
319 | |
320 | %if %{with apidocs} | |
321 | %files apidocs | |
322 | %defattr(644,root,root,755) | |
1ebb8361 | 323 | %{_gtkdocdir}/gio |
6fa08951 JB |
324 | %{_gtkdocdir}/glib |
325 | %{_gtkdocdir}/gobject | |
9fd4432e | 326 | %endif |
7966f809 | 327 | |
f9d9fd77 | 328 | %files -n bash-completion-gio |
7966f809 MB |
329 | %defattr(644,root,root,755) |
330 | %{_sysconfdir}/bash_completion.d/gdbus-bash-completion.sh | |
f9d9fd77 | 331 | %{_sysconfdir}/bash_completion.d/gsettings-bash-completion.sh |