]>
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 |
75195290 | 20 | Version: 2.22.5 |
b2fe5363 | 21 | Release: 1 |
f4f2082a | 22 | Epoch: 1 |
d9eae184 | 23 | License: LGPL v2+ |
c5cd89bd | 24 | Group: Libraries |
39b3994f | 25 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.22/glib-%{version}.tar.bz2 |
75195290 | 26 | # Source0-md5: 63413f704c2b07d6e81469b25cff5e60 |
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 |
efcfa2fc ŁK |
35 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.11} |
36 | %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.11} | |
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言語用ライブラリは、 | |
75195290 | 81 | いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい 関数を提供します。 |
fac1fbe3 | 82 | |
75195290 | 83 | GLibはGDK, GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション |
1ccef3e3 | 84 | 等のためにこのglibパッケージをインストールしてください。 |
fac1fbe3 | 85 | |
1ccef3e3 | 86 | %description -l pl.UTF-8 |
045fa5ec | 87 | GLib jest zestawem bibliotek zawierających funkcje do obsługi list i |
1ccef3e3 JR |
88 | drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych |
89 | podstawowych funkcji i różnych struktur danych używanych przez program | |
fac1fbe3 | 90 | GIMP i wiele innych. |
91 | ||
1ccef3e3 JR |
92 | %description -l pt_BR.UTF-8 |
93 | Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e | |
94 | arquivos de inclusão estão em glib-devel. | |
c5cd89bd | 95 | |
1ccef3e3 JR |
96 | %description -l tr.UTF-8 |
97 | Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık | |
98 | dosyaları glib-devel paketinde yer almaktadır. | |
c5cd89bd AF |
99 | |
100 | %package devel | |
045fa5ec | 101 | Summary: GLib heades files, documentation |
d62bd2ce | 102 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo |
045fa5ec | 103 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GLib |
d62bd2ce | 104 | Summary(pt_BR.UTF-8): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP |
c5cd89bd | 105 | Group: Development/Libraries |
4d5d23a0 | 106 | Requires: %{name} = %{epoch}:%{version}-%{release} |
27108172 | 107 | Requires: pcre-devel >= 7.8 |
f16b8cb0 JB |
108 | # gio only |
109 | %{?with_selinux:Requires: libselinux-devel} | |
c5cd89bd AF |
110 | |
111 | %description devel | |
112 | Header files for the support library for the GIMP's X libraries, which | |
045fa5ec | 113 | are available as public libraries. GLib includes generally useful data |
c5cd89bd AF |
114 | structures. |
115 | ||
1ccef3e3 JR |
116 | %description devel -l es.UTF-8 |
117 | Conjunto de funciones gráficas utilitarias para desarrollo. | |
fac1fbe3 | 118 | |
1ccef3e3 JR |
119 | %description devel -l ja.UTF-8 |
120 | glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群 | |
75195290 | 121 | (GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが 含まれています。 |
fac1fbe3 | 122 | |
75195290 | 123 | もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト ールしてください。 |
fac1fbe3 | 124 | |
1ccef3e3 | 125 | %description devel -l pl.UTF-8 |
045fa5ec | 126 | Pliki nagłówkowe i dokumentacja do GLib przydatna przy pisaniu |
1ccef3e3 | 127 | programów wykorzystujących tę bibliotekę. |
c5cd89bd | 128 | |
1ccef3e3 JR |
129 | %description devel -l pt_BR.UTF-8 |
130 | Bibliotecas e arquivos de inclusão para a biblioteca de suporte para | |
131 | as bibliotecas X do GIMP, que são disponíveis como bibliotecas | |
045fa5ec | 132 | públicas. A GLib inclui estruturas de dados genéricas úteis. |
fac1fbe3 | 133 | |
c5cd89bd | 134 | %package static |
045fa5ec MB |
135 | Summary: Static GLib libraries |
136 | Summary(pl.UTF-8): Biblioteki statyczne GLib | |
137 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com GLib | |
c5cd89bd | 138 | Group: Development/Libraries |
e9536dab | 139 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
c5cd89bd AF |
140 | |
141 | %description static | |
045fa5ec | 142 | Static GLib libraries. |
c5cd89bd | 143 | |
1ccef3e3 | 144 | %description static -l pl.UTF-8 |
045fa5ec | 145 | Biblioteki statyczne GLib. |
c5cd89bd | 146 | |
1ccef3e3 | 147 | %description static -l pt_BR.UTF-8 |
045fa5ec | 148 | Bibliotecas estáticas para desenvolvimento com GLib. |
fac1fbe3 | 149 | |
9fd4432e | 150 | %package apidocs |
045fa5ec MB |
151 | Summary: GLib API documetation |
152 | Summary(pl.UTF-8): Dokumentacja API GLib | |
9fd4432e JB |
153 | Group: Documentation |
154 | Requires: gtk-doc-common | |
155 | ||
156 | %description apidocs | |
045fa5ec | 157 | GLib API documetation. |
9fd4432e | 158 | |
1ccef3e3 | 159 | %description apidocs -l pl.UTF-8 |
045fa5ec | 160 | Dokumentacja API GLib. |
9fd4432e | 161 | |
c5cd89bd | 162 | %prep |
9c7ef8c6 | 163 | %setup -q -n glib-%{version} |
f29ca197 | 164 | %patch0 -p1 |
cac85f6c | 165 | |
d0edc3ae | 166 | %if !%{with apidocs} |
167 | sed -e '/SUBDIRS/s/docs//' -i Makefile.am | |
168 | sed -e '/^docs.*Makefile$/d' -i configure.in | |
169 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 | |
170 | %endif | |
c5cd89bd AF |
171 | |
172 | %build | |
5c21d4b9 | 173 | %{?with_apidocs:%{__gtkdocize}} |
5294c0c5 | 174 | %{__libtoolize} |
f562fe91 | 175 | %{__aclocal} -I m4macros |
5afe4131 | 176 | %{__autoconf} |
7fbaba5f | 177 | %{__autoheader} |
5294c0c5 | 178 | %{__automake} |
c5cd89bd | 179 | %configure \ |
e051a6b2 | 180 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
181 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ | |
2f90d369 | 182 | --%{?with_selinux:en}%{!?with_selinux:dis}able-selinux \ |
e051a6b2 | 183 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \ |
dd7b40ff | 184 | --enable-debug=%{?debug:yes} \ |
511b979a | 185 | --enable-man \ |
ad8e0c63 JB |
186 | --enable-threads \ |
187 | --with-pcre=system | |
e051a6b2 | 188 | |
56faf6a4 | 189 | %{__make} |
c5cd89bd AF |
190 | |
191 | %install | |
192 | rm -rf $RPM_BUILD_ROOT | |
9ae10cd0 | 193 | |
c5cd89bd AF |
194 | %{__make} install \ |
195 | DESTDIR=$RPM_BUILD_ROOT \ | |
5216d86c | 196 | m4datadir=%{_aclocaldir} \ |
4469893c | 197 | pkgconfigdir=%{_pkgconfigdir} |
c5cd89bd | 198 | |
1ebb8361 MB |
199 | rm -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.{la,a} |
200 | ||
1ebb8361 | 201 | %find_lang glib20 |
2a2588d0 | 202 | |
c5cd89bd AF |
203 | %clean |
204 | rm -rf $RPM_BUILD_ROOT | |
205 | ||
4d5d23a0 | 206 | %post -p /sbin/ldconfig |
207 | %postun -p /sbin/ldconfig | |
27d447ab | 208 | |
d0edc3ae | 209 | %files -f glib20.lang |
c5cd89bd | 210 | %defattr(644,root,root,755) |
beac3f53 | 211 | %doc AUTHORS README NEWS |
1ebb8361 MB |
212 | %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.* |
213 | %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0 | |
6fa08951 JB |
214 | %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.* |
215 | %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0 | |
216 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.* | |
217 | %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0 | |
218 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.* | |
219 | %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0 | |
220 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.* | |
221 | %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0 | |
1ebb8361 MB |
222 | %dir %{_libdir}/gio |
223 | %dir %{_libdir}/gio/modules | |
224 | %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so | |
c5cd89bd AF |
225 | |
226 | %files devel | |
227 | %defattr(644,root,root,755) | |
beac3f53 | 228 | %doc ChangeLog |
6fa08951 JB |
229 | %attr(755,root,root) %{_bindir}/glib-genmarshal |
230 | %attr(755,root,root) %{_bindir}/glib-gettextize | |
231 | %attr(755,root,root) %{_bindir}/glib-mkenums | |
232 | %attr(755,root,root) %{_bindir}/gobject-query | |
1ebb8361 MB |
233 | %attr(755,root,root) %{_bindir}/gtester |
234 | %attr(755,root,root) %{_bindir}/gtester-report | |
235 | %attr(755,root,root) %{_libdir}/libgio-2.0.so | |
6fa08951 JB |
236 | %attr(755,root,root) %{_libdir}/libglib-2.0.so |
237 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so | |
238 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so | |
239 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so | |
1ebb8361 | 240 | %{_libdir}/libgio-2.0.la |
6fa08951 JB |
241 | %{_libdir}/libglib-2.0.la |
242 | %{_libdir}/libgmodule-2.0.la | |
243 | %{_libdir}/libgobject-2.0.la | |
244 | %{_libdir}/libgthread-2.0.la | |
7191dcf9 | 245 | %dir %{_datadir}/glib-2.0 |
246 | %dir %{_datadir}/glib-2.0/gettext | |
247 | %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs | |
248 | %{_datadir}/glib-2.0/gettext/po | |
1ebb8361 MB |
249 | %{_pkgconfigdir}/gio-2.0.pc |
250 | %{_pkgconfigdir}/gio-unix-2.0.pc | |
6fa08951 JB |
251 | %{_pkgconfigdir}/glib-2.0.pc |
252 | %{_pkgconfigdir}/gmodule-2.0.pc | |
253 | %{_pkgconfigdir}/gmodule-export-2.0.pc | |
254 | %{_pkgconfigdir}/gmodule-no-export-2.0.pc | |
255 | %{_pkgconfigdir}/gobject-2.0.pc | |
256 | %{_pkgconfigdir}/gthread-2.0.pc | |
1ebb8361 MB |
257 | %{_libdir}/glib-2.0 |
258 | %{_includedir}/gio-unix-2.0 | |
259 | %{_includedir}/glib-2.0 | |
6fa08951 JB |
260 | %{_aclocaldir}/glib-2.0.m4 |
261 | %{_aclocaldir}/glib-gettext.m4 | |
262 | %if %{with apidocs} | |
263 | %{_mandir}/man1/glib-genmarshal.1* | |
264 | %{_mandir}/man1/glib-gettextize.1* | |
265 | %{_mandir}/man1/glib-mkenums.1* | |
266 | %{_mandir}/man1/gobject-query.1* | |
848cb578 MB |
267 | %{_mandir}/man1/gtester-report.1* |
268 | %{_mandir}/man1/gtester.1* | |
6fa08951 | 269 | %endif |
c5cd89bd | 270 | |
5cb5b210 | 271 | %if %{with static_libs} |
c5cd89bd AF |
272 | %files static |
273 | %defattr(644,root,root,755) | |
1ebb8361 | 274 | %{_libdir}/libgio-2.0.a |
6fa08951 JB |
275 | %{_libdir}/libglib-2.0.a |
276 | %{_libdir}/libgmodule-2.0.a | |
277 | %{_libdir}/libgobject-2.0.a | |
278 | %{_libdir}/libgthread-2.0.a | |
511b979a | 279 | %endif |
9fd4432e JB |
280 | |
281 | %if %{with apidocs} | |
282 | %files apidocs | |
283 | %defattr(644,root,root,755) | |
1ebb8361 | 284 | %{_gtkdocdir}/gio |
6fa08951 JB |
285 | %{_gtkdocdir}/glib |
286 | %{_gtkdocdir}/gobject | |
9fd4432e | 287 | %endif |