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