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