]> git.pld-linux.org Git - packages/glib2.git/blob - glib2.spec
- pl for libs subpackage
[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.11
20 Release:        2
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:  077a9917b673a9a0bc63f351786dde24
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 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
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 libs
96 Summary:        Shared Glib libraries
97 Summary(pl.UTF-8):      Biblioteka współdzielona Glib
98 Group:          Libraries
99 Conflicts:      glib2 < 1:2.12.11-2
100
101 %description libs
102 Glib shared libraries.
103
104 %description libs -l pl.UTF-8
105 Biblioteka współdzielona Glib.
106
107 %package devel
108 Summary:        Glib heades files, documentation
109 Summary(es.UTF-8):      Conjunto de funciones gráficas utilitarias para desarrollo
110 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja do glib
111 Summary(pt_BR.UTF-8):   Conjunto de ferramentas e biblioteca do kit de desenho do GIMP
112 Group:          Development/Libraries
113 Requires:       %{name}-libs = %{epoch}:%{version}-%{release}
114
115 %description devel
116 Header files for the support library for the GIMP's X libraries, which
117 are available as public libraries. GLIB includes generally useful data
118 structures.
119
120 %description devel -l es.UTF-8
121 Conjunto de funciones gráficas utilitarias para desarrollo.
122
123 %description devel -l ja.UTF-8
124 glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群
125 (GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが
126 含まれています。
127
128 もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト
129 ールしてください。
130
131 %description devel -l pl.UTF-8
132 Pliki nagłówkowe i dokumentacja do glib przydatna przy pisaniu
133 programów wykorzystujących tę bibliotekę.
134
135 %description devel -l pt_BR.UTF-8
136 Bibliotecas e arquivos de inclusão para a biblioteca de suporte para
137 as bibliotecas X do GIMP, que são disponíveis como bibliotecas
138 públicas. A GLIB inclui estruturas de dados genéricas úteis.
139
140 %package static
141 Summary:        Static glib libraries
142 Summary(pl.UTF-8):      Biblioteki statyczne glib
143 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com glib
144 Group:          Development/Libraries
145 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
146
147 %description static
148 Static glib libraries.
149
150 %description static -l pl.UTF-8
151 Biblioteki statyczne glib.
152
153 %description static -l pt_BR.UTF-8
154 Bibliotecas estáticas para desenvolvimento com glib.
155
156 %package apidocs
157 Summary:        Glib API documetation
158 Summary(pl.UTF-8):      Dokumentacja API Glib
159 Group:          Documentation
160 Requires:       gtk-doc-common
161
162 %description apidocs
163 Glib API documetation.
164
165 %description apidocs -l pl.UTF-8
166 Dokumentacja API Glib.
167
168 %prep
169 %setup -q -n glib-%{version}
170 %patch0 -p1
171 %patch1 -p1
172 %patch2 -p1
173
174 %if !%{with apidocs}
175 sed -e '/SUBDIRS/s/docs//' -i Makefile.am
176 sed -e '/^docs.*Makefile$/d' -i configure.in
177 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
178 %endif
179
180 %build
181 %{?with_apidocs:%{__gtkdocize}}
182 %{__libtoolize}
183 %{__aclocal} -I m4macros
184 %{__autoconf}
185 %{__autoheader}
186 %{__automake}
187 %configure \
188         --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
189         %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
190         --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
191         --enable-debug=%{?debug:yes} \
192         --enable-man \
193         --enable-threads
194
195 %{__make}
196
197 %install
198 rm -rf $RPM_BUILD_ROOT
199
200 %{__make} install \
201         DESTDIR=$RPM_BUILD_ROOT \
202         m4datadir=%{_aclocaldir} \
203         pkgconfigdir=%{_pkgconfigdir}
204
205 %find_lang glib20 --with-gnome
206
207 %clean
208 rm -rf $RPM_BUILD_ROOT
209
210 %post   libs -p /sbin/ldconfig
211 %postun libs -p /sbin/ldconfig
212
213 %files -f glib20.lang
214 %defattr(644,root,root,755)
215 %doc AUTHORS README NEWS
216
217 %files libs
218 %defattr(644,root,root,755)
219 %attr(755,root,root) %{_libdir}/lib*.so.*.*
220
221 %files devel
222 %defattr(644,root,root,755)
223 %doc ChangeLog
224 %attr(755,root,root) %{_bindir}/*
225 %attr(755,root,root) %{_libdir}/lib*.so
226 %{_libdir}/lib*.la
227 %dir %{_datadir}/glib-2.0
228 %dir %{_datadir}/glib-2.0/gettext
229 %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs
230 %{_datadir}/glib-2.0/gettext/po
231 %{_pkgconfigdir}/*
232 %{_libdir}/glib-2.0
233 %{_includedir}/*
234 %{_aclocaldir}/*
235 %{?with_apidocs:%{_mandir}/man?/*}
236
237 %if %{with static_libs}
238 %files static
239 %defattr(644,root,root,755)
240 %{_libdir}/lib*.a
241 %endif
242
243 %if %{with apidocs}
244 %files apidocs
245 %defattr(644,root,root,755)
246 %{_gtkdocdir}/*
247 %endif
This page took 0.045702 seconds and 3 git commands to generate.