--- hackgimp.spec	Sun Mar  5 14:20:46 2000
+++ baz	Fri Mar 10 17:51:04 2000
@@ -1,7 +1,7 @@
 %define sname gimp
 %define oldversion 1.1.17
 %define version 1.1.18
-%define release 1mdk
+%define release 2mdk
 
 Name: hack%{sname}
 Summary: The GNU Image Manipulation Program
@@ -13,8 +13,10 @@
 URL: http://www.gimp.org
 BuildRoot: /var/tmp/%{name}-%{version}-buildroot
 Copyright: GPL
+Provides: gimp
 Packager: Geoffrey Lee <snailtalk@linux-mandrake.com>
 Prefix: /usr
+Obsoletes: gimp
 
 %description
 The GIMP is an image manipulation program suitable for photo retouching,
@@ -42,6 +44,8 @@
 %package libgimp
 Group: System Environment/Libraries
 Summary: GIMP libraries.
+Provides: gimp-libgimp libgck.so.1 libgimp.so.1 libgimpui.so.1
+Obsoletes: gimp-libgimp
 
 %description libgimp
 Libraries used to communicate between The GIMP and other programs which
@@ -50,6 +54,8 @@
 %package devel
 Group: Development/Libraries
 Summary: GIMP plugin and extension development kit.
+Provides: hackgimp-devel
+Obsoletes: gimp-devel
 
 %description devel
 Static libraries and header files for writing GIMP plugins and extensions.
@@ -68,6 +74,14 @@
 %install
 make install prefix=$RPM_BUILD_ROOT/%{prefix}
 
+
+cd $RPM_BUILD_ROOT/usr/lib
+# compat symlink to get stuff working.
+
+ln -sf libgimp.so libgimp.so.1
+ln -sf libgimpui.so libgimpui.so.1
+ln -sf libgck.so libgck.so.1
+
 if [ -d $RPM_BUILD_ROOT/usr/man ]; then
   find $RPM_BUILD_ROOT/usr/man -type f -exec bzip2 -9f {} \;
 fi
@@ -132,6 +146,12 @@
 rm -rf $RPM_BUILD_DIR/file.list.libgimp
 
 %changelog
+* Fri Mar 10 2000 Geoffrey Lee <snailtalk@linux-mandrake.com>
+- provides: gimp
+- add some compat symlinks
+- obsolete old gimp packages to make upgrade painless
+- add some old compat symlinks to provides
+
 * Sun Mar 05 2000 Geoffrey Lee <snailtalk@linux-mandrake.com>
 - renamed this package to hackgimp since this is devel
 - add devel warning to package description
