]> git.pld-linux.org Git - packages/TeXmacs.git/blobdiff - TeXmacs.spec
perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
[packages/TeXmacs.git] / TeXmacs.spec
index 81363333fb3ad539b2171d66de7c40fa2da64a58..df640e058f62ab4381e25db0fb44765b469d1d97 100644 (file)
@@ -1,21 +1,37 @@
+%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.0
+Version:       1.0
 Release:       1
 License:       GPL
 Group:         Applications/Editors
-Group(de):     Applikationen/Editors
-Group(pl):     Aplikacje/Edytory
-Group(pt):     Aplicações/Editores
 Source0:       ftp://ftp.texmacs.org/pub/TeXmacs/targz/%{name}-%{version}-src.tar.gz
+Patch0:                %{name}-ac_fixes.patch
+Patch1:                %{name}-polish.patch
 URL:           http://www.texmacs.org/
+BuildRequires: XFree86-devel
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: guile-devel
 BuildRequires: libstdc++-devel
-BuildRequires: XFree86-devel
+%if %{_gcc_ver} == 3
+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
 editor, which was both inspired by TeX and GNU Emacs. The program
@@ -42,12 +58,16 @@ a tak
 
 %prep
 %setup -q -n %{name}-%{version}-src
+%patch0 -p1
+%patch1 -p1
 
 %build
-%configure2_13 \
-       --libexecdir=%{_libdir}
+cp -f /usr/share/automake/config.* .
+aclocal
+%{__autoconf}
+%configure
 
-%{__make} CXXFLAGS="%{rpmcflags}"
+%{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.075057 seconds and 4 git commands to generate.