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