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