]> git.pld-linux.org Git - packages/glib2.git/blob - glib2.spec
- merged from DEVEL
[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.24.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.24/glib-%{version}.tar.bz2
26 # Source0-md5:  45a8bc697d07f859566c0b64c40382a8
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 %prep
164 %setup -q -n glib-%{version}
165 %patch0 -p1
166 sed -i s#^en@shaw## po/LINGUAS
167 rm po/en@shaw.po
168
169 %if !%{with apidocs}
170 sed -e '/SUBDIRS/s/docs//' -i Makefile.am
171 sed -e '/^docs.*Makefile$/d' -i configure.in
172 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
173 %endif
174
175 %build
176 %{?with_apidocs:%{__gtkdocize}}
177 %{__libtoolize}
178 %{__aclocal} -I m4macros
179 %{__autoconf}
180 %{__autoheader}
181 %{__automake}
182 %configure \
183         --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
184         %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
185         --%{?with_selinux:en}%{!?with_selinux:dis}able-selinux \
186         --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
187         --enable-debug=%{?debug:yes} \
188         --enable-man \
189         --enable-threads \
190         --with-pcre=system
191
192 %{__make}
193
194 %install
195 rm -rf $RPM_BUILD_ROOT
196
197 %{__make} install \
198         DESTDIR=$RPM_BUILD_ROOT \
199         m4datadir=%{_aclocaldir} \
200         pkgconfigdir=%{_pkgconfigdir}
201
202 > $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache
203
204 rm -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.{la,a}
205
206 %find_lang glib20
207
208 %clean
209 rm -rf $RPM_BUILD_ROOT
210
211 %post
212 /sbin/ldconfig
213
214 umask 022
215 %{_bindir}/gio-querymodules %{_libdir}/gio/modules
216 exit 0
217
218 %postun -p /sbin/ldconfig
219
220 %files -f glib20.lang
221 %defattr(644,root,root,755)
222 %doc AUTHORS README NEWS
223 %attr(755,root,root) %{_bindir}/gio-querymodules
224 %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.*
225 %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0
226 %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.*
227 %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0
228 %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.*
229 %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0
230 %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.*
231 %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0
232 %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.*
233 %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0
234 %dir %{_libdir}/gio
235 %dir %{_libdir}/gio/modules
236 %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so
237 %ghost %{_libdir}/gio/modules/giomodule.cache
238
239 %files devel
240 %defattr(644,root,root,755)
241 %doc ChangeLog
242 %attr(755,root,root) %{_bindir}/glib-genmarshal
243 %attr(755,root,root) %{_bindir}/glib-gettextize
244 %attr(755,root,root) %{_bindir}/glib-mkenums
245 %attr(755,root,root) %{_bindir}/gobject-query
246 %attr(755,root,root) %{_bindir}/gtester
247 %attr(755,root,root) %{_bindir}/gtester-report
248 %attr(755,root,root) %{_libdir}/libgio-2.0.so
249 %attr(755,root,root) %{_libdir}/libglib-2.0.so
250 %attr(755,root,root) %{_libdir}/libgmodule-2.0.so
251 %attr(755,root,root) %{_libdir}/libgobject-2.0.so
252 %attr(755,root,root) %{_libdir}/libgthread-2.0.so
253 %{_libdir}/libgio-2.0.la
254 %{_libdir}/libglib-2.0.la
255 %{_libdir}/libgmodule-2.0.la
256 %{_libdir}/libgobject-2.0.la
257 %{_libdir}/libgthread-2.0.la
258 %dir %{_datadir}/glib-2.0
259 %dir %{_datadir}/glib-2.0/gettext
260 %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs
261 %{_datadir}/glib-2.0/gettext/po
262 %{_pkgconfigdir}/gio-2.0.pc
263 %{_pkgconfigdir}/gio-unix-2.0.pc
264 %{_pkgconfigdir}/glib-2.0.pc
265 %{_pkgconfigdir}/gmodule-2.0.pc
266 %{_pkgconfigdir}/gmodule-export-2.0.pc
267 %{_pkgconfigdir}/gmodule-no-export-2.0.pc
268 %{_pkgconfigdir}/gobject-2.0.pc
269 %{_pkgconfigdir}/gthread-2.0.pc
270 %{_libdir}/glib-2.0
271 %{_includedir}/gio-unix-2.0
272 %{_includedir}/glib-2.0
273 %{_aclocaldir}/glib-2.0.m4
274 %{_aclocaldir}/glib-gettext.m4
275 %if %{with apidocs}
276 %{_mandir}/man1/glib-genmarshal.1*
277 %{_mandir}/man1/glib-gettextize.1*
278 %{_mandir}/man1/glib-mkenums.1*
279 %{_mandir}/man1/gobject-query.1*
280 %{_mandir}/man1/gtester-report.1*
281 %{_mandir}/man1/gtester.1*
282 %endif
283
284 %if %{with static_libs}
285 %files static
286 %defattr(644,root,root,755)
287 %{_libdir}/libgio-2.0.a
288 %{_libdir}/libglib-2.0.a
289 %{_libdir}/libgmodule-2.0.a
290 %{_libdir}/libgobject-2.0.a
291 %{_libdir}/libgthread-2.0.a
292 %endif
293
294 %if %{with apidocs}
295 %files apidocs
296 %defattr(644,root,root,755)
297 %{_gtkdocdir}/gio
298 %{_gtkdocdir}/glib
299 %{_gtkdocdir}/gobject
300 %endif
This page took 0.095921 seconds and 3 git commands to generate.