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