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