]> git.pld-linux.org Git - packages/glib2.git/blob - glib2.spec
- updated to 2.20.3
[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 %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.20.3
21 Release:        1
22 Epoch:          1
23 License:        LGPL v2+
24 Group:          Libraries
25 Source0:        http://ftp.gnome.org/pub/GNOME/sources/glib/2.20/glib-%{version}.tar.bz2
26 # Source0-md5:  1173688c58b4b62809c83bb07a2cf71a
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 %{!?with_apidocs:BuildRequires: sed >= 4.0}
45 Requires:       iconv
46 Requires:       pcre >= 7.8
47 Provides:       glib2-libs
48 Obsoletes:      glib2-libs
49 # sr@Latn vs. sr@latin
50 Conflicts:      glibc-misc < 6:2.7
51 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
52
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
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.
62
63 %description -l da.UTF-8
64 Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker
65 og headerfiler er i glib-devel pakken.
66
67 %description -l de.UTF-8
68 Eine nützliche Library von Dienstprogramm-Funktionen.
69 Entwicklungs-Libraries und Header befinden sich in glib-devel.
70
71 %description -l es.UTF-8
72 Conjunto de funciones utilitarias. Bibliotecas de desarrollo y
73 archivos de inclusión están en glib-devel.
74
75 %description -l fi.UTF-8
76 Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja
77 header-tiedostot ovat glib-devel-paketissa.
78
79 %description -l ja.UTF-8
80 GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、
81 いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい
82 関数を提供します。
83
84 GLibはGDK,
85 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
126 もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト
127 ールしてください。
128
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ę.
132
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.
137
138 %package static
139 Summary:        Static GLib libraries
140 Summary(pl.UTF-8):      Biblioteki statyczne GLib
141 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com GLib
142 Group:          Development/Libraries
143 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
144
145 %description static
146 Static GLib libraries.
147
148 %description static -l pl.UTF-8
149 Biblioteki statyczne GLib.
150
151 %description static -l pt_BR.UTF-8
152 Bibliotecas estáticas para desenvolvimento com GLib.
153
154 %package apidocs
155 Summary:        GLib API documetation
156 Summary(pl.UTF-8):      Dokumentacja API GLib
157 Group:          Documentation
158 Requires:       gtk-doc-common
159
160 %description apidocs
161 GLib API documetation.
162
163 %description apidocs -l pl.UTF-8
164 Dokumentacja API GLib.
165
166 %prep
167 %setup -q -n glib-%{version}
168 %patch0 -p1
169
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
175
176 %build
177 %{?with_apidocs:%{__gtkdocize}}
178 %{__libtoolize}
179 %{__aclocal} -I m4macros
180 %{__autoconf}
181 %{__autoheader}
182 %{__automake}
183 %configure \
184         --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
185         %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
186         --%{?with_selinux:en}%{!?with_selinux:dis}able-selinux \
187         --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
188         --enable-debug=%{?debug:yes} \
189         --enable-man \
190         --enable-threads \
191         --with-pcre=system
192
193 %{__make}
194
195 %install
196 rm -rf $RPM_BUILD_ROOT
197
198 %{__make} install \
199         DESTDIR=$RPM_BUILD_ROOT \
200         m4datadir=%{_aclocaldir} \
201         pkgconfigdir=%{_pkgconfigdir}
202
203 rm -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.{la,a}
204
205 %find_lang glib20
206
207 %clean
208 rm -rf $RPM_BUILD_ROOT
209
210 %post   -p /sbin/ldconfig
211 %postun -p /sbin/ldconfig
212
213 %files -f glib20.lang
214 %defattr(644,root,root,755)
215 %doc AUTHORS README NEWS
216 %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.*
217 %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0
218 %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.*
219 %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0
220 %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.*
221 %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0
222 %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.*
223 %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0
224 %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.*
225 %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0
226 %dir %{_libdir}/gio
227 %dir %{_libdir}/gio/modules
228 %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so
229
230 %files devel
231 %defattr(644,root,root,755)
232 %doc ChangeLog
233 %attr(755,root,root) %{_bindir}/glib-genmarshal
234 %attr(755,root,root) %{_bindir}/glib-gettextize
235 %attr(755,root,root) %{_bindir}/glib-mkenums
236 %attr(755,root,root) %{_bindir}/gobject-query
237 %attr(755,root,root) %{_bindir}/gtester
238 %attr(755,root,root) %{_bindir}/gtester-report
239 %attr(755,root,root) %{_libdir}/libgio-2.0.so
240 %attr(755,root,root) %{_libdir}/libglib-2.0.so
241 %attr(755,root,root) %{_libdir}/libgmodule-2.0.so
242 %attr(755,root,root) %{_libdir}/libgobject-2.0.so
243 %attr(755,root,root) %{_libdir}/libgthread-2.0.so
244 %{_libdir}/libgio-2.0.la
245 %{_libdir}/libglib-2.0.la
246 %{_libdir}/libgmodule-2.0.la
247 %{_libdir}/libgobject-2.0.la
248 %{_libdir}/libgthread-2.0.la
249 %dir %{_datadir}/glib-2.0
250 %dir %{_datadir}/glib-2.0/gettext
251 %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs
252 %{_datadir}/glib-2.0/gettext/po
253 %{_pkgconfigdir}/gio-2.0.pc
254 %{_pkgconfigdir}/gio-unix-2.0.pc
255 %{_pkgconfigdir}/glib-2.0.pc
256 %{_pkgconfigdir}/gmodule-2.0.pc
257 %{_pkgconfigdir}/gmodule-export-2.0.pc
258 %{_pkgconfigdir}/gmodule-no-export-2.0.pc
259 %{_pkgconfigdir}/gobject-2.0.pc
260 %{_pkgconfigdir}/gthread-2.0.pc
261 %{_libdir}/glib-2.0
262 %{_includedir}/gio-unix-2.0
263 %{_includedir}/glib-2.0
264 %{_aclocaldir}/glib-2.0.m4
265 %{_aclocaldir}/glib-gettext.m4
266 %if %{with apidocs}
267 %{_mandir}/man1/glib-genmarshal.1*
268 %{_mandir}/man1/glib-gettextize.1*
269 %{_mandir}/man1/glib-mkenums.1*
270 %{_mandir}/man1/gobject-query.1*
271 %{_mandir}/man1/gtester-report.1*
272 %{_mandir}/man1/gtester.1*
273 %endif
274
275 %if %{with static_libs}
276 %files static
277 %defattr(644,root,root,755)
278 %{_libdir}/libgio-2.0.a
279 %{_libdir}/libglib-2.0.a
280 %{_libdir}/libgmodule-2.0.a
281 %{_libdir}/libgobject-2.0.a
282 %{_libdir}/libgthread-2.0.a
283 %endif
284
285 %if %{with apidocs}
286 %files apidocs
287 %defattr(644,root,root,755)
288 %{_gtkdocdir}/gio
289 %{_gtkdocdir}/glib
290 %{_gtkdocdir}/gobject
291 %endif
This page took 0.095478 seconds and 4 git commands to generate.