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