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