-%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.13
+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 gcc3 if we found it
+# gcc3 produces broken code (argh!!!), so switch to gcc2 if we found it
%if %{_gcc_ver} == 3
%define __cc gcc2
%define __cxx g++2
%patch1 -p1
%build
+cp -f /usr/share/automake/config.* .
aclocal
-autoconf
-updateconfig
+%{__autoconf}
%configure
%{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"