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