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