]>
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 |
71abd94b | 20 | Version: 2.18.4 |
6e61658e | 21 | Release: 1 |
f4f2082a | 22 | Epoch: 1 |
d9eae184 | 23 | License: LGPL v2+ |
c5cd89bd | 24 | Group: Libraries |
848cb578 | 25 | Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.18/glib-%{version}.tar.bz2 |
71abd94b | 26 | # Source0-md5: ec25ed261534d870141000ab73f1a2bf |
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 | |
55 | lists, trees, hashes, memory allocation, and many other things. GLIB | |
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 JR |
88 | %description -l pl.UTF-8 |
89 | Glib jest zestawem bibliotek zawierających funkcje do obsługi list i | |
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 | |
103 | Summary: Glib heades files, documentation | |
d62bd2ce ER |
104 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo |
105 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do glib | |
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 | |
115 | are available as public libraries. GLIB includes generally useful data | |
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 JR |
129 | %description devel -l pl.UTF-8 |
130 | Pliki nagłówkowe i dokumentacja do glib przydatna przy pisaniu | |
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 | |
136 | públicas. A GLIB inclui estruturas de dados genéricas úteis. | |
fac1fbe3 | 137 | |
c5cd89bd AF |
138 | %package static |
139 | Summary: Static glib libraries | |
d62bd2ce ER |
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 | |
146 | Static glib libraries. | |
147 | ||
1ccef3e3 | 148 | %description static -l pl.UTF-8 |
27d447ab | 149 | Biblioteki statyczne glib. |
c5cd89bd | 150 | |
1ccef3e3 JR |
151 | %description static -l pt_BR.UTF-8 |
152 | Bibliotecas estáticas para desenvolvimento com glib. | |
fac1fbe3 | 153 | |
9fd4432e JB |
154 | %package apidocs |
155 | Summary: Glib API documetation | |
d62bd2ce | 156 | Summary(pl.UTF-8): Dokumentacja API Glib |
9fd4432e JB |
157 | Group: Documentation |
158 | Requires: gtk-doc-common | |
159 | ||
160 | %description apidocs | |
161 | Glib API documetation. | |
162 | ||
1ccef3e3 | 163 | %description apidocs -l pl.UTF-8 |
9fd4432e JB |
164 | Dokumentacja API Glib. |
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 | ||
848cb578 MB |
205 | rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ps |
206 | ||
424a3c22 ER |
207 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
208 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
1ebb8361 | 209 | %find_lang glib20 |
2a2588d0 | 210 | |
c5cd89bd AF |
211 | %clean |
212 | rm -rf $RPM_BUILD_ROOT | |
213 | ||
4d5d23a0 | 214 | %post -p /sbin/ldconfig |
215 | %postun -p /sbin/ldconfig | |
27d447ab | 216 | |
d0edc3ae | 217 | %files -f glib20.lang |
c5cd89bd | 218 | %defattr(644,root,root,755) |
beac3f53 | 219 | %doc AUTHORS README NEWS |
1ebb8361 MB |
220 | %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.* |
221 | %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0 | |
6fa08951 JB |
222 | %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.* |
223 | %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0 | |
224 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.* | |
225 | %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0 | |
226 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.* | |
227 | %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0 | |
228 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.* | |
229 | %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0 | |
1ebb8361 MB |
230 | %dir %{_libdir}/gio |
231 | %dir %{_libdir}/gio/modules | |
232 | %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so | |
c5cd89bd AF |
233 | |
234 | %files devel | |
235 | %defattr(644,root,root,755) | |
beac3f53 | 236 | %doc ChangeLog |
6fa08951 JB |
237 | %attr(755,root,root) %{_bindir}/glib-genmarshal |
238 | %attr(755,root,root) %{_bindir}/glib-gettextize | |
239 | %attr(755,root,root) %{_bindir}/glib-mkenums | |
240 | %attr(755,root,root) %{_bindir}/gobject-query | |
1ebb8361 MB |
241 | %attr(755,root,root) %{_bindir}/gtester |
242 | %attr(755,root,root) %{_bindir}/gtester-report | |
243 | %attr(755,root,root) %{_libdir}/libgio-2.0.so | |
6fa08951 JB |
244 | %attr(755,root,root) %{_libdir}/libglib-2.0.so |
245 | %attr(755,root,root) %{_libdir}/libgmodule-2.0.so | |
246 | %attr(755,root,root) %{_libdir}/libgobject-2.0.so | |
247 | %attr(755,root,root) %{_libdir}/libgthread-2.0.so | |
1ebb8361 | 248 | %{_libdir}/libgio-2.0.la |
6fa08951 JB |
249 | %{_libdir}/libglib-2.0.la |
250 | %{_libdir}/libgmodule-2.0.la | |
251 | %{_libdir}/libgobject-2.0.la | |
252 | %{_libdir}/libgthread-2.0.la | |
7191dcf9 | 253 | %dir %{_datadir}/glib-2.0 |
254 | %dir %{_datadir}/glib-2.0/gettext | |
255 | %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs | |
256 | %{_datadir}/glib-2.0/gettext/po | |
1ebb8361 MB |
257 | %{_pkgconfigdir}/gio-2.0.pc |
258 | %{_pkgconfigdir}/gio-unix-2.0.pc | |
6fa08951 JB |
259 | %{_pkgconfigdir}/glib-2.0.pc |
260 | %{_pkgconfigdir}/gmodule-2.0.pc | |
261 | %{_pkgconfigdir}/gmodule-export-2.0.pc | |
262 | %{_pkgconfigdir}/gmodule-no-export-2.0.pc | |
263 | %{_pkgconfigdir}/gobject-2.0.pc | |
264 | %{_pkgconfigdir}/gthread-2.0.pc | |
1ebb8361 MB |
265 | %{_libdir}/glib-2.0 |
266 | %{_includedir}/gio-unix-2.0 | |
267 | %{_includedir}/glib-2.0 | |
6fa08951 JB |
268 | %{_aclocaldir}/glib-2.0.m4 |
269 | %{_aclocaldir}/glib-gettext.m4 | |
270 | %if %{with apidocs} | |
271 | %{_mandir}/man1/glib-genmarshal.1* | |
272 | %{_mandir}/man1/glib-gettextize.1* | |
273 | %{_mandir}/man1/glib-mkenums.1* | |
274 | %{_mandir}/man1/gobject-query.1* | |
848cb578 MB |
275 | %{_mandir}/man1/gtester-report.1* |
276 | %{_mandir}/man1/gtester.1* | |
6fa08951 | 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 |