Source0: ftp://ftp.simgear.org/pub/simgear/Source/%{name}-%{version}.tar.gz
Patch0: %{name}-DESTDIR.patch
Patch1: %{name}-shared.patch
+Patch2: %{name}-metakit.patch
URL: http://www.simgear.org
Requires: OpenGL
BuildRequires: OpenGL-devel
BuildRequires: libtool
BuildRequires: plib >= 1.2.0
BuildRequires: zlib-devel
+BuildRequires: tcl-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautoreqdep libGL.so.1 libGLU.so.1
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
libtoolize --force --copy
autoconf
automake -a -c
%configure \
- --with-x
+ --with-x \
+ --with-tcl=/usr/lib
%{__make}
%install