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