1998-06-11 21:33:31 +02:00
|
|
|
# Note that this is NOT a relocatable package
|
1998-12-02 06:30:22 +01:00
|
|
|
%define ver 1.1.6
|
1998-06-11 21:33:31 +02:00
|
|
|
%define rel SNAP
|
|
|
|
%define prefix /usr
|
|
|
|
|
|
|
|
Summary: Handy library of utility functions
|
|
|
|
Name: glib
|
|
|
|
Version: %ver
|
|
|
|
Release: %rel
|
|
|
|
Copyright: LGPL
|
|
|
|
Group: Libraries
|
1998-11-23 02:37:32 +01:00
|
|
|
Source: ftp://ftp.gimp.org/pub/gtk/v1.1/glib-%{ver}.tar.gz
|
1998-06-11 21:33:31 +02:00
|
|
|
BuildRoot: /tmp/glib-root
|
|
|
|
URL: http://www.gtk.org
|
|
|
|
Docdir: %{prefix}/doc
|
|
|
|
|
|
|
|
%description
|
|
|
|
Handy library of utility functions. Development libs and headers
|
|
|
|
are in glib-devel.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: GIMP Toolkit and GIMP Drawing Kit support library
|
|
|
|
Group: X11/Libraries
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Static libraries and header files for the support library for the GIMP's X
|
|
|
|
libraries, which are available as public libraries. GLIB includes generally
|
|
|
|
useful data structures.
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
|
|
|
* Mon Apr 13 1998 Marc Ewing <marc@redhat.com>
|
|
|
|
|
|
|
|
- Split out glib package
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
|
|
|
# Needed for snapshot releases.
|
|
|
|
if [ ! -f configure ]; then
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix
|
|
|
|
else
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$SMP" != "" ]; then
|
|
|
|
(make "MAKE=make -k -j $SMP"; exit 0)
|
|
|
|
make
|
|
|
|
else
|
|
|
|
make
|
|
|
|
fi
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make prefix=$RPM_BUILD_ROOT%{prefix} install
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README
|
|
|
|
%{prefix}/lib/libglib-1.1.so.*
|
1998-10-18 08:40:49 +02:00
|
|
|
%{prefix}/lib/libgmodule-1.1.so.*
|
1998-06-11 21:33:31 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
|
|
%{prefix}/lib/lib*.so
|
|
|
|
%{prefix}/lib/*a
|
|
|
|
%{prefix}/lib/glib
|
|
|
|
%{prefix}/include/*
|
|
|
|
%{prefix}/share/aclocal/*
|
|
|
|
%{prefix}/bin/*
|