]> git.pld-linux.org Git - packages/glib2.git/blame - glib2.spec
- BR: pcre-devel >= 8.11
[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
f16b8cb0 5%bcond_with selinux # gio with SELinux support
dc8ca89f 6#
fe32950e 7%include /usr/lib/rpm/macros.perl
c5cd89bd 8Summary: Useful routines for 'C' programming
d62bd2ce
ER
9Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy
10Summary(da.UTF-8): Nyttige biblioteksfunktioner
11Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen
12Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias
13Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita
14Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires
15Summary(ja.UTF-8): 便利なユーティリティ関数のライブラリ
16Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C
17Summary(pt_BR.UTF-8): Conjunto de funções gráficas utilitárias
18Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı
19Summary(zh_CN.UTF-8): 实用工具函数库
184f9dda 20Name: glib2
4099c72b 21Version: 2.27.93
22Release: 1
f4f2082a 23Epoch: 1
d9eae184 24License: LGPL v2+
c5cd89bd 25Group: Libraries
4099c72b 26Source0: http://ftp.gnome.org/pub/GNOME/sources/glib/2.27/glib-%{version}.tar.bz2
27# Source0-md5: 73954628c437408c189d62670a7032f7
0a6ddb4c 28Patch0: %{name}-makefile.patch
c5cd89bd 29URL: http://www.gtk.org/
72809582
JB
30BuildRequires: autoconf >= 2.62
31BuildRequires: automake >= 1:1.10
f562fe91 32BuildRequires: docbook-dtd412-xml
33BuildRequires: docbook-style-xsl
1ebb8361 34BuildRequires: fam-devel
d0edc3ae 35BuildRequires: gettext-devel
54ae6377
SS
36%{?with_apidocs:BuildRequires: gtk-doc >= 1.15}
37%{?with_apidocs:BuildRequires: gtk-doc-automake >= 1.15}
2f90d369 38%{?with_selinux:BuildRequires: libselinux-devel}
72809582 39BuildRequires: libtool >= 2:2.2
189db612 40BuildRequires: pcre-devel >= 8.11
f562fe91 41BuildRequires: perl-base
1ebb8361 42BuildRequires: pkgconfig >= 1:0.16.0
8c69dce2 43BuildRequires: rpm-pythonprov
4099c72b 44BuildRequires: rpmbuild(macros) >= 1.527
f9f8e5ca
MB
45BuildRequires: sed >= 4.0
46BuildRequires: zlib-devel
c47711ba 47Requires: iconv
27108172 48Requires: pcre >= 7.8
81df0f8b 49Provides: glib2-libs
43f3147b 50Obsoletes: glib2-libs
424a3c22
ER
51# sr@Latn vs. sr@latin
52Conflicts: glibc-misc < 6:2.7
c5cd89bd
AF
53BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
54
c5cd89bd
AF
55%description
56GLib, is a library which includes support routines for C such as
045fa5ec 57lists, trees, hashes, memory allocation, and many other things. GLib
c5cd89bd
AF
58includes also generally useful data structures used by GIMP and many
59other.
60
1ccef3e3
JR
61%description -l cs.UTF-8
62Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a
63hlavičky jsou v balíčku glib-devel.
c5cd89bd 64
1ccef3e3 65%description -l da.UTF-8
c5cd89bd
AF
66Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker
67og headerfiler er i glib-devel pakken.
68
1ccef3e3
JR
69%description -l de.UTF-8
70Eine nützliche Library von Dienstprogramm-Funktionen.
c5cd89bd
AF
71Entwicklungs-Libraries und Header befinden sich in glib-devel.
72
1ccef3e3 73%description -l es.UTF-8
fac1fbe3 74Conjunto de funciones utilitarias. Bibliotecas de desarrollo y
1ccef3e3 75archivos de inclusión están en glib-devel.
fac1fbe3 76
1ccef3e3
JR
77%description -l fi.UTF-8
78Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja
b19705b9 79header-tiedostot ovat glib-devel-paketissa.
c5cd89bd 80
1ccef3e3
JR
81%description -l ja.UTF-8
82GLibはユーティリティ関数を集めた便利なライブラリです。このC言語用ライブラリは、
75195290 83いくつかの問題を解決するよう設計されており、多くのプログラムから要求される使いやすい 関数を提供します。
fac1fbe3 84
75195290 85GLibはGDK, GTK+他多くのアプリケーションで利用される。このライブラリに依存するアプリケーション
1ccef3e3 86等のためにこのglibパッケージをインストールしてください。
fac1fbe3 87
1ccef3e3 88%description -l pl.UTF-8
045fa5ec 89GLib jest zestawem bibliotek zawierających funkcje do obsługi list i
1ccef3e3
JR
90drzew, funkcje mieszające, funkcje do alokacji pamięci i dużo innych
91podstawowych funkcji i różnych struktur danych używanych przez program
fac1fbe3 92GIMP i wiele innych.
93
1ccef3e3
JR
94%description -l pt_BR.UTF-8
95Conjunto de funções utilitárias. Bibliotecas de desenvolvimento e
96arquivos de inclusão estão em glib-devel.
c5cd89bd 97
1ccef3e3
JR
98%description -l tr.UTF-8
99Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık
100dosyaları glib-devel paketinde yer almaktadır.
c5cd89bd
AF
101
102%package devel
045fa5ec 103Summary: GLib heades files, documentation
d62bd2ce 104Summary(es.UTF-8): Conjunto de funciones gráficas utilitarias para desarrollo
045fa5ec 105Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do GLib
d62bd2ce 106Summary(pt_BR.UTF-8): Conjunto de ferramentas e biblioteca do kit de desenho do GIMP
c5cd89bd 107Group: Development/Libraries
4d5d23a0 108Requires: %{name} = %{epoch}:%{version}-%{release}
27108172 109Requires: pcre-devel >= 7.8
f16b8cb0
JB
110# gio only
111%{?with_selinux:Requires: libselinux-devel}
c5cd89bd
AF
112
113%description devel
114Header files for the support library for the GIMP's X libraries, which
045fa5ec 115are available as public libraries. GLib includes generally useful data
c5cd89bd
AF
116structures.
117
1ccef3e3
JR
118%description devel -l es.UTF-8
119Conjunto de funciones gráficas utilitarias para desarrollo.
fac1fbe3 120
1ccef3e3
JR
121%description devel -l ja.UTF-8
122glib2-develパッケージには、一般ライブラリとして有効なGIMPのXライブラリ群
75195290 123(GtkとGDK)をサポートするライブラリ向けにスタティックライブラリとヘッダが 含まれています。
fac1fbe3 124
75195290 125もしGLibを使ってプログラムを開発するならば、glib-develパッケージをインスト ールしてください。
fac1fbe3 126
1ccef3e3 127%description devel -l pl.UTF-8
045fa5ec 128Pliki nagłówkowe i dokumentacja do GLib przydatna przy pisaniu
1ccef3e3 129programów wykorzystujących tę bibliotekę.
c5cd89bd 130
1ccef3e3
JR
131%description devel -l pt_BR.UTF-8
132Bibliotecas e arquivos de inclusão para a biblioteca de suporte para
133as bibliotecas X do GIMP, que são disponíveis como bibliotecas
045fa5ec 134públicas. A GLib inclui estruturas de dados genéricas úteis.
fac1fbe3 135
c5cd89bd 136%package static
045fa5ec
MB
137Summary: Static GLib libraries
138Summary(pl.UTF-8): Biblioteki statyczne GLib
139Summary(pt_BR.UTF-8): Bibliotecas estáticas para desenvolvimento com GLib
c5cd89bd 140Group: Development/Libraries
e9536dab 141Requires: %{name}-devel = %{epoch}:%{version}-%{release}
c5cd89bd
AF
142
143%description static
045fa5ec 144Static GLib libraries.
c5cd89bd 145
1ccef3e3 146%description static -l pl.UTF-8
045fa5ec 147Biblioteki statyczne GLib.
c5cd89bd 148
1ccef3e3 149%description static -l pt_BR.UTF-8
045fa5ec 150Bibliotecas estáticas para desenvolvimento com GLib.
fac1fbe3 151
9fd4432e 152%package apidocs
045fa5ec
MB
153Summary: GLib API documetation
154Summary(pl.UTF-8): Dokumentacja API GLib
9fd4432e
JB
155Group: Documentation
156Requires: gtk-doc-common
157
158%description apidocs
045fa5ec 159GLib API documetation.
9fd4432e 160
1ccef3e3 161%description apidocs -l pl.UTF-8
045fa5ec 162Dokumentacja API GLib.
9fd4432e 163
f9d9fd77
JB
164%package -n bash-completion-gio
165Summary: bash-completion for gio utilities
166Summary(pl.UTF-8): Bashowe uzupełnianie nazw dla narzędzi gio
7966f809
MB
167Group: Applications/Shells
168Requires: bash-completion
f9d9fd77 169Obsoletes: bash-completion-gdbus
7966f809 170
f9d9fd77
JB
171%description -n bash-completion-gio
172bash-completion for gio utilities: gdbus and gsettings.
7966f809 173
f9d9fd77
JB
174%description -n bash-completion-gio -l pl.UTF-8
175Bashowe uzupełnianie nazw dla narzędzi gio: gdbus i gsettings.
7966f809 176
c5cd89bd 177%prep
9c7ef8c6 178%setup -q -n glib-%{version}
f29ca197 179%patch0 -p1
7966f809 180%{__sed} -i 's#^en@shaw##' po/LINGUAS
4099c72b 181%{__rm} po/en@shaw.po
cac85f6c 182
d0edc3ae 183%if !%{with apidocs}
7966f809
MB
184%{__sed} -e '/SUBDIRS/s/docs//' -i Makefile.am
185%{__sed} -e '/^docs.*Makefile$/d' -i configure.ac
d0edc3ae 186echo 'AC_DEFUN([GTK_DOC_CHECK],[])' >> acinclude.m4
187%endif
c5cd89bd
AF
188
189%build
5c21d4b9 190%{?with_apidocs:%{__gtkdocize}}
5294c0c5 191%{__libtoolize}
f562fe91 192%{__aclocal} -I m4macros
5afe4131 193%{__autoconf}
7fbaba5f 194%{__autoheader}
5294c0c5 195%{__automake}
c5cd89bd 196%configure \
4099c72b 197 --disable-silent-rules \
198 %{__enable_disable apidocs gtk-doc} \
e051a6b2 199 %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \
4099c72b 200 %{__enable_disable selinux} \
201 %{__enable_disable static_libs static} \
dd7b40ff 202 --enable-debug=%{?debug:yes} \
511b979a 203 --enable-man \
ad8e0c63
JB
204 --enable-threads \
205 --with-pcre=system
e051a6b2 206
56faf6a4 207%{__make}
c5cd89bd
AF
208
209%install
210rm -rf $RPM_BUILD_ROOT
9ae10cd0 211
c5cd89bd
AF
212%{__make} install \
213 DESTDIR=$RPM_BUILD_ROOT \
5216d86c 214 m4datadir=%{_aclocaldir} \
4469893c 215 pkgconfigdir=%{_pkgconfigdir}
c5cd89bd 216
f9f8e5ca
MB
217> $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache
218
4099c72b 219%{__rm} $RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.la \
220 %{?with_static_libs:$RPM_BUILD_ROOT%{_libdir}/gio/modules/libgiofam.a}
221
1ebb8361 222
1ebb8361 223%find_lang glib20
2a2588d0 224
c5cd89bd
AF
225%clean
226rm -rf $RPM_BUILD_ROOT
227
f9f8e5ca
MB
228%post
229/sbin/ldconfig
230
231umask 022
232%{_bindir}/gio-querymodules %{_libdir}/gio/modules
233exit 0
234
4d5d23a0 235%postun -p /sbin/ldconfig
27d447ab 236
d0edc3ae 237%files -f glib20.lang
c5cd89bd 238%defattr(644,root,root,755)
beac3f53 239%doc AUTHORS README NEWS
7966f809 240%attr(755,root,root) %{_bindir}/gdbus
f9f8e5ca 241%attr(755,root,root) %{_bindir}/gio-querymodules
7966f809
MB
242%attr(755,root,root) %{_bindir}/glib-compile-schemas
243%attr(755,root,root) %{_bindir}/gsettings
1ebb8361
MB
244%attr(755,root,root) %{_libdir}/libgio-2.0.so.*.*.*
245%attr(755,root,root) %ghost %{_libdir}/libgio-2.0.so.0
6fa08951
JB
246%attr(755,root,root) %{_libdir}/libglib-2.0.so.*.*.*
247%attr(755,root,root) %ghost %{_libdir}/libglib-2.0.so.0
248%attr(755,root,root) %{_libdir}/libgmodule-2.0.so.*.*.*
249%attr(755,root,root) %ghost %{_libdir}/libgmodule-2.0.so.0
250%attr(755,root,root) %{_libdir}/libgobject-2.0.so.*.*.*
251%attr(755,root,root) %ghost %{_libdir}/libgobject-2.0.so.0
252%attr(755,root,root) %{_libdir}/libgthread-2.0.so.*.*.*
253%attr(755,root,root) %ghost %{_libdir}/libgthread-2.0.so.0
1ebb8361
MB
254%dir %{_libdir}/gio
255%dir %{_libdir}/gio/modules
256%attr(755,root,root) %{_libdir}/gio/modules/libgiofam.so
f9f8e5ca 257%ghost %{_libdir}/gio/modules/giomodule.cache
587c0b40 258%dir %{_datadir}/glib-2.0
57359775 259%dir %{_datadir}/glib-2.0/schemas
d28aa732 260%if %{with apidocs}
7966f809
MB
261%{_mandir}/man1/gdbus.1*
262%{_mandir}/man1/gio-querymodules.1*
263%{_mandir}/man1/glib-compile-schemas.1*
264%{_mandir}/man1/gsettings.1*
d28aa732 265%endif
c5cd89bd
AF
266
267%files devel
268%defattr(644,root,root,755)
beac3f53 269%doc ChangeLog
6fa08951
JB
270%attr(755,root,root) %{_bindir}/glib-genmarshal
271%attr(755,root,root) %{_bindir}/glib-gettextize
272%attr(755,root,root) %{_bindir}/glib-mkenums
273%attr(755,root,root) %{_bindir}/gobject-query
1ebb8361
MB
274%attr(755,root,root) %{_bindir}/gtester
275%attr(755,root,root) %{_bindir}/gtester-report
276%attr(755,root,root) %{_libdir}/libgio-2.0.so
6fa08951
JB
277%attr(755,root,root) %{_libdir}/libglib-2.0.so
278%attr(755,root,root) %{_libdir}/libgmodule-2.0.so
279%attr(755,root,root) %{_libdir}/libgobject-2.0.so
280%attr(755,root,root) %{_libdir}/libgthread-2.0.so
1ebb8361 281%{_libdir}/libgio-2.0.la
6fa08951
JB
282%{_libdir}/libglib-2.0.la
283%{_libdir}/libgmodule-2.0.la
284%{_libdir}/libgobject-2.0.la
285%{_libdir}/libgthread-2.0.la
f9d9fd77
JB
286%{_libdir}/glib-2.0
287%{_includedir}/gio-unix-2.0
288%{_includedir}/glib-2.0
7966f809 289%{_datadir}/glib-2.0/gdb
7191dcf9 290%dir %{_datadir}/glib-2.0/gettext
291%attr(755,root,root) %{_datadir}/glib-2.0/gettext/mkinstalldirs
292%{_datadir}/glib-2.0/gettext/po
57359775 293%{_datadir}/glib-2.0/schemas/gschema.dtd
1ebb8361
MB
294%{_pkgconfigdir}/gio-2.0.pc
295%{_pkgconfigdir}/gio-unix-2.0.pc
6fa08951
JB
296%{_pkgconfigdir}/glib-2.0.pc
297%{_pkgconfigdir}/gmodule-2.0.pc
298%{_pkgconfigdir}/gmodule-export-2.0.pc
299%{_pkgconfigdir}/gmodule-no-export-2.0.pc
300%{_pkgconfigdir}/gobject-2.0.pc
301%{_pkgconfigdir}/gthread-2.0.pc
302%{_aclocaldir}/glib-2.0.m4
303%{_aclocaldir}/glib-gettext.m4
f9d9fd77 304%{_aclocaldir}/gsettings.m4
6fa08951
JB
305%if %{with apidocs}
306%{_mandir}/man1/glib-genmarshal.1*
307%{_mandir}/man1/glib-gettextize.1*
308%{_mandir}/man1/glib-mkenums.1*
309%{_mandir}/man1/gobject-query.1*
848cb578
MB
310%{_mandir}/man1/gtester-report.1*
311%{_mandir}/man1/gtester.1*
6fa08951 312%endif
c5cd89bd 313
5cb5b210 314%if %{with static_libs}
c5cd89bd
AF
315%files static
316%defattr(644,root,root,755)
1ebb8361 317%{_libdir}/libgio-2.0.a
6fa08951
JB
318%{_libdir}/libglib-2.0.a
319%{_libdir}/libgmodule-2.0.a
320%{_libdir}/libgobject-2.0.a
321%{_libdir}/libgthread-2.0.a
511b979a 322%endif
9fd4432e
JB
323
324%if %{with apidocs}
325%files apidocs
326%defattr(644,root,root,755)
1ebb8361 327%{_gtkdocdir}/gio
6fa08951
JB
328%{_gtkdocdir}/glib
329%{_gtkdocdir}/gobject
9fd4432e 330%endif
7966f809 331
f9d9fd77 332%files -n bash-completion-gio
7966f809
MB
333%defattr(644,root,root,755)
334%{_sysconfdir}/bash_completion.d/gdbus-bash-completion.sh
f9d9fd77 335%{_sysconfdir}/bash_completion.d/gsettings-bash-completion.sh
This page took 0.2208 seconds and 4 git commands to generate.