]>
Commit | Line | Data |
---|---|---|
2f90d369 SS |
1 | # TODO: |
2 | # fix selinux mess: | |
2f90d369 SS |
3 | # add -lselinux to gio-2.0 |
4 | # what about libselinux-devel in glib2-devel | |
680072d1 | 5 | # |
dc8ca89f | 6 | # Conditional build: |
e051a6b2 | 7 | %bcond_without apidocs # disable gtk-doc |
5cb5b210 | 8 | %bcond_without static_libs # don't build static library |
2f90d369 | 9 | %bcond_with selinux # gio with selinux support |
dc8ca89f | 10 | # |
c5cd89bd | 11 | Summary: Useful routines for 'C' programming |
d62bd2ce ER |
12 | Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy |
13 | Summary(da.UTF-8): Nyttige biblioteksfunktioner | |
14 | Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen | |
15 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias | |
16 | Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita | |
17 | Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires | |
18 | Summary(ja.UTF-8): 便利なユーティリティ関数のライブラリ | |
19 | Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C | |
20 | Summary(pt_BR.UTF-8): Conjunto de funções gráficas utilitárias | |
21 | Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı | |
22 | Summary(zh_CN.UTF-8): 实用工具函数库 | |
184f9dda | 23 | Name: glib2 |
54c723ff | 24 | Version: 2.16.1 |
b3409fb4 | 25 | Release: 3 |
f4f2082a | 26 | Epoch: 1 |
d9eae184 | 27 | License: LGPL v2+ |
c5cd89bd | 28 | Group: Libraries |
1ebb8361 | 29 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.16/glib-%{version}.tar.bz2 |
54c723ff | 30 | # Source0-md5: 9852daf0605f827bfd7199ffe4f5b22d |
0a6ddb4c | 31 | Patch0: %{name}-makefile.patch |
229ef2e8 | 32 | Patch1: %{name}-lt.patch |
7a9d6178 | 33 | Patch2: %{name}-selinux.patch |
c5cd89bd | 34 | URL: http://www.gtk.org/ |
4469893c | 35 | BuildRequires: autoconf >= 2.54 |
8811444b | 36 | BuildRequires: automake >= 1:1.7 |
f562fe91 | 37 | BuildRequires: docbook-dtd412-xml |
38 | BuildRequires: docbook-style-xsl | |
1ebb8361 | 39 | BuildRequires: fam-devel |
d0edc3ae | 40 | BuildRequires: gettext-devel |
f37af358 MB |
41 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.8} |
42 | %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.8} | |
2f90d369 | 43 | %{?with_selinux:BuildRequires: libselinux-devel} |
4469893c | 44 | BuildRequires: libtool >= 1:1.4.2-9 |
4faf1d51 | 45 | BuildRequires: pcre-devel >= 7.6 |
f562fe91 | 46 | BuildRequires: perl-base |
1ebb8361 | 47 | BuildRequires: pkgconfig >= 1:0.16.0 |
dd7b40ff | 48 | BuildRequires: rpmbuild(macros) >= 1.197 |
d0edc3ae | 49 | %{!?with_apidocs:BuildRequires: sed >= 4.0} |
c47711ba | 50 | Requires: iconv |
4faf1d51 | 51 | Requires: pcre >= 7.6 |
81df0f8b | 52 | Provides: glib2-libs |
43f3147b | 53 | Obsoletes: glib2-libs |
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 | |
58 | lists, trees, hashes, memory allocation, and many other things. GLIB | |
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言語用ライブラリは、 | |
84 | いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい | |
85 | 関数を提供します。 | |
fac1fbe3 | 86 | |
1ccef3e3 JR |
87 | GLibはGDK, |
88 | GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション | |
89 | 等のためにこのglibパッケージをインストールしてください。 | |
fac1fbe3 | 90 | |
1ccef3e3 JR |
91 | %description -l pl.UTF-8 |
92 | Glib jest zestawem bibliotek zawierających funkcje do obsługi list i | |
93 | drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych | |
94 | podstawowych funkcji i różnych struktur danych używanych przez program | |
fac1fbe3 | 95 | GIMP i wiele innych. |
96 | ||
1ccef3e3 JR |
97 | %description -l pt_BR.UTF-8 |
98 | Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e | |
99 | arquivos de inclusão estão em glib-devel. | |
c5cd89bd | 100 | |
1ccef3e3 JR |
101 | %description -l tr.UTF-8 |
102 | Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık | |
103 | dosyaları glib-devel paketinde yer almaktadır. | |
c5cd89bd AF |
104 | |
105 | %package devel | |
106 | Summary: Glib heades files, documentation | |
d62bd2ce ER |
107 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo |
108 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do glib | |
109 | Summary(pt_BR.UTF-8): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP | |
c5cd89bd | 110 | Group: Development/Libraries |
4d5d23a0 | 111 | Requires: %{name} = %{epoch}:%{version}-%{release} |
4faf1d51 | 112 | Requires: pcre-devel >= 7.6 |
c5cd89bd AF |
113 | |
114 | %description devel | |
115 | Header files for the support library for the GIMP's X libraries, which | |
116 | are available as public libraries. GLIB includes generally useful data | |
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ライブラリ群 | |
124 | (GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが | |
125 | 含まれています。 | |
fac1fbe3 | 126 | |
1ccef3e3 JR |
127 | もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト |
128 | ールしてください。 | |
fac1fbe3 | 129 | |
1ccef3e3 JR |
130 | %description devel -l pl.UTF-8 |
131 | Pliki nagłówkowe i dokumentacja do glib przydatna przy pisaniu | |
132 | programów wykorzystujących tę bibliotekę. | |
c5cd89bd | 133 | |
1ccef3e3 JR |
134 | %description devel -l pt_BR.UTF-8 |
135 | Bibliotecas e arquivos de inclusão para a biblioteca de suporte para | |
136 | as bibliotecas X do GIMP, que são disponíveis como bibliotecas | |
137 | públicas. A GLIB inclui estruturas de dados genéricas úteis. | |
fac1fbe3 | 138 | |
c5cd89bd AF |
139 | %package static |
140 | Summary: Static glib libraries | |
d62bd2ce ER |
141 | Summary(pl.UTF-8): Biblioteki statyczne glib |
142 | Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com glib | |
c5cd89bd | 143 | Group: Development/Libraries |
e9536dab | 144 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
c5cd89bd AF |
145 | |
146 | %description static | |
147 | Static glib libraries. | |
148 | ||
1ccef3e3 | 149 | %description static -l pl.UTF-8 |
27d447ab | 150 | Biblioteki statyczne glib. |
c5cd89bd | 151 | |
1ccef3e3 JR |
152 | %description static -l pt_BR.UTF-8 |
153 | Bibliotecas estáticas para desenvolvimento com glib. | |
fac1fbe3 | 154 | |
9fd4432e JB |
155 | %package apidocs |
156 | Summary: Glib API documetation | |
d62bd2ce | 157 | Summary(pl.UTF-8): Dokumentacja API Glib |
9fd4432e JB |
158 | Group: Documentation |
159 | Requires: gtk-doc-common | |
160 | ||
161 | %description apidocs | |
162 | Glib API documetation. | |
163 | ||
1ccef3e3 | 164 | %description apidocs -l pl.UTF-8 |
9fd4432e JB |
165 | Dokumentacja API Glib. |
166 | ||
c5cd89bd | 167 | %prep |
9c7ef8c6 | 168 | %setup -q -n glib-%{version} |
f29ca197 | 169 | %patch0 -p1 |
99d1d1ae | 170 | %patch1 -p1 |
7a9d6178 | 171 | %patch2 -p1 |
cac85f6c | 172 | |
d0edc3ae | 173 | %if !%{with apidocs} |
174 | sed -e '/SUBDIRS/s/docs//' -i Makefile.am | |
175 | sed -e '/^docs.*Makefile$/d' -i configure.in | |
176 | echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4 | |
177 | %endif | |
c5cd89bd AF |
178 | |
179 | %build | |
5c21d4b9 | 180 | %{?with_apidocs:%{__gtkdocize}} |
5294c0c5 | 181 | %{__libtoolize} |
f562fe91 | 182 | %{__aclocal} -I m4macros |
5afe4131 | 183 | %{__autoconf} |
7fbaba5f | 184 | %{__autoheader} |
5294c0c5 | 185 | %{__automake} |
c5cd89bd | 186 | %configure \ |
e051a6b2 | 187 | --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \ |
188 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ | |
2f90d369 | 189 | --%{?with_selinux:en}%{!?with_selinux:dis}able-selinux \ |
e051a6b2 | 190 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \ |
dd7b40ff | 191 | --enable-debug=%{?debug:yes} \ |
511b979a | 192 | --enable-man \ |
ad8e0c63 JB |
193 | --enable-threads \ |
194 | --with-pcre=system | |
e051a6b2 | 195 | |
56faf6a4 | 196 | %{__make} |
c5cd89bd AF |
197 | |
198 | %install | |
199 | rm -rf $RPM_BUILD_ROOT | |
9ae10cd0 | 200 | |
c5cd89bd AF |
201 | %{__make} install \ |
202 | DESTDIR=$RPM_BUILD_ROOT \ | |
5216d86c | 203 | m4datadir=%{_aclocaldir} \ |
4469893c | 204 | pkgconfigdir=%{_pkgconfigdir} |
c5cd89bd | 205 | |
1ebb8361 MB |
206 | rm -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.{la,a} |
207 | ||
1ebb8361 | 208 | %find_lang glib20 |
2a2588d0 | 209 | |
c5cd89bd AF |
210 | %clean |
211 | rm -rf $RPM_BUILD_ROOT | |
212 | ||
4d5d23a0 | 213 | %post -p /sbin/ldconfig |
214 | %postun -p /sbin/ldconfig | |
27d447ab | 215 | |
d0edc3ae | 216 | %files -f glib20.lang |
c5cd89bd | 217 | %defattr(644,root,root,755) |
beac3f53 | 218 | %doc AUTHORS README NEWS |
1ebb8361 MB |
219 | %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.* |
220 | %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0 | |
6fa08951 JB |
221 | %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.* |
222 | %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0 | |
223 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.* | |
224 | %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0 | |
225 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.* | |
226 | %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0 | |
227 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.* | |
228 | %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0 | |
1ebb8361 MB |
229 | %dir %{_libdir}/gio |
230 | %dir %{_libdir}/gio/modules | |
231 | %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so | |
c5cd89bd AF |
232 | |
233 | %files devel | |
234 | %defattr(644,root,root,755) | |
beac3f53 | 235 | %doc ChangeLog |
6fa08951 JB |
236 | %attr(755,root,root) %{_bindir}/glib-genmarshal |
237 | %attr(755,root,root) %{_bindir}/glib-gettextize | |
238 | %attr(755,root,root) %{_bindir}/glib-mkenums | |
239 | %attr(755,root,root) %{_bindir}/gobject-query | |
1ebb8361 MB |
240 | %attr(755,root,root) %{_bindir}/gtester |
241 | %attr(755,root,root) %{_bindir}/gtester-report | |
242 | %attr(755,root,root) %{_libdir}/libgio-2.0.so | |
6fa08951 JB |
243 | %attr(755,root,root) %{_libdir}/libglib-2.0.so |
244 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so | |
245 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so | |
246 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so | |
1ebb8361 | 247 | %{_libdir}/libgio-2.0.la |
6fa08951 JB |
248 | %{_libdir}/libglib-2.0.la |
249 | %{_libdir}/libgmodule-2.0.la | |
250 | %{_libdir}/libgobject-2.0.la | |
251 | %{_libdir}/libgthread-2.0.la | |
7191dcf9 | 252 | %dir %{_datadir}/glib-2.0 |
253 | %dir %{_datadir}/glib-2.0/gettext | |
254 | %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs | |
255 | %{_datadir}/glib-2.0/gettext/po | |
1ebb8361 MB |
256 | %{_pkgconfigdir}/gio-2.0.pc |
257 | %{_pkgconfigdir}/gio-unix-2.0.pc | |
6fa08951 JB |
258 | %{_pkgconfigdir}/glib-2.0.pc |
259 | %{_pkgconfigdir}/gmodule-2.0.pc | |
260 | %{_pkgconfigdir}/gmodule-export-2.0.pc | |
261 | %{_pkgconfigdir}/gmodule-no-export-2.0.pc | |
262 | %{_pkgconfigdir}/gobject-2.0.pc | |
263 | %{_pkgconfigdir}/gthread-2.0.pc | |
1ebb8361 MB |
264 | %{_libdir}/glib-2.0 |
265 | %{_includedir}/gio-unix-2.0 | |
266 | %{_includedir}/glib-2.0 | |
6fa08951 JB |
267 | %{_aclocaldir}/glib-2.0.m4 |
268 | %{_aclocaldir}/glib-gettext.m4 | |
269 | %if %{with apidocs} | |
270 | %{_mandir}/man1/glib-genmarshal.1* | |
271 | %{_mandir}/man1/glib-gettextize.1* | |
272 | %{_mandir}/man1/glib-mkenums.1* | |
273 | %{_mandir}/man1/gobject-query.1* | |
274 | %endif | |
c5cd89bd | 275 | |
5cb5b210 | 276 | %if %{with static_libs} |
c5cd89bd AF |
277 | %files static |
278 | %defattr(644,root,root,755) | |
1ebb8361 | 279 | %{_libdir}/libgio-2.0.a |
6fa08951 JB |
280 | %{_libdir}/libglib-2.0.a |
281 | %{_libdir}/libgmodule-2.0.a | |
282 | %{_libdir}/libgobject-2.0.a | |
283 | %{_libdir}/libgthread-2.0.a | |
511b979a | 284 | %endif |
9fd4432e JB |
285 | |
286 | %if %{with apidocs} | |
287 | %files apidocs | |
288 | %defattr(644,root,root,755) | |
1ebb8361 | 289 | %{_gtkdocdir}/gio |
6fa08951 JB |
290 | %{_gtkdocdir}/glib |
291 | %{_gtkdocdir}/gobject | |
9fd4432e | 292 | %endif |