]> git.pld-linux.org Git - packages/glib2.git/blob - glib2.spec
- apidocs BR: source-highlight
[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.22.4
21 Release:        1
22 Epoch:          1
23 License:        LGPL v2+
24 Group:          Libraries
25 Source0:        http://ftp.gnome.org/pub/GNOME/sources/glib/2.22/glib-%{version}.tar.bz2
26 # Source0-md5:  d91bcbe27556430ddecce65086355708
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 %{?with_apidocs:BuildRequires:  source-highlight}
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
85 GLibはGDK,
86 GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション
87 等のためにこのglibパッケージをインストールしてください。
88
89 %description -l pl.UTF-8
90 GLib jest zestawem bibliotek zawierających funkcje do obsługi list i
91 drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych
92 podstawowych funkcji i różnych struktur danych używanych przez program
93 GIMP i wiele innych.
94
95 %description -l pt_BR.UTF-8
96 Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e
97 arquivos de inclusão estão em glib-devel.
98
99 %description -l tr.UTF-8
100 Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık
101 dosyaları glib-devel paketinde yer almaktadır.
102
103 %package devel
104 Summary:        GLib heades files, documentation
105 Summary(es.UTF-8):      Conjunto de funciones gráficas utilitarias para desarrollo
106 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja do GLib
107 Summary(pt_BR.UTF-8):   Conjunto de ferramentas e biblioteca do kit de desenho do GIMP
108 Group:          Development/Libraries
109 Requires:       %{name} = %{epoch}:%{version}-%{release}
110 Requires:       pcre-devel >= 7.8
111 # gio only
112 %{?with_selinux:Requires:       libselinux-devel}
113
114 %description devel
115 Header files for the support library for the GIMP's X libraries, which
116 are available as public libraries. GLib includes generally useful data
117 structures.
118
119 %description devel -l es.UTF-8
120 Conjunto de funciones gráficas utilitarias para desarrollo.
121
122 %description devel -l ja.UTF-8
123 glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群
124 (GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが
125 含まれています。
126
127 もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト
128 ールしてください。
129
130 %description devel -l pl.UTF-8
131 Pliki nagłówkowe i dokumentacja do GLib przydatna przy pisaniu
132 programów wykorzystujących tę bibliotekę.
133
134 %description devel -l pt_BR.UTF-8
135 Bibliotecas e arquivos de inclusão para a biblioteca de suporte para
136 as bibliotecas X do GIMP, que são disponíveis como bibliotecas
137 públicas. A GLib inclui estruturas de dados genéricas úteis.
138
139 %package static
140 Summary:        Static GLib libraries
141 Summary(pl.UTF-8):      Biblioteki statyczne GLib
142 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com GLib
143 Group:          Development/Libraries
144 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
145
146 %description static
147 Static GLib libraries.
148
149 %description static -l pl.UTF-8
150 Biblioteki statyczne GLib.
151
152 %description static -l pt_BR.UTF-8
153 Bibliotecas estáticas para desenvolvimento com GLib.
154
155 %package apidocs
156 Summary:        GLib API documetation
157 Summary(pl.UTF-8):      Dokumentacja API GLib
158 Group:          Documentation
159 Requires:       gtk-doc-common
160
161 %description apidocs
162 GLib API documetation.
163
164 %description apidocs -l pl.UTF-8
165 Dokumentacja API GLib.
166
167 %prep
168 %setup -q -n glib-%{version}
169 %patch0 -p1
170
171 %if !%{with apidocs}
172 sed -e '/SUBDIRS/s/docs//' -i Makefile.am
173 sed -e '/^docs.*Makefile$/d' -i configure.in
174 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
175 %endif
176
177 %build
178 %{?with_apidocs:%{__gtkdocize}}
179 %{__libtoolize}
180 %{__aclocal} -I m4macros
181 %{__autoconf}
182 %{__autoheader}
183 %{__automake}
184 %configure \
185         --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
186         %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
187         --%{?with_selinux:en}%{!?with_selinux:dis}able-selinux \
188         --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
189         --enable-debug=%{?debug:yes} \
190         --enable-man \
191         --enable-threads \
192         --with-pcre=system
193
194 %{__make}
195
196 %install
197 rm -rf $RPM_BUILD_ROOT
198
199 %{__make} install \
200         DESTDIR=$RPM_BUILD_ROOT \
201         m4datadir=%{_aclocaldir} \
202         pkgconfigdir=%{_pkgconfigdir}
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   -p /sbin/ldconfig
212 %postun -p /sbin/ldconfig
213
214 %files -f glib20.lang
215 %defattr(644,root,root,755)
216 %doc AUTHORS README NEWS
217 %attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.*
218 %attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0
219 %attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.*
220 %attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0
221 %attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.*
222 %attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0
223 %attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.*
224 %attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0
225 %attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.*
226 %attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0
227 %dir %{_libdir}/gio
228 %dir %{_libdir}/gio/modules
229 %attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so
230
231 %files devel
232 %defattr(644,root,root,755)
233 %doc ChangeLog
234 %attr(755,root,root) %{_bindir}/glib-genmarshal
235 %attr(755,root,root) %{_bindir}/glib-gettextize
236 %attr(755,root,root) %{_bindir}/glib-mkenums
237 %attr(755,root,root) %{_bindir}/gobject-query
238 %attr(755,root,root) %{_bindir}/gtester
239 %attr(755,root,root) %{_bindir}/gtester-report
240 %attr(755,root,root) %{_libdir}/libgio-2.0.so
241 %attr(755,root,root) %{_libdir}/libglib-2.0.so
242 %attr(755,root,root) %{_libdir}/libgmodule-2.0.so
243 %attr(755,root,root) %{_libdir}/libgobject-2.0.so
244 %attr(755,root,root) %{_libdir}/libgthread-2.0.so
245 %{_libdir}/libgio-2.0.la
246 %{_libdir}/libglib-2.0.la
247 %{_libdir}/libgmodule-2.0.la
248 %{_libdir}/libgobject-2.0.la
249 %{_libdir}/libgthread-2.0.la
250 %dir %{_datadir}/glib-2.0
251 %dir %{_datadir}/glib-2.0/gettext
252 %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs
253 %{_datadir}/glib-2.0/gettext/po
254 %{_pkgconfigdir}/gio-2.0.pc
255 %{_pkgconfigdir}/gio-unix-2.0.pc
256 %{_pkgconfigdir}/glib-2.0.pc
257 %{_pkgconfigdir}/gmodule-2.0.pc
258 %{_pkgconfigdir}/gmodule-export-2.0.pc
259 %{_pkgconfigdir}/gmodule-no-export-2.0.pc
260 %{_pkgconfigdir}/gobject-2.0.pc
261 %{_pkgconfigdir}/gthread-2.0.pc
262 %{_libdir}/glib-2.0
263 %{_includedir}/gio-unix-2.0
264 %{_includedir}/glib-2.0
265 %{_aclocaldir}/glib-2.0.m4
266 %{_aclocaldir}/glib-gettext.m4
267 %if %{with apidocs}
268 %{_mandir}/man1/glib-genmarshal.1*
269 %{_mandir}/man1/glib-gettextize.1*
270 %{_mandir}/man1/glib-mkenums.1*
271 %{_mandir}/man1/gobject-query.1*
272 %{_mandir}/man1/gtester-report.1*
273 %{_mandir}/man1/gtester.1*
274 %endif
275
276 %if %{with static_libs}
277 %files static
278 %defattr(644,root,root,755)
279 %{_libdir}/libgio-2.0.a
280 %{_libdir}/libglib-2.0.a
281 %{_libdir}/libgmodule-2.0.a
282 %{_libdir}/libgobject-2.0.a
283 %{_libdir}/libgthread-2.0.a
284 %endif
285
286 %if %{with apidocs}
287 %files apidocs
288 %defattr(644,root,root,755)
289 %{_gtkdocdir}/gio
290 %{_gtkdocdir}/glib
291 %{_gtkdocdir}/gobject
292 %endif
This page took 0.061619 seconds and 4 git commands to generate.