%ifos darwin %define __defattr %defattr(-, root, wheel) %else %define __defattr %defattr(-, root, root) %endif Summary: A library of handy utility functions. Name: glib Version: 1.2.10 Release: 4a Epoch: 1 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 %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 %build %ifos darwin cp /usr/share/libtool/{ltconfig,ltmain.sh,config.*} . CFLAGS="%{optflags} -traditional-cpp" ./configure %else %configure %endif make %install rm -rf $RPM_BUILD_ROOT %makeinstall %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 %ifnos darwin %{_libdir}/libglib-1.2.so.* %{_libdir}/libgthread-1.2.so.* %{_libdir}/libgmodule-1.2.so.* %else %{_libdir}/libglib.dylib %{_libdir}/libgthread.dylib %{_libdir}/libgmodule.dylib %endif %files devel %{__defattr} %ifnos darwin %{_libdir}/lib*.so %endif %{_libdir}/*a %{_libdir}/glib %{_libdir}/pkgconfig/* %{_includedir}/* %{_mandir}/man1/* %{_datadir}/aclocal/* %{_bindir}/* %changelog * Thu Jul 19 2001 Keisuke Fujii - 1st release built on MacOS X release. * 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