%ifos darwin %define __defattr %defattr(-, root, wheel) %define __soext dylib %else %define __defattr %defattr(-, root, root) %define __soext so %endif Summary: A library of handy utility functions. Name: glib Version: 1.2.10 Release: 8b License: LGPL Group: System Environment/Libraries Source: ftp://ftp.gimp.org/pub/gtk/v1.2/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-root URL: http://www.gtk.org # Suppress warnings about varargs macros for -pedantic Patch1: glib-1.2.10-isowarning.patch %description GLib is a handy library of utility functions. This C library is designed to solve some portability problems and provide other useful functionality which most programs require. GLib is used by GDK, GTK+ and many applications. You should install th glib package because many of your applications will depend on this library. %package devel Summary: The GIMP ToolKit (GTK+) and GIMP Drawing Kit (GDK) support library. Group: Development/Libraries Requires: glib = %{version} %description devel The glib-devel package includes the static libraries and header files for the support library for the GIMP's X libraries (GTK+ and GDK), which are available as public libraries. Install glib-devel if you want to develop programs which will use GLib. %prep %setup -q %patch1 -p1 -b .isowarning cp /usr/share/libtool/{config.sub,config.guess,ltmain.sh} . %build %ifos darwin ./configure --prefix=%{_prefix} cp /usr/bin/glibtool libtool %else %configure %endif make %install rm -rf $RPM_BUILD_ROOT %makeinstall rm -f $RPM_BUILD_ROOT%{_infodir}/dir %clean rm -rf $RPM_BUILD_ROOT %ifnos darwin %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %endif %files %{__defattr} %doc AUTHORS COPYING ChangeLog NEWS README %ifos darwin %{_libdir}/libglib-1.2.*.%{__soext} %{_libdir}/libgthread-1.2.*.%{__soext} %{_libdir}/libgmodule-1.2.*.%{__soext} %else %{_libdir}/libglib-1.2.%{__soext}.* %{_libdir}/libgthread-1.2.%{__soext}.* %{_libdir}/libgmodule-1.2.%{__soext}.* %endif %files devel %{__defattr} %{_libdir}/libglib.%{__soext} %{_libdir}/libgmodule.%{__soext} %{_libdir}/libgthread.%{__soext} %{_libdir}/*a %{_libdir}/glib %{_libdir}/pkgconfig/* %{_includedir}/* %{_infodir}/glib.info* %{_mandir}/man1/* %{_datadir}/aclocal/* %{_bindir}/* %changelog * Mon Jan 5 2004 Keisuke Fujii 1.2.10-8b - 1st release on MacOS X 10.3. * Fri Oct 11 2002 Keisuke Fujii - 1st release on MacOS X 10.2. * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Wed Jan 09 2002 Tim Powers - automated rebuild * Sat Jul 21 2001 Owen Taylor - Add #pragma GCC system_header to supress warnings when in -pedantic mode. (41271) * Tue Jul 10 2001 Trond Eivind Glomsrød - s/Copyright/License/ - Make the devel subpackage depend on the main package * Sun Jun 24 2001 Elliot Lee - Bump release + rebuild. * Sun Apr 22 2001 - Include pc files. * Tue Apr 17 2001 Jonathan Blandford - Version 1.2.10 * Mon Mar 05 2001 Owen Taylor - Version 1.2.9 * Wed Feb 28 2001 Owen Taylor - Version 1.2.9pre3 * Tue Feb 27 2001 Owen Taylor - Version 1.2.9pre2 * Tue Feb 13 2001 Owen Taylor - Version 1.2.9pre1 * Sat Oct 28 2000 Owen Taylor - Add patch to suppress warnings from GCC by using C99 standard varargs macros * Fri Aug 11 2000 Jonathan Blandford - Up Epoch and release * Thu Jul 13 2000 Prospector - automatic rebuild * Mon Jun 19 2000 Preston Brown - FHS paths * Thu May 25 2000 Owen Taylor - Version 1.2.8 * Mon May 1 2000 Matt Wilson - version 1.2.7 * Fri Feb 04 2000 Owen Taylor - Added fixes from stable branch of CVS * Thu Oct 7 1999 Owen Taylor - version 1.2.6 * Fri Sep 24 1999 Owen Taylor - version 1.2.5 * Fri Sep 17 1999 Owen Taylor - version 1.2.4 * Mon Jun 7 1999 Owen Taylor - version 1.2.3 * Thu Mar 25 1999 Michael Fulbright - version 1.2.1 * Fri Feb 26 1999 Michael Fulbright - Version 1.2 * Thu Feb 25 1999 Michael Fulbright - version 1.2.0pre1 * Tue Feb 23 1999 Cristian Gafton - new description tags * Sun Feb 21 1999 Michael Fulbright - removed libtoolize from %build * Thu Feb 11 1999 Michael Fulbright - added libgthread to file list * Fri Feb 05 1999 Michael Fulbright - version 1.1.15 * Wed Feb 03 1999 Michael Fulbright - version 1.1.14 * Mon Jan 18 1999 Michael Fulbright - version 1.1.13 * Wed Jan 06 1999 Michael Fulbright - version 1.1.12 * Wed Dec 16 1998 Michael Fulbright - updated in preparation for the GNOME freeze * Mon Apr 13 1998 Marc Ewing - Split out glib package