-
-%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.12
-Release: 3
+Version: 1.0
+Release: 1
License: GPL
Group: Applications/Editors
-Group(cs): Aplikace/Editory
-Group(da): Programmer/Tekstbehandlere
-Group(de): Applikationen/Editoren
-Group(es): Aplicaciones/Editores
-Group(fr): Applications/Editeurs
-Group(it): Applicazioni/Editor
-Group(ja): ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó/¥¨¥Ç¥£¥¿
-Group(no): Applikasjoner/Editorer
-Group(pl): Aplikacje/Edytory
-Group(pt): Aplicações/Editores
-Group(ru): ðÒÉÌÏÖÅÎÉÑ/òÅÄÁËÔÏÒÙ
-Group(sv): Tillämpningar/Editorer
Source0: ftp://ftp.texmacs.org/pub/TeXmacs/targz/%{name}-%{version}-src.tar.gz
Patch0: %{name}-ac_fixes.patch
Patch1: %{name}-polish.patch
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
+%if %{_gcc_ver} == 3
+%define __cc gcc2
+%define __cxx g++2
+%ifarch athlon
+%define rpmcflags -O2 -march=i686
+%endif
+%endif
%description
GNU TeXmacs is a free what-you-see-is-what-you-get mathematical text
%patch1 -p1
%build
-aclocal
-autoconf
cp -f /usr/share/automake/config.* .
-# gcc3 produces broken code (argh!!!), so switch to gcc3 if we found it
-%if %{_gcc_ver} == 3
-%define __cc gcc2
-%define __cxx g++2
-%ifarch athlon
-%define rpmcflags -O2 -march=i686
-%endif
-%endif
+aclocal
+%{__autoconf}
%configure
%{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"