%define _prefix /opt/freeware %define _defaultdocdir %{_prefix}/doc %define pkg-config_version 0.19 Summary: A library of handy utility functions. Name: glib2 Version: 2.8.1 Release: 3 License: LGPL Group: System Environment/Libraries Source: glib-%{version}.tar.bz2 Patch0: glib-2.8.1-aix.patch Patch1: glib-2.8.1-autotools.patch BuildRoot: %{_tmppath}/%{name}-%{version}-root URL: http://www.gtk.org Requires: gettext BuildRequires: pkg-config >= 0.19 Obsoletes: glib-gtkbeta %description GLib is the low-level core library that forms the basis for projects such as GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system. This package provides version 2.0 of GLib. %package devel Summary: The GIMP ToolKit (GTK+) and GIMP Drawing Kit (GDK) support library Group: Development/Libraries Obsoletes: glib-gtkbeta-devel Requires: pkg-config >= 0.19 Requires: %{name} = %{version} #Conflicts: glib-devel <= 1:1.2.8 %description devel The glib-devel package includes the header files for version 2.0 of the GLib library. %prep %setup -q -n glib-%{version} if test x$PATCH = x ; then PATCH=patch ; fi $PATCH -p2 -s < %{_sourcedir}/glib-2.8.1-aix.patch $PATCH -p2 -s < %{_sourcedir}/glib-2.8.1-autotools.patch %build PATH=%{_bindir}:$PATH ./configure --prefix=%{_prefix} --disable-gtk-doc PATH=%{_bindir}:$PATH make %install if test "%{buildroot}" != "/"; then rm -rf %{buildroot} fi mkdir -p %{buildroot} make DESTDIR=%{buildroot} install-strip # make links cd %{buildroot} for dir in bin lib include share do mkdir -p usr/$dir cd usr/$dir ln -sf ../..%{_prefix}/$dir/* . cd - done %post grep "G_BROKEN_FILENAMES=" /etc/environment >/dev/null if [ 1 -eq $? ] then echo "# Glib-2 by default will encode file names in UTF-8, rather than the encoding used by your locale." >> /etc/environment echo "# Setting G_BROKEN_FILENAMES=1 will cause Glib-2 to use the current locale encoding for file names." >> /etc/environment echo "# Comment this out if you wish Glib-2 to use UTF-8 file names." >> /etc/environment echo G_BROKEN_FILENAMES=1 >> /etc/environment fi # Prototype support gtk 64 bit mkdir -p /opt/freeware/64/lib cd /opt/freeware/64/lib ln -sf /opt/freeware/lib/libglib-2.0.a . ln -sf /opt/freeware/lib/libgmodule-2.0.a . ln -sf /opt/freeware/lib/libgobject-2.0.a . ln -sf /opt/freeware/lib/libgthread-2.0.a . %files %defattr(-, root, system) %doc AUTHORS COPYING ChangeLog NEWS README %config %{_libdir}/charset.alias %{_libdir}/lib*.a /usr/lib/lib*.a %{_datadir}/locale/*/LC_MESSAGES/glib20.mo /usr/share %files devel %defattr(-, root, system) %{_libdir}/glib-2.0 %{_libdir}/lib*.la /usr/lib/lib*.la %{_includedir}/* /usr/include/* %{_datadir}/aclocal/* %{_datadir}/gtk-doc/ %{_libdir}/pkgconfig/* %{_datadir}/glib-2.0 %{_bindir}/* /usr/bin/* %{_mandir}/man1/* /usr/share %changelog * Fri Dec 23 2005 BULL - Release 3 - Prototype gtk 64 bit * Tue Dec 06 2005 BULL - Release 2 - correct UTF8 conversion problem that for example prevent metacity to launch at startup. * Tue Nov 15 2005 BULL - Release 1 - New version version: 2.8.1 * Tue Aug 09 2005 BULL - Release 4 - Create symlinks between /usr/share and /opt/freeware/share * Thu Jun 23 2005 BULL - Release 3 * Wed May 25 2005 BULL - Release 1 - New version version: 2.6.3 * Wed Feb 16 2005 BULL - Release 2 - Move setting of G_BROKEN_FILENAMES in /etc/environment from gedit to glib * Wed Nov 24 2004 BULL - Release 1 - New version version: 2.4.7 * Tue Nov 23 2004 BULL - Release 3 * Mon Sep 20 2004 BULL - Release 2 - Do not core when dlerror() returns NIL