]>
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 | # |
c5cd89bd | 7 | Summary: Useful routines for 'C' programming |
d62bd2ce ER |
8 | Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy |
9 | Summary(da.UTF-8): Nyttige biblioteksfunktioner | |
10 | Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen | |
11 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias | |
12 | Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita | |
13 | Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires | |
14 | Summary(ja.UTF-8): 便利なユーティリティ関数のライブラリ | |
15 | Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C | |
16 | Summary(pt_BR.UTF-8): Conjunto de funções gráficas utilitárias | |
17 | Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı | |
18 | Summary(zh_CN.UTF-8): 实用工具函数库 | |
184f9dda | 19 | Name: glib2 |
11f56bce MB |
20 | Version: 2.20.1 |
21 | Release: 1 | |
f4f2082a | 22 | Epoch: 1 |
d9eae184 | 23 | License: LGPL v2+ |
c5cd89bd | 24 | Group: Libraries |
045fa5ec | 25 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.20/glib-%{version}.tar.bz2 |
11f56bce | 26 | # Source0-md5: d7ef53c7b65827a1baa4bad1c6893fa3 |
0a6ddb4c | 27 | Patch0: %{name}-makefile.patch |
c5cd89bd | 28 | URL: http://www.gtk.org/ |
4469893c | 29 | BuildRequires: autoconf >= 2.54 |
8811444b | 30 | BuildRequires: automake >= 1:1.7 |
f562fe91 | 31 | BuildRequires: docbook-dtd412-xml |
32 | BuildRequires: docbook-style-xsl | |
1ebb8361 | 33 | BuildRequires: fam-devel |
d0edc3ae | 34 | BuildRequires: gettext-devel |
f37af358 MB |
35 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} |
36 | %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.8} | |
2f90d369 | 37 | %{?with_selinux:BuildRequires: libselinux-devel} |
4469893c | 38 | BuildRequires: libtool >= 1:1.4.2-9 |
27108172 | 39 | BuildRequires: pcre-devel >= 7.8 |
f562fe91 | 40 | BuildRequires: perl-base |
1ebb8361 | 41 | BuildRequires: pkgconfig >= 1:0.16.0 |
8c69dce2 | 42 | BuildRequires: rpm-pythonprov |
dd7b40ff | 43 | BuildRequires: rpmbuild(macros) >= 1.197 |
d0edc3ae | 44 | %{!?with_apidocs:BuildRequires: sed >= 4.0} |
c47711ba | 45 | Requires: iconv |
27108172 | 46 | Requires: pcre >= 7.8 |
81df0f8b | 47 | Provides: glib2-libs |
43f3147b | 48 | Obsoletes: glib2-libs |
424a3c22 ER |
49 | # sr@Latn vs. sr@latin |
50 | Conflicts: glibc-misc < 6:2.7 | |
c5cd89bd AF |
51 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
52 | ||
c5cd89bd AF |
53 | %description |
54 | GLib, is a library which includes support routines for C such as | |
045fa5ec | 55 | lists, trees, hashes, memory allocation, and many other things. GLib |
c5cd89bd AF |
56 | includes also generally useful data structures used by GIMP and many |
57 | other. | |
58 | ||
1ccef3e3 JR |
59 | %description -l cs.UTF-8 |
60 | Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a | |
61 | hlavičky jsou v balíčku glib-devel. | |
c5cd89bd | 62 | |
1ccef3e3 | 63 | %description -l da.UTF-8 |
c5cd89bd AF |
64 | Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker |
65 | og headerfiler er i glib-devel pakken. | |
66 | ||
1ccef3e3 JR |
67 | %description -l de.UTF-8 |
68 | Eine nützliche Library von Dienstprogramm-Funktionen. | |
c5cd89bd AF |
69 | Entwicklungs-Libraries und Header befinden sich in glib-devel. |
70 | ||
1ccef3e3 | 71 | %description -l es.UTF-8 |
fac1fbe3 | 72 | Conjunto de funciones utilitarias. Bibliotecas de desarrollo y |
1ccef3e3 | 73 | archivos de inclusión están en glib-devel. |
fac1fbe3 | 74 | |
1ccef3e3 JR |
75 | %description -l fi.UTF-8 |
76 | Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja | |
b19705b9 | 77 | header-tiedostot ovat glib-devel-paketissa. |
c5cd89bd | 78 | |
1ccef3e3 JR |
79 | %description -l ja.UTF-8 |
80 | GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、 | |
81 | いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい | |
82 | 関数を提供します。 | |
fac1fbe3 | 83 | |
1ccef3e3 JR |
84 | GLibはGDK, |
85 | GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション | |
86 | 等のためにこのglibパッケージをインストールしてください。 | |
fac1fbe3 | 87 | |
1ccef3e3 | 88 | %description -l pl.UTF-8 |
045fa5ec | 89 | GLib jest zestawem bibliotek zawierających funkcje do obsługi list i |
1ccef3e3 JR |
90 | drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych |
91 | podstawowych funkcji i różnych struktur danych używanych przez program | |
fac1fbe3 | 92 | GIMP i wiele innych. |
93 | ||
1ccef3e3 JR |
94 | %description -l pt_BR.UTF-8 |
95 | Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e | |
96 | arquivos de inclusão estão em glib-devel. | |
c5cd89bd | 97 | |
1ccef3e3 JR |
98 | %description -l tr.UTF-8 |
99 | Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık | |
100 | dosyaları glib-devel paketinde yer almaktadır. | |
c5cd89bd AF |
101 | |
102 | %package devel | |
045fa5ec | 103 | Summary: GLib heades files, documentation |
d62bd2ce | 104 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo |
045fa5ec | 105 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GLib |
d62bd2ce | 106 | Summary(pt_BR.UTF-8): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP |
c5cd89bd | 107 | Group: Development/Libraries |
4d5d23a0 | 108 | Requires: %{name} = %{epoch}:%{version}-%{release} |
27108172 | 109 | Requires: pcre-devel >= 7.8 |
f16b8cb0 JB |
110 | # gio only |
111 | %{?with_selinux:Requires: libselinux-devel} | |
c5cd89bd AF |
112 | |
113 | %description devel | |
114 | Header files for the support library for the GIMP's X libraries, which | |
045fa5ec | 115 | are available as public libraries. GLib includes generally useful data |
c5cd89bd AF |
116 | structures. |
117 | ||
1ccef3e3 JR |
118 | %description devel -l es.UTF-8 |
119 | Conjunto de funciones gráficas utilitarias para desarrollo. | |
fac1fbe3 | 120 | |
1ccef3e3 JR |
121 | %description devel -l ja.UTF-8 |
122 | glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群 | |
123 | (GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが | |
124 | 含まれています。 | |
fac1fbe3 | 125 | |
1ccef3e3 JR |
126 | もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト |
127 | ールしてください。 | |
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 | |
c5cd89bd | 166 | %prep |
9c7ef8c6 | 167 | %setup -q -n glib-%{version} |
f29ca197 | 168 | %patch0 -p1 |
cac85f6c | 169 | |
d0edc3ae | 170 | %if !%{with apidocs} |
171 | sed -e '/SUBDIRS/s/docs//' -i Makefile.am | |
172 | sed -e '/^docs.*Makefile$/d' -i configure.in | |
173 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 | |
174 | %endif | |
c5cd89bd AF |
175 | |
176 | %build | |
5c21d4b9 | 177 | %{?with_apidocs:%{__gtkdocize}} |
5294c0c5 | 178 | %{__libtoolize} |
f562fe91 | 179 | %{__aclocal} -I m4macros |
5afe4131 | 180 | %{__autoconf} |
7fbaba5f | 181 | %{__autoheader} |
5294c0c5 | 182 | %{__automake} |
c5cd89bd | 183 | %configure \ |
e051a6b2 | 184 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
185 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ | |
2f90d369 | 186 | --%{?with_selinux:en}%{!?with_selinux:dis}able-selinux \ |
e051a6b2 | 187 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \ |
dd7b40ff | 188 | --enable-debug=%{?debug:yes} \ |
511b979a | 189 | --enable-man \ |
ad8e0c63 JB |
190 | --enable-threads \ |
191 | --with-pcre=system | |
e051a6b2 | 192 | |
56faf6a4 | 193 | %{__make} |
c5cd89bd AF |
194 | |
195 | %install | |
196 | rm -rf $RPM_BUILD_ROOT | |
9ae10cd0 | 197 | |
c5cd89bd AF |
198 | %{__make} install \ |
199 | DESTDIR=$RPM_BUILD_ROOT \ | |
5216d86c | 200 | m4datadir=%{_aclocaldir} \ |
4469893c | 201 | pkgconfigdir=%{_pkgconfigdir} |
c5cd89bd | 202 | |
1ebb8361 MB |
203 | rm -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.{la,a} |
204 | ||
1ebb8361 | 205 | %find_lang glib20 |
2a2588d0 | 206 | |
c5cd89bd AF |
207 | %clean |
208 | rm -rf $RPM_BUILD_ROOT | |
209 | ||
4d5d23a0 | 210 | %post -p /sbin/ldconfig |
211 | %postun -p /sbin/ldconfig | |
27d447ab | 212 | |
d0edc3ae | 213 | %files -f glib20.lang |
c5cd89bd | 214 | %defattr(644,root,root,755) |
beac3f53 | 215 | %doc AUTHORS README NEWS |
1ebb8361 MB |
216 | %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.* |
217 | %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0 | |
6fa08951 JB |
218 | %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.* |
219 | %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0 | |
220 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.* | |
221 | %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0 | |
222 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.* | |
223 | %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0 | |
224 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.* | |
225 | %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0 | |
1ebb8361 MB |
226 | %dir %{_libdir}/gio |
227 | %dir %{_libdir}/gio/modules | |
228 | %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so | |
c5cd89bd AF |
229 | |
230 | %files devel | |
231 | %defattr(644,root,root,755) | |
beac3f53 | 232 | %doc ChangeLog |
6fa08951 JB |
233 | %attr(755,root,root) %{_bindir}/glib-genmarshal |
234 | %attr(755,root,root) %{_bindir}/glib-gettextize | |
235 | %attr(755,root,root) %{_bindir}/glib-mkenums | |
236 | %attr(755,root,root) %{_bindir}/gobject-query | |
1ebb8361 MB |
237 | %attr(755,root,root) %{_bindir}/gtester |
238 | %attr(755,root,root) %{_bindir}/gtester-report | |
239 | %attr(755,root,root) %{_libdir}/libgio-2.0.so | |
6fa08951 JB |
240 | %attr(755,root,root) %{_libdir}/libglib-2.0.so |
241 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so | |
242 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so | |
243 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so | |
1ebb8361 | 244 | %{_libdir}/libgio-2.0.la |
6fa08951 JB |
245 | %{_libdir}/libglib-2.0.la |
246 | %{_libdir}/libgmodule-2.0.la | |
247 | %{_libdir}/libgobject-2.0.la | |
248 | %{_libdir}/libgthread-2.0.la | |
7191dcf9 | 249 | %dir %{_datadir}/glib-2.0 |
250 | %dir %{_datadir}/glib-2.0/gettext | |
251 | %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs | |
252 | %{_datadir}/glib-2.0/gettext/po | |
1ebb8361 MB |
253 | %{_pkgconfigdir}/gio-2.0.pc |
254 | %{_pkgconfigdir}/gio-unix-2.0.pc | |
6fa08951 JB |
255 | %{_pkgconfigdir}/glib-2.0.pc |
256 | %{_pkgconfigdir}/gmodule-2.0.pc | |
257 | %{_pkgconfigdir}/gmodule-export-2.0.pc | |
258 | %{_pkgconfigdir}/gmodule-no-export-2.0.pc | |
259 | %{_pkgconfigdir}/gobject-2.0.pc | |
260 | %{_pkgconfigdir}/gthread-2.0.pc | |
1ebb8361 MB |
261 | %{_libdir}/glib-2.0 |
262 | %{_includedir}/gio-unix-2.0 | |
263 | %{_includedir}/glib-2.0 | |
6fa08951 JB |
264 | %{_aclocaldir}/glib-2.0.m4 |
265 | %{_aclocaldir}/glib-gettext.m4 | |
266 | %if %{with apidocs} | |
267 | %{_mandir}/man1/glib-genmarshal.1* | |
268 | %{_mandir}/man1/glib-gettextize.1* | |
269 | %{_mandir}/man1/glib-mkenums.1* | |
270 | %{_mandir}/man1/gobject-query.1* | |
848cb578 MB |
271 | %{_mandir}/man1/gtester-report.1* |
272 | %{_mandir}/man1/gtester.1* | |
6fa08951 | 273 | %endif |
c5cd89bd | 274 | |
5cb5b210 | 275 | %if %{with static_libs} |
c5cd89bd AF |
276 | %files static |
277 | %defattr(644,root,root,755) | |
1ebb8361 | 278 | %{_libdir}/libgio-2.0.a |
6fa08951 JB |
279 | %{_libdir}/libglib-2.0.a |
280 | %{_libdir}/libgmodule-2.0.a | |
281 | %{_libdir}/libgobject-2.0.a | |
282 | %{_libdir}/libgthread-2.0.a | |
511b979a | 283 | %endif |
9fd4432e JB |
284 | |
285 | %if %{with apidocs} | |
286 | %files apidocs | |
287 | %defattr(644,root,root,755) | |
1ebb8361 | 288 | %{_gtkdocdir}/gio |
6fa08951 JB |
289 | %{_gtkdocdir}/glib |
290 | %{_gtkdocdir}/gobject | |
9fd4432e | 291 | %endif |