]> git.pld-linux.org Git - packages/glib2.git/blob - glib2.spec
- merged from DEVEL
[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):    ©ikovná knihovna s funkcemi pro pomocné programy
8 Summary(da):    Nyttige biblioteksfunktioner
9 Summary(de):    Eine nützliche Library von Dienstprogramm-Funktionen
10 Summary(es):    Conjunto de funciones gráficas utilitarias
11 Summary(fi):    Kirjasto, jossa on työkalufunktioita
12 Summary(fr):    Bibliothèque de fonctions utilitaires
13 Summary(ja):    ÊØÍø¤Ê¥æ¡¼¥Æ¥£¥ê¥Æ¥£´Ø¿ô¤Î¥é¥¤¥Ö¥é¥ê
14 Summary(pl):    Biblioteka zawieraj±ca wiele u¿ytecznych funkcji C
15 Summary(pt_BR): Conjunto de funções gráficas utilitárias
16 Summary(tr):    Yararlý ufak yordamlar kitaplýðý
17 Summary(zh_CN): ÊµÓù¤¾ßº¯Êý¿â
18 Name:           glib2
19 Version:        2.10.1
20 Release:        1
21 Epoch:          1
22 License:        LGPL
23 Group:          Libraries
24 Source0:        ftp://ftp.gtk.org/pub/gtk/v2.10/glib-%{version}.tar.bz2
25 # Source0-md5:  51df7932da118f7f27bbda82b65f0f91
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 %{?with_apidocs:BuildRequires:  gtk-doc >= 1.0}
34 BuildRequires:  gtk-doc-automake >= 1.0
35 BuildRequires:  libtool >= 1:1.4.2-9
36 BuildRequires:  pkgconfig >= 1:0.14.0
37 BuildRequires:  gettext-devel
38 BuildRequires:  perl-base
39 BuildRequires:  rpmbuild(macros) >= 1.197
40 Requires:       iconv
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %description
44 GLib, is a library which includes support routines for C such as
45 lists, trees, hashes, memory allocation, and many other things. GLIB
46 includes also generally useful data structures used by GIMP and many
47 other.
48
49 %description -l cs
50 ©ikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a
51 hlavièky jsou v balíèku glib-devel.
52
53 %description -l da
54 Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker
55 og headerfiler er i glib-devel pakken.
56
57 %description -l de
58 Eine nützliche Library von Dienstprogramm-Funktionen.
59 Entwicklungs-Libraries und Header befinden sich in glib-devel.
60
61 %description -l es
62 Conjunto de funciones utilitarias. Bibliotecas de desarrollo y
63 archivos de inclusión están en glib-devel.
64
65 %description -l fi
66 Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja
67 header-tiedostot ovat glib-devel-paketissa.
68
69 %description -l ja
70 GLib¤Ï¥æ¡¼¥Æ¥£¥ê¥Æ¥£´Ø¿ô¤ò½¸¤á¤¿ÊØÍø¤Ê¥é¥¤¥Ö¥é¥ê¤Ç¤¹¡£¤³¤Î£Ã¸À¸ìÍѥ饤¥Ö¥é¥ê¤Ï¡¢
71 ¤¤¤¯¤Ä¤«¤ÎÌäÂê¤ò²ò·è¤¹¤ë¤è¤¦À߷פµ¤ì¤Æ¤ª¤ê¡¢Â¿¤¯¤Î¥×¥í¥°¥é¥à¤«¤éÍ׵ᤵ¤ì¤ë»È¤¤¤ä¤¹¤¤
72 ´Ø¿ô¤òÄ󶡤·¤Þ¤¹¡£
73
74 GLib¤ÏGDK,
75 GTK+¾¿¤¯¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÇÍøÍѤµ¤ì¤ë¡£¤³¤Î¥é¥¤¥Ö¥é¥ê¤Ë°Í¸¤¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó
76 Åù¤Î¤¿¤á¤Ë¤³¤Îglib¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£
77
78 %description -l pl
79 Glib jest zestawem bibliotek zawieraj±cych funkcje do obs³ugi list i
80 drzew, funkcje mieszaj±ce, funkcje do alokacji pamiêci i du¿o innych
81 podstawowych funkcji i ró¿nych struktur danych u¿ywanych przez program
82 GIMP i wiele innych.
83
84 %description -l pt_BR
85 Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e
86 arquivos de inclusão estão em glib-devel.
87
88 %description -l tr
89 Yararlý yordamlar kitaplýðý. Geliþtirme kitaplýklarý ve baþlýk
90 dosyalarý glib-devel paketinde yer almaktadýr.
91
92 %package devel
93 Summary:        Glib heades files, documentation
94 Summary(es):    Conjunto de funciones gráficas utilitarias para desarrollo
95 Summary(pl):    Pliki nag³ówkowe i dokumentacja do glib
96 Summary(pt_BR): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP
97 Group:          Development/Libraries
98 Requires:       %{name} = %{epoch}:%{version}-%{release}
99
100 %description devel
101 Header files for the support library for the GIMP's X libraries, which
102 are available as public libraries. GLIB includes generally useful data
103 structures.
104
105 %description devel -l es
106 Conjunto de funciones gráficas utilitarias para desarrollo.
107
108 %description devel -l ja
109 glib2-devel¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ï¡¢°ìÈ̥饤¥Ö¥é¥ê¤È¤·¤ÆÍ­¸ú¤ÊGIMP¤ÎX¥é¥¤¥Ö¥é¥ê·²
110 (Gtk¤ÈGDK)¤ò¥µ¥Ý¡¼¥È¤¹¤ë¥é¥¤¥Ö¥é¥ê¸þ¤±¤Ë¥¹¥¿¥Æ¥£¥Ã¥¯¥é¥¤¥Ö¥é¥ê¤È¥Ø¥Ã¥À¤¬
111 ´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
112
113 ¤â¤·GLib¤ò»È¤Ã¤Æ¥×¥í¥°¥é¥à¤ò³«È¯¤¹¤ë¤Ê¤é¤Ð¡¢glib-devel¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È
114 ¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£
115
116 %description devel -l pl
117 Pliki nag³ówkowe i dokumentacja do glib przydatna przy pisaniu
118 programów wykorzystuj±cych tê bibliotekê.
119
120 %description devel -l pt_BR
121 Bibliotecas e arquivos de inclusão para a biblioteca de suporte para
122 as bibliotecas X do GIMP, que são disponíveis como bibliotecas
123 públicas. A GLIB inclui estruturas de dados genéricas úteis.
124
125 %package static
126 Summary:        Static glib libraries
127 Summary(pl):    Biblioteki statyczne glib
128 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com glib
129 Group:          Development/Libraries
130 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
131
132 %description static
133 Static glib libraries.
134
135 %description static -l pl
136 Biblioteki statyczne glib.
137
138 %description static -l pt_BR
139 Bibliotecas estáticas para desenvolvimento com glib.
140
141 %package apidocs
142 Summary:        Glib API documetation
143 Summary(pl):    Dokumentacja API Glib
144 Group:          Documentation
145 Requires:       gtk-doc-common
146
147 %description apidocs
148 Glib API documetation.
149
150 %description apidocs -l pl
151 Dokumentacja API Glib.
152
153 %prep
154 %setup -q -n glib-%{version}
155 %patch0 -p1
156 %patch1 -p1
157
158 %build
159 %{?with_apidocs:%{__gtkdocize}}
160 %{__libtoolize}
161 %{__aclocal} -I m4macros
162 %{__autoconf}
163 %{__autoheader}
164 %{__automake}
165 %configure \
166         --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
167         %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
168         --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
169         --enable-debug=%{?debug:yes} \
170         --enable-man \
171         --enable-threads
172
173 %{__make}
174
175 %install
176 rm -rf $RPM_BUILD_ROOT
177
178 %{__make} install \
179         DESTDIR=$RPM_BUILD_ROOT \
180         m4datadir=%{_aclocaldir} \
181         pkgconfigdir=%{_pkgconfigdir}
182
183 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
184
185 %find_lang glib --with-gnome --all-name
186
187 %clean
188 rm -rf $RPM_BUILD_ROOT
189
190 %post   -p /sbin/ldconfig
191 %postun -p /sbin/ldconfig
192
193 %files -f glib.lang
194 %defattr(644,root,root,755)
195 %doc AUTHORS README NEWS
196 %attr(755,root,root) %{_libdir}/lib*.so.*.*
197
198 %files devel
199 %defattr(644,root,root,755)
200 %doc ChangeLog
201 %attr(755,root,root) %{_bindir}/*
202 %attr(755,root,root) %{_libdir}/lib*.so
203 %{_libdir}/lib*.la
204 %dir %{_datadir}/glib-2.0
205 %dir %{_datadir}/glib-2.0/gettext
206 %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs
207 %{_datadir}/glib-2.0/gettext/po
208 %{_pkgconfigdir}/*
209 %{_libdir}/glib-2.0
210 %{_includedir}/*
211 %{_aclocaldir}/*
212 %{_mandir}/man?/*
213
214 %if %{with static_libs}
215 %files static
216 %defattr(644,root,root,755)
217 %{_libdir}/lib*.a
218 %endif
219
220 %if %{with apidocs}
221 %files apidocs
222 %defattr(644,root,root,755)
223 %{_gtkdocdir}/*
224 %endif
This page took 0.242479 seconds and 3 git commands to generate.