2001-08-27 14:36:50 +00:00
|
|
|
Name: gtk2
|
2001-08-27 08:54:53 +00:00
|
|
|
Summary: The Gimp Toolkit
|
|
|
|
Version: @VERSION@
|
|
|
|
Release: 1
|
|
|
|
License: LGPL
|
|
|
|
Group: X11/Libraries
|
2001-08-27 14:36:50 +00:00
|
|
|
Source: ftp://ftp.gimp.org/pub/gtk/v1.3/gtk+-%{version}.tar.gz
|
|
|
|
BuildRoot: /var/tmp/%{name}-%{version}-root
|
2001-08-27 08:54:53 +00:00
|
|
|
URL: http://www.gtk.org
|
2001-08-27 14:36:50 +00:00
|
|
|
Requires: glib2 >= %{version}
|
2001-08-27 08:54:53 +00:00
|
|
|
Requires: pango
|
|
|
|
Requires: atk
|
2001-08-27 14:36:50 +00:00
|
|
|
BuildRequires: glib2-devel
|
2001-08-27 08:54:53 +00:00
|
|
|
BuildRequires: pango-devel
|
|
|
|
BuildRequires: atk-devel
|
1998-03-13 20:20:38 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
The X libraries originally written for the GIMP, which are now used by
|
|
|
|
several other programs as well.
|
|
|
|
|
|
|
|
%package devel
|
2001-08-27 08:54:53 +00:00
|
|
|
Summary: GIMP Toolkit and GIMP Drawing Kit
|
|
|
|
Group: X11/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
1998-03-13 20:20:38 +00:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2001-08-27 14:36:50 +00:00
|
|
|
%setup -q -n gtk+-%{version}
|
1998-03-13 20:20:38 +00:00
|
|
|
|
|
|
|
%build
|
2001-08-27 08:54:53 +00:00
|
|
|
%ifarch alpha
|
|
|
|
MYARCH_FLAGS="--host=alpha-redhat-linux"
|
|
|
|
%endif
|
|
|
|
|
1998-03-13 20:20:38 +00:00
|
|
|
# Needed for snapshot releases.
|
2001-08-27 08:54:53 +00:00
|
|
|
MYCFLAGS="$RPM_OPT_FLAGS"
|
1998-03-13 20:20:38 +00:00
|
|
|
if [ ! -f configure ]; then
|
2001-08-27 08:54:53 +00:00
|
|
|
CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS \
|
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--localstatedir=%{_localstatedir} --sysconfdir=%{_sysconfdir} \
|
|
|
|
--mandir=%{_mandir} --libdir=%{_libdir} \
|
|
|
|
--includedir=%{_includedir}
|
1998-03-13 20:20:38 +00:00
|
|
|
else
|
2001-08-27 08:54:53 +00:00
|
|
|
CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS \
|
|
|
|
--prefix=%{_prefix} --localstatedir=%{_localstatedir} \
|
|
|
|
--sysconfdir=%{_sysconfdir} --mandir=%{_mandir} \
|
|
|
|
--libdir=%{_libdir} --includedir=%{_includedir} --disable-gtk-doc
|
1998-03-13 20:20:38 +00:00
|
|
|
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
|
|
|
|
|
2001-08-27 08:54:53 +00:00
|
|
|
make -k sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
|
|
|
|
prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \
|
|
|
|
localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
|
|
|
|
libdir=$RPM_BUILD_ROOT%{_libdir} \
|
|
|
|
includedir=$RPM_BUILD_ROOT%{_includedir} install
|
1998-03-13 20:20:38 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
1998-03-15 21:29:10 +00:00
|
|
|
%defattr(-, root, root)
|
|
|
|
|
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README TODO
|
2001-08-27 08:54:53 +00:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_libdir}/libgtk*.so.*
|
|
|
|
%{_libdir}/libgdk*.so.*
|
|
|
|
%{_libdir}/gtk-2.0/%{version}/*/*.so
|
|
|
|
#%{_datadir}/locale/*/*/*
|
|
|
|
%{_sysconfdir}/gtk-2.0/gtk.immodules
|
1998-04-13 17:36:45 +00:00
|
|
|
|
1998-03-13 20:20:38 +00:00
|
|
|
%files devel
|
1998-03-15 21:29:10 +00:00
|
|
|
%defattr(-, root, root)
|
|
|
|
|
2001-08-27 08:54:53 +00:00
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_libdir}/*a
|
|
|
|
%{_libdir}/gtk-2.0/%{version}/*/*a
|
|
|
|
%{_libdir}/gtk-2.0/include
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_includedir}/gtk-2.0
|
|
|
|
%{_datadir}/gtk-2.0
|
|
|
|
%{_datadir}/aclocal/*
|
|
|
|
%{_datadir}/gtk-doc/html/*
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2001-08-27 14:36:50 +00:00
|
|
|
* Mon Aug 27 2001 Jens Finke <jens@gnome.org>
|
|
|
|
- Renamed package to gtk2.
|
|
|
|
- Updated source url.
|
|
|
|
- glib2 package required.
|
|
|
|
|
2001-08-27 08:54:53 +00:00
|
|
|
* Mon Aug 27 2001 Jens Finke <jens@gnome.org>
|
|
|
|
- Updated spec file to match gpp standard and
|
|
|
|
1.3.x files.
|
|
|
|
- Removed all hardcoded paths, use rpm macros instead.
|
|
|
|
- Added pango and atk Requires: and BuildRequires: statements.
|
|
|
|
- Removed Docdir: statement.
|
|
|
|
- Moved ChangeLog to the end of the file.
|
|
|
|
- Truncated ChangeLog (Mar 12 1998 - Jun 1 1999)
|
|
|
|
Previous Authors:
|
|
|
|
Jose Mercado <jmercado@mit.edu>
|
|
|
|
Michael Fulbright <drmike@redhat.com>
|
|
|
|
Shawn T. Amundson <amundson@gtk.org>
|
|
|
|
Dick Porter <dick@cymru.net>
|
|
|
|
Marc Ewing <marc@redhat.com>
|
|
|
|
Owen Taylor <otaylor@gtk.org>
|
|
|
|
Trond Eivind Glomsrod <teg@pvv.ntnu.no>
|
|
|
|
Michael K. Johnson <johnsonm@redhat.com>
|
|
|
|
Otto Hammersmith <otto@redhat.com>
|