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