]>
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 |
dc8ca89f | 5 | # |
c5cd89bd | 6 | Summary: Useful routines for 'C' programming |
d62bd2ce ER |
7 | Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy |
8 | Summary(da.UTF-8): Nyttige biblioteksfunktioner | |
9 | Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen | |
10 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias | |
11 | Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita | |
12 | Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires | |
13 | Summary(ja.UTF-8): 便利なユーティリティ関数のライブラリ | |
14 | Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C | |
15 | Summary(pt_BR.UTF-8): Conjunto de funções gráficas utilitárias | |
16 | Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı | |
17 | Summary(zh_CN.UTF-8): 实用工具函数库 | |
184f9dda | 18 | Name: glib2 |
146f74ed | 19 | Version: 2.12.11 |
992157db | 20 | Release: 2 |
f4f2082a | 21 | Epoch: 1 |
c5cd89bd AF |
22 | License: LGPL |
23 | Group: Libraries | |
639c9230 | 24 | Source0: ftp://ftp.gtk.org/pub/glib/2.12/glib-%{version}.tar.bz2 |
146f74ed | 25 | # Source0-md5: 077a9917b673a9a0bc63f351786dde24 |
0a6ddb4c | 26 | Patch0: %{name}-makefile.patch |
99d1d1ae | 27 | Patch1: %{name}-SEGV.patch |
cac85f6c | 28 | Patch2: %{name}-noarch.patch |
c5cd89bd | 29 | URL: http://www.gtk.org/ |
4469893c | 30 | BuildRequires: autoconf >= 2.54 |
8811444b | 31 | BuildRequires: automake >= 1:1.7 |
f562fe91 | 32 | BuildRequires: docbook-dtd412-xml |
33 | BuildRequires: docbook-style-xsl | |
d0edc3ae | 34 | BuildRequires: gettext-devel |
639c9230 | 35 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.7} |
36 | %{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.7} | |
4469893c | 37 | BuildRequires: libtool >= 1:1.4.2-9 |
f562fe91 | 38 | BuildRequires: perl-base |
d0edc3ae | 39 | BuildRequires: pkgconfig >= 1:0.14.0 |
dd7b40ff | 40 | BuildRequires: rpmbuild(macros) >= 1.197 |
d0edc3ae | 41 | %{!?with_apidocs:BuildRequires: sed >= 4.0} |
c47711ba | 42 | Requires: iconv |
992157db | 43 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
c5cd89bd AF |
44 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
45 | ||
c5cd89bd AF |
46 | %description |
47 | GLib, is a library which includes support routines for C such as | |
48 | lists, trees, hashes, memory allocation, and many other things. GLIB | |
49 | includes also generally useful data structures used by GIMP and many | |
50 | other. | |
51 | ||
1ccef3e3 JR |
52 | %description -l cs.UTF-8 |
53 | Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a | |
54 | hlavičky jsou v balíčku glib-devel. | |
c5cd89bd | 55 | |
1ccef3e3 | 56 | %description -l da.UTF-8 |
c5cd89bd AF |
57 | Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker |
58 | og headerfiler er i glib-devel pakken. | |
59 | ||
1ccef3e3 JR |
60 | %description -l de.UTF-8 |
61 | Eine nützliche Library von Dienstprogramm-Funktionen. | |
c5cd89bd AF |
62 | Entwicklungs-Libraries und Header befinden sich in glib-devel. |
63 | ||
1ccef3e3 | 64 | %description -l es.UTF-8 |
fac1fbe3 | 65 | Conjunto de funciones utilitarias. Bibliotecas de desarrollo y |
1ccef3e3 | 66 | archivos de inclusión están en glib-devel. |
fac1fbe3 | 67 | |
1ccef3e3 JR |
68 | %description -l fi.UTF-8 |
69 | Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja | |
b19705b9 | 70 | header-tiedostot ovat glib-devel-paketissa. |
c5cd89bd | 71 | |
1ccef3e3 JR |
72 | %description -l ja.UTF-8 |
73 | GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、 | |
74 | いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい | |
75 | 関数を提供します。 | |
fac1fbe3 | 76 | |
1ccef3e3 JR |
77 | GLibはGDK, |
78 | GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション | |
79 | 等のためにこのglibパッケージをインストールしてください。 | |
fac1fbe3 | 80 | |
1ccef3e3 JR |
81 | %description -l pl.UTF-8 |
82 | Glib jest zestawem bibliotek zawierających funkcje do obsługi list i | |
83 | drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych | |
84 | podstawowych funkcji i różnych struktur danych używanych przez program | |
fac1fbe3 | 85 | GIMP i wiele innych. |
86 | ||
1ccef3e3 JR |
87 | %description -l pt_BR.UTF-8 |
88 | Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e | |
89 | arquivos de inclusão estão em glib-devel. | |
c5cd89bd | 90 | |
1ccef3e3 JR |
91 | %description -l tr.UTF-8 |
92 | Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık | |
93 | dosyaları glib-devel paketinde yer almaktadır. | |
c5cd89bd | 94 | |
992157db ER |
95 | %package libs |
96 | Summary: Shared Glib libraries | |
de827ff9 | 97 | Summary(pl.UTF-8): Biblioteki współdzielone Glib |
992157db ER |
98 | Group: Libraries |
99 | Conflicts: glib2 < 1:2.12.11-2 | |
100 | ||
101 | %description libs | |
102 | Glib shared libraries. | |
103 | ||
78c19640 | 104 | %description libs -l pl.UTF-8 |
de827ff9 | 105 | Biblioteki współdzielone Glib. |
78c19640 | 106 | |
c5cd89bd AF |
107 | %package devel |
108 | Summary: Glib heades files, documentation | |
d62bd2ce ER |
109 | Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo |
110 | Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do glib | |
111 | Summary(pt_BR.UTF-8): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP | |
c5cd89bd | 112 | Group: Development/Libraries |
992157db | 113 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
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 |
cac85f6c AM |
172 | %patch2 -p1 |
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}} \ | |
190 | --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \ | |
dd7b40ff | 191 | --enable-debug=%{?debug:yes} \ |
511b979a | 192 | --enable-man \ |
e051a6b2 | 193 | --enable-threads |
194 | ||
56faf6a4 | 195 | %{__make} |
c5cd89bd AF |
196 | |
197 | %install | |
198 | rm -rf $RPM_BUILD_ROOT | |
9ae10cd0 | 199 | |
c5cd89bd AF |
200 | %{__make} install \ |
201 | DESTDIR=$RPM_BUILD_ROOT \ | |
5216d86c | 202 | m4datadir=%{_aclocaldir} \ |
4469893c | 203 | pkgconfigdir=%{_pkgconfigdir} |
c5cd89bd | 204 | |
d0edc3ae | 205 | %find_lang glib20 --with-gnome |
2a2588d0 | 206 | |
c5cd89bd AF |
207 | %clean |
208 | rm -rf $RPM_BUILD_ROOT | |
209 | ||
992157db ER |
210 | %post libs -p /sbin/ldconfig |
211 | %postun libs -p /sbin/ldconfig | |
27d447ab | 212 | |
d0edc3ae | 213 | %files -f glib20.lang |
c5cd89bd | 214 | %defattr(644,root,root,755) |
beac3f53 | 215 | %doc AUTHORS README NEWS |
992157db ER |
216 | |
217 | %files libs | |
218 | %defattr(644,root,root,755) | |
4469893c | 219 | %attr(755,root,root) %{_libdir}/lib*.so.*.* |
c5cd89bd AF |
220 | |
221 | %files devel | |
222 | %defattr(644,root,root,755) | |
beac3f53 | 223 | %doc ChangeLog |
9ae10cd0 | 224 | %attr(755,root,root) %{_bindir}/* |
c5cd89bd | 225 | %attr(755,root,root) %{_libdir}/lib*.so |
77436cc7 | 226 | %{_libdir}/lib*.la |
7191dcf9 | 227 | %dir %{_datadir}/glib-2.0 |
228 | %dir %{_datadir}/glib-2.0/gettext | |
229 | %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs | |
230 | %{_datadir}/glib-2.0/gettext/po | |
5216d86c | 231 | %{_pkgconfigdir}/* |
232 | %{_libdir}/glib-2.0 | |
c5cd89bd AF |
233 | %{_includedir}/* |
234 | %{_aclocaldir}/* | |
d0edc3ae | 235 | %{?with_apidocs:%{_mandir}/man?/*} |
c5cd89bd | 236 | |
5cb5b210 | 237 | %if %{with static_libs} |
c5cd89bd AF |
238 | %files static |
239 | %defattr(644,root,root,755) | |
240 | %{_libdir}/lib*.a | |
511b979a | 241 | %endif |
9fd4432e JB |
242 | |
243 | %if %{with apidocs} | |
244 | %files apidocs | |
245 | %defattr(644,root,root,755) | |
246 | %{_gtkdocdir}/* | |
247 | %endif |