]> git.pld-linux.org Git - packages/glib2.git/blob - glib2.spec
- up to 2.12.6
[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.12.6
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:  b13d971e7de0b844fc4ced7367702003
26 Patch0:         %{name}-makefile.patch
27 Patch1:         %{name}-SEGV.patch
28 Patch2:         %{name}-pkgconfig-fix.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
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
56 Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker
57 og headerfiler er i glib-devel pakken.
58
59 %description -l de
60 Eine nützliche Library von Dienstprogramm-Funktionen.
61 Entwicklungs-Libraries und Header befinden sich in glib-devel.
62
63 %description -l es
64 Conjunto de funciones utilitarias. Bibliotecas de desarrollo y
65 archivos de inclusión están en glib-devel.
66
67 %description -l fi
68 Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja
69 header-tiedostot ovat glib-devel-paketissa.
70
71 %description -l ja
72 GLib¤Ï¥æ¡¼¥Æ¥£¥ê¥Æ¥£´Ø¿ô¤ò½¸¤á¤¿ÊØÍø¤Ê¥é¥¤¥Ö¥é¥ê¤Ç¤¹¡£¤³¤Î£Ã¸À¸ìÍѥ饤¥Ö¥é¥ê¤Ï¡¢
73 ¤¤¤¯¤Ä¤«¤ÎÌäÂê¤ò²ò·è¤¹¤ë¤è¤¦À߷פµ¤ì¤Æ¤ª¤ê¡¢Â¿¤¯¤Î¥×¥í¥°¥é¥à¤«¤éÍ׵ᤵ¤ì¤ë»È¤¤¤ä¤¹¤¤
74 ´Ø¿ô¤òÄ󶡤·¤Þ¤¹¡£
75
76 GLib¤ÏGDK,
77 GTK+¾¿¤¯¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ÇÍøÍѤµ¤ì¤ë¡£¤³¤Î¥é¥¤¥Ö¥é¥ê¤Ë°Í¸¤¹¤ë¥¢¥×¥ê¥±¡¼¥·¥ç¥ó
78 Åù¤Î¤¿¤á¤Ë¤³¤Îglib¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£
79
80 %description -l pl
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
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
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):    Conjunto de funciones gráficas utilitarias para desarrollo
97 Summary(pl):    Pliki nag³ówkowe i dokumentacja do glib
98 Summary(pt_BR): 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
108 Conjunto de funciones gráficas utilitarias para desarrollo.
109
110 %description devel -l ja
111 glib2-devel¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ï¡¢°ìÈ̥饤¥Ö¥é¥ê¤È¤·¤ÆÍ­¸ú¤ÊGIMP¤ÎX¥é¥¤¥Ö¥é¥ê·²
112 (Gtk¤ÈGDK)¤ò¥µ¥Ý¡¼¥È¤¹¤ë¥é¥¤¥Ö¥é¥ê¸þ¤±¤Ë¥¹¥¿¥Æ¥£¥Ã¥¯¥é¥¤¥Ö¥é¥ê¤È¥Ø¥Ã¥À¤¬
113 ´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
114
115 ¤â¤·GLib¤ò»È¤Ã¤Æ¥×¥í¥°¥é¥à¤ò³«È¯¤¹¤ë¤Ê¤é¤Ð¡¢glib-devel¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È
116 ¡¼¥ë¤·¤Æ¤¯¤À¤µ¤¤¡£
117
118 %description devel -l pl
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
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):    Biblioteki statyczne glib
130 Summary(pt_BR): 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
138 Biblioteki statyczne glib.
139
140 %description static -l pt_BR
141 Bibliotecas estáticas para desenvolvimento com glib.
142
143 %package apidocs
144 Summary:        Glib API documetation
145 Summary(pl):    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
153 Dokumentacja API Glib.
154
155 %prep
156 %setup -q -n glib-%{version}
157 %patch0 -p1
158 %patch1 -p1
159 %patch2 -p1
160 %if !%{with apidocs}
161 sed -e '/SUBDIRS/s/docs//' -i Makefile.am
162 sed -e '/^docs.*Makefile$/d' -i configure.in
163 echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
164 %endif
165
166 %build
167 %{?with_apidocs:%{__gtkdocize}}
168 %{__libtoolize}
169 %{__aclocal} -I m4macros
170 %{__autoconf}
171 %{__autoheader}
172 %{__automake}
173 %configure \
174         --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
175         %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
176         --%{?with_static_libs:en}%{!?with_static_libs:dis}able-static \
177         --enable-debug=%{?debug:yes} \
178         --enable-man \
179         --enable-threads
180
181 %{__make}
182
183 %install
184 rm -rf $RPM_BUILD_ROOT
185
186 %{__make} install \
187         DESTDIR=$RPM_BUILD_ROOT \
188         m4datadir=%{_aclocaldir} \
189         pkgconfigdir=%{_pkgconfigdir}
190
191 %find_lang glib20 --with-gnome
192
193 %clean
194 rm -rf $RPM_BUILD_ROOT
195
196 %post   -p /sbin/ldconfig
197 %postun -p /sbin/ldconfig
198
199 %files -f glib20.lang
200 %defattr(644,root,root,755)
201 %doc AUTHORS README NEWS
202 %attr(755,root,root) %{_libdir}/lib*.so.*.*
203
204 %files devel
205 %defattr(644,root,root,755)
206 %doc ChangeLog
207 %attr(755,root,root) %{_bindir}/*
208 %attr(755,root,root) %{_libdir}/lib*.so
209 %{_libdir}/lib*.la
210 %dir %{_datadir}/glib-2.0
211 %dir %{_datadir}/glib-2.0/gettext
212 %attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs
213 %{_datadir}/glib-2.0/gettext/po
214 %{_pkgconfigdir}/*
215 %{_libdir}/glib-2.0
216 %{_includedir}/*
217 %{_aclocaldir}/*
218 %{?with_apidocs:%{_mandir}/man?/*}
219
220 %if %{with static_libs}
221 %files static
222 %defattr(644,root,root,755)
223 %{_libdir}/lib*.a
224 %endif
225
226 %if %{with apidocs}
227 %files apidocs
228 %defattr(644,root,root,755)
229 %{_gtkdocdir}/*
230 %endif
This page took 0.058024 seconds and 4 git commands to generate.