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