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