4 %bcond_without static_libs # don't build static library
6 Summary: Useful routines for 'C' programming
7 Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy
8 Summary(da.UTF-8): Nyttige biblioteksfunktioner
9 Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen
10 Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita
11 Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires
12 Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C
13 Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı
20 Source0: ftp://ftp.gtk.org/pub/gtk/v1.2/%{name}-%{version}.tar.gz
21 #Source0-md5: 6fe30dad87c77b91b632def29dd69ef9
22 Source1: http://developer.gnome.org/doc/API/%{name}-docs.tar.gz
23 #Source1-md5: cae06bf952176ab008100b7b954242f8
24 Patch0: %{name}-info.patch
25 Patch1: %{name}-ac25.patch
26 Patch2: %{name}-am18.patch
27 Patch3: %{name}-link.patch
28 Patch4: %{name}-gcc34.patch
29 Patch5: %{name}-slist_remove.patch
30 URL: http://www.gtk.org/
31 BuildRequires: autoconf >= 2.13
32 BuildRequires: automake >= 1.4
33 BuildRequires: libtool >= 1:1.4.2-9
34 BuildRequires: texinfo
36 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
38 %define specflags -fno-strict-aliasing
41 GLib, is a library which includes support routines for C such as
42 lists, trees, hashes, memory allocation, and many other things. GLIB
43 includes also generally useful data structures used by GIMP and many
46 %description -l cs.UTF-8
47 Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a
48 hlavičky jsou v balíčku glib-devel.
50 %description -l da.UTF-8
51 Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker
52 og headerfiler er i glib-devel pakken.
54 %description -l de.UTF-8
55 Eine nützliche Library von Dienstprogramm-Funktionen.
56 Entwicklungs-Libraries und Header befinden sich in glib-devel.
58 %description -l fi.UTF-8
59 Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja
60 header-tiedostot ovat glib-devel-paketissa.
62 %description -l pl.UTF-8
63 Glib jest zestawem bibliotek zawierających funkcje do obsługi list,
64 drzewek, funkcji mieszających, funkcji do alokacji pamięci i wielu
65 innych podstawowych funkcji i różnych struktur danych używanych przez
66 program GIMP i wiele innych.
68 %description -l tr.UTF-8
69 Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık
70 dosyaları glib-devel paketinde yer almaktadır.
73 Summary: Glib heades files, documentation
74 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do glib
75 Group: Development/Libraries
76 Requires: %{name} = %{epoch}:%{version}-%{release}
77 Obsoletes: libglib1.2-devel
80 Header files for the support library for the GIMP's X libraries, which
81 are available as public libraries. GLIB includes generally useful data
84 %description devel -l pl.UTF-8
85 Pliki nagłówkowe i dokumentacja do glib przydatna przy pisaniu
86 programów wykorzystujących tę bibliotekę.
89 Summary: Static glib libraries
90 Summary(pl.UTF-8): Biblioteki statyczne do glib
91 Group: Development/Libraries
92 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
95 Static glib libraries.
97 %description static -l pl.UTF-8
98 Biblioteki statyczne do glib.
116 --enable-debug=%{?debug:yes}%{!?debug:minimum} \
118 %{!?with_static_libs:--disable-static}
120 %{__make} -j1 all check
123 rm -rf $RPM_BUILD_ROOT
126 DESTDIR=$RPM_BUILD_ROOT \
127 m4datadir=%{_aclocaldir} \
128 pkgconfigdir=%{_pkgconfigdir}
130 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
133 rm -rf $RPM_BUILD_ROOT
135 %post -p /sbin/ldconfig
136 %postun -p /sbin/ldconfig
139 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
142 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
145 %defattr(644,root,root,755)
146 %doc AUTHORS ChangeLog NEWS README
147 %attr(755,root,root) %{_libdir}/libg*.so.*.*
150 %defattr(644,root,root,755)
152 %attr(755,root,root) %{_bindir}/glib-config
153 %attr(755,root,root) %{_libdir}/lib*.so
159 %{_infodir}/glib.info*
160 %{_mandir}/man1/glib-config.1*
162 %if %{with static_libs}
164 %defattr(644,root,root,755)