1998-03-13 20:20:38 +00:00
|
|
|
# Note that this is NOT a relocatable package
|
1998-06-04 16:04:09 +00:00
|
|
|
%define ver 1.0.4
|
1998-03-13 20:20:38 +00:00
|
|
|
%define rel SNAP
|
|
|
|
%define prefix /usr
|
|
|
|
|
|
|
|
Summary: The Gimp Toolkit
|
|
|
|
Name: gtk+
|
|
|
|
Version: %ver
|
|
|
|
Release: %rel
|
|
|
|
Copyright: LGPL
|
|
|
|
Group: X11/Libraries
|
1998-04-10 02:33:54 +00:00
|
|
|
Source: ftp://ftp.gimp.org/pub/gtk/v1.0/gtk+-%{ver}.tar.gz
|
1998-03-13 20:20:38 +00:00
|
|
|
BuildRoot: /tmp/gtk-root
|
|
|
|
Obsoletes: gtk
|
|
|
|
Packager: Marc Ewing <marc@redhat.com>
|
1998-03-28 01:01:54 +00:00
|
|
|
URL: http://www.gtk.org
|
1998-03-13 20:20:38 +00:00
|
|
|
Prereq: /sbin/install-info
|
1998-04-13 17:36:45 +00:00
|
|
|
Requires: glib
|
1998-03-13 20:20:38 +00:00
|
|
|
Docdir: %{prefix}/doc
|
|
|
|
|
|
|
|
%description
|
|
|
|
The X libraries originally written for the GIMP, which are now used by
|
|
|
|
several other programs as well.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: GIMP Toolkit and GIMP Drawing Kit
|
|
|
|
Group: X11/Libraries
|
|
|
|
Requires: gtk+
|
|
|
|
Obsoletes: gtk-devel
|
|
|
|
PreReq: /sbin/install-info
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Static libraries and header files for the GIMP's X libraries, which are
|
|
|
|
available as public libraries. GLIB includes generally useful data
|
|
|
|
structures, GDK is a drawing toolkit which provides a thin layer over
|
|
|
|
Xlib to help automate things like dealing with different color depths,
|
|
|
|
and GTK is a widget set for creating user interfaces.
|
|
|
|
|
1998-04-13 17:36:45 +00:00
|
|
|
%package -n glib
|
|
|
|
Summary: Handy library of utility functions
|
|
|
|
Group: Libraries
|
|
|
|
|
|
|
|
%description -n glib
|
|
|
|
Handy library of utility functions. Development libs and headers
|
|
|
|
are in gtk+-devel.
|
|
|
|
|
1998-03-13 20:20:38 +00:00
|
|
|
%changelog
|
|
|
|
|
1998-04-13 17:36:45 +00:00
|
|
|
* Mon Apr 13 1998 Marc Ewing <marc@redhat.com>
|
|
|
|
|
|
|
|
- Split out glib package
|
|
|
|
|
1998-04-10 02:33:54 +00:00
|
|
|
* Tue Apr 8 1998 Shawn T. Amundson <amundson@gtk.org>
|
|
|
|
|
|
|
|
- Changed version to 1.0.0
|
|
|
|
|
1998-04-08 04:07:01 +00:00
|
|
|
* Tue Apr 7 1998 Owen Taylor <otaylor@gtk.org>
|
|
|
|
|
|
|
|
- Changed version to 0.99.10
|
|
|
|
|
1998-03-20 16:03:21 +00:00
|
|
|
* Thu Mar 19 1998 Shawn T. Amundson <amundson@gimp.org>
|
1998-03-20 01:37:14 +00:00
|
|
|
|
1998-03-28 01:01:54 +00:00
|
|
|
- Changed version to 0.99.9
|
|
|
|
- Changed gtk home page to www.gtk.org
|
|
|
|
|
|
|
|
* Thu Mar 19 1998 Shawn T. Amundson <amundson@gimp.org>
|
|
|
|
|
1998-03-20 01:37:14 +00:00
|
|
|
- Changed version to 0.99.8
|
|
|
|
|
1998-03-15 21:29:10 +00:00
|
|
|
* Sun Mar 15 1998 Marc Ewing <marc@redhat.com>
|
|
|
|
|
1998-03-15 22:01:39 +00:00
|
|
|
- Added aclocal and bin stuff to file list.
|
1998-03-15 21:29:10 +00:00
|
|
|
|
1998-03-15 22:07:10 +00:00
|
|
|
- Added -k to the SMP make line.
|
|
|
|
|
1998-03-15 22:25:11 +00:00
|
|
|
- Added lib/glib to file list.
|
|
|
|
|
1998-03-14 22:41:34 +00:00
|
|
|
* Fri Mar 14 1998 Shawn T. Amundson <amundson@gimp.org>
|
|
|
|
|
1998-03-15 03:46:29 +00:00
|
|
|
- Changed version to 0.99.7
|
|
|
|
|
|
|
|
* Fri Mar 14 1998 Shawn T. Amundson <amundson@gimp.org>
|
|
|
|
|
1998-03-14 22:41:34 +00:00
|
|
|
- Updated ftp url and changed version to 0.99.6
|
|
|
|
|
1998-03-13 20:20:38 +00:00
|
|
|
* Thu Mar 12 1998 Marc Ewing <marc@redhat.com>
|
|
|
|
|
|
|
|
- Reworked to integrate into gtk+ source tree
|
|
|
|
|
|
|
|
- Truncated ChangeLog. Previous Authors:
|
|
|
|
Trond Eivind Glomsrod <teg@pvv.ntnu.no>
|
|
|
|
Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
Otto Hammersmith <otto@redhat.com>
|
|
|
|
|
|
|
|
%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
|
1998-03-15 22:07:10 +00:00
|
|
|
(make "MAKE=make -k -j $SMP"; exit 0)
|
1998-03-13 20:20:38 +00:00
|
|
|
make
|
|
|
|
else
|
|
|
|
make
|
|
|
|
fi
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
make prefix=$RPM_BUILD_ROOT%{prefix} install
|
|
|
|
|
|
|
|
gzip -9n $RPM_BUILD_ROOT%{prefix}/info/*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
1998-04-13 17:36:45 +00:00
|
|
|
%post -n glib -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n glib -p /sbin/ldconfig
|
|
|
|
|
1998-03-13 20:20:38 +00:00
|
|
|
%post devel
|
|
|
|
/sbin/install-info %{prefix}/info/gdk.info.gz %{prefix}/info/dir
|
|
|
|
/sbin/install-info %{prefix}/info/gtk.info.gz %{prefix}/info/dir
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
if [ $1 = 0 ]; then
|
|
|
|
/sbin/install-info --delete %{prefix}/info/gdk.info.gz %{prefix}/info/dir
|
|
|
|
/sbin/install-info --delete %{prefix}/info/gtk.info.gz %{prefix}/info/dir
|
|
|
|
fi
|
|
|
|
|
|
|
|
%files
|
1998-03-15 21:29:10 +00:00
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
1998-05-07 18:33:29 +00:00
|
|
|
%{prefix}/lib/libgtk-1.1.so.*
|
|
|
|
%{prefix}/lib/libgdk-1.1.so.*
|
1998-04-13 17:36:45 +00:00
|
|
|
|
|
|
|
%files -n glib
|
|
|
|
%defattr(-, root, root)
|
1998-05-07 18:33:29 +00:00
|
|
|
%{prefix}/lib/libglib-1.1.so.*
|
1998-03-13 20:20:38 +00:00
|
|
|
|
|
|
|
%files devel
|
1998-03-15 21:29:10 +00:00
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
|
|
%{prefix}/lib/lib*.so
|
|
|
|
%{prefix}/lib/*a
|
1998-03-15 22:25:11 +00:00
|
|
|
%{prefix}/lib/glib
|
1998-03-15 21:29:10 +00:00
|
|
|
%{prefix}/include/*
|
|
|
|
%{prefix}/info/*
|
|
|
|
%{prefix}/share/aclocal/*
|
1998-03-15 22:01:39 +00:00
|
|
|
%{prefix}/bin/*
|