3 %bcond_without static_libs # static library
5 Summary: Useful routines for 'C' programming
6 Summary(cs.UTF-8): Šikovná knihovna s funkcemi pro pomocné programy
7 Summary(da.UTF-8): Nyttige biblioteksfunktioner
8 Summary(de.UTF-8): Eine nützliche Library von Dienstprogramm-Funktionen
9 Summary(fi.UTF-8): Kirjasto, jossa on työkalufunktioita
10 Summary(fr.UTF-8): Bibliothèque de fonctions utilitaires
11 Summary(pl.UTF-8): Biblioteka zawierająca wiele użytecznych funkcji C
12 Summary(tr.UTF-8): Yararlı ufak yordamlar kitaplığı
19 Source0: ftp://ftp.gtk.org/pub/gtk/v1.2/%{name}-%{version}.tar.gz
20 #Source0-md5: 6fe30dad87c77b91b632def29dd69ef9
21 Source1: http://developer.gnome.org/doc/API/%{name}-docs.tar.gz
22 #Source1-md5: cae06bf952176ab008100b7b954242f8
23 Patch0: %{name}-info.patch
24 Patch1: %{name}-ac25.patch
25 Patch2: %{name}-am18.patch
26 Patch3: %{name}-link.patch
27 Patch4: %{name}-gcc34.patch
28 Patch5: %{name}-slist_remove.patch
29 Patch6: format-security.patch
30 Patch7: texi-subsection.patch
32 Patch9: %{name}-libdir.patch
33 Patch10: inline-asm.patch
34 URL: http://www.gtk.org/
35 BuildRequires: autoconf >= 2.13
36 BuildRequires: automake >= 1.4
37 BuildRequires: libtool >= 1:1.4.2-9
38 BuildRequires: texinfo
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define specflags -fno-strict-aliasing
45 GLib, is a library which includes support routines for C such as
46 lists, trees, hashes, memory allocation, and many other things. GLIB
47 includes also generally useful data structures used by GIMP and many
50 %description -l cs.UTF-8
51 Šikovná knihovna s funkcemi pro pomocné programy. Vývojové knihovny a
52 hlavičky jsou v balíčku glib-devel.
54 %description -l da.UTF-8
55 Nyttigt bibliotek med forskellige funktioner. Udviklings- biblioteker
56 og headerfiler er i glib-devel pakken.
58 %description -l de.UTF-8
59 Eine nützliche Library von Dienstprogramm-Funktionen.
60 Entwicklungs-Libraries und Header befinden sich in glib-devel.
62 %description -l fi.UTF-8
63 Kirjasto, jossa on työkalufunktioita. Kehitysversiot ja
64 header-tiedostot ovat glib-devel-paketissa.
66 %description -l pl.UTF-8
67 Glib jest zestawem bibliotek zawierających funkcje do obsługi list,
68 drzewek, funkcji mieszających, funkcji do alokacji pamięci i wielu
69 innych podstawowych funkcji i różnych struktur danych używanych przez
70 program GIMP i wiele innych.
72 %description -l tr.UTF-8
73 Yararlı yordamlar kitaplığı. Geliştirme kitaplıkları ve başlık
74 dosyaları glib-devel paketinde yer almaktadır.
77 Summary: Glib heades files, documentation
78 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja do glib
79 Group: Development/Libraries
80 Requires: %{name} = %{epoch}:%{version}-%{release}
81 Obsoletes: libglib1.2-devel
84 Header files for the support library for the GIMP's X libraries, which
85 are available as public libraries. GLIB includes generally useful data
88 %description devel -l pl.UTF-8
89 Pliki nagłówkowe i dokumentacja do glib przydatna przy pisaniu
90 programów wykorzystujących tę bibliotekę.
93 Summary: Static glib libraries
94 Summary(pl.UTF-8): Biblioteki statyczne do glib
95 Group: Development/Libraries
96 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
99 Static glib libraries.
101 %description static -l pl.UTF-8
102 Biblioteki statyczne do glib.
125 --enable-debug=%{?debug:yes}%{!?debug:minimum} \
127 %{!?with_static_libs:--disable-static}
129 %{__make} -j1 all check
132 rm -rf $RPM_BUILD_ROOT
135 DESTDIR=$RPM_BUILD_ROOT \
136 m4datadir=%{_aclocaldir} \
137 pkgconfigdir=%{_pkgconfigdir}
139 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
142 rm -rf $RPM_BUILD_ROOT
144 %post -p /sbin/ldconfig
145 %postun -p /sbin/ldconfig
147 %post devel -p /sbin/postshell
148 -/usr/sbin/fix-info-dir -c %{_infodir}
150 %postun devel -p /sbin/postshell
151 -/usr/sbin/fix-info-dir -c %{_infodir}
154 %defattr(644,root,root,755)
155 %doc AUTHORS ChangeLog NEWS README
156 %attr(755,root,root) %{_libdir}/libglib-1.2.so.*.*.*
157 %attr(755,root,root) %ghost %{_libdir}/libglib-1.2.so.0
158 %attr(755,root,root) %{_libdir}/libgmodule-1.2.so.*.*.*
159 %attr(755,root,root) %ghost %{_libdir}/libgmodule-1.2.so.0
160 %attr(755,root,root) %{_libdir}/libgthread-1.2.so.*.*.*
161 %attr(755,root,root) %ghost %{_libdir}/libgthread-1.2.so.0
164 %defattr(644,root,root,755)
166 %attr(755,root,root) %{_bindir}/glib-config
167 %attr(755,root,root) %{_libdir}/libglib.so
168 %attr(755,root,root) %{_libdir}/libgmodule.so
169 %attr(755,root,root) %{_libdir}/libgthread.so
170 %{_libdir}/libglib.la
171 %{_libdir}/libgmodule.la
172 %{_libdir}/libgthread.la
174 %{_includedir}/glib-1.2
175 %{_pkgconfigdir}/glib.pc
176 %{_pkgconfigdir}/gmodule.pc
177 %{_pkgconfigdir}/gthread.pc
178 %{_aclocaldir}/glib.m4
179 %{_infodir}/glib.info*
180 %{_mandir}/man1/glib-config.1*
182 %if %{with static_libs}
184 %defattr(644,root,root,755)
186 %{_libdir}/libgmodule.a
187 %{_libdir}/libgthread.a