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