-%define _gcc_ver %(%{__cc} --version | cut -b 1)
+%define _gcc_ver %(%{__cc} -dumpversion | cut -b 1)
Summary: A wysiwyg mathematical text editor
Summary(pl): Edytor WYSIWYG do tekstów matematycznych
Name: TeXmacs
-Version: 0.3.5.14
+Version: 1.0
Release: 1
License: GPL
Group: Applications/Editors
BuildRequires: gcc2-c++
%endif
Requires: tetex
+Requires: guile-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
# gcc3 produces broken code (argh!!!), so switch to gcc2 if we found it
%build
cp -f /usr/share/automake/config.* .
aclocal
-autoconf
+%{__autoconf}
%configure
%{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"