]> git.pld-linux.org Git - packages/TeXmacs.git/commitdiff
- gcc3 produces broken code for this app, so take care to switch to gcc2 if gcc3... TeXmacs-0_3_5_12-3
authorfilon <filon@sokrates.mimuw.edu.pl>
Wed, 20 Feb 2002 23:07:10 +0000 (23:07 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- release 3

Changed files:
    TeXmacs.spec -> 1.17

TeXmacs.spec

index ed1588469df011a7133a0f3b5717ce949130446f..b628a5718fc674369bd4627e8b2ac95a51d299e8 100644 (file)
@@ -1,8 +1,11 @@
+
+%define         _gcc_ver        %(%{__cc} --version | 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:       2
+Release:       3
 License:       GPL
 Group:         Applications/Editors
 Group(cs):     Aplikace/Editory
@@ -26,10 +29,12 @@ BuildRequires:      autoconf
 BuildRequires: automake
 BuildRequires: guile-devel
 BuildRequires: libstdc++-devel
+%if %{_gcc_ver} == 3
+BuildRequires: gcc2-c++
+%endif
 Requires:      tetex
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define         _gcc_ver        %(%{__cc} --version | cut -b 1)
 
 %description
 GNU TeXmacs is a free what-you-see-is-what-you-get mathematical text
@@ -64,15 +69,17 @@ a tak
 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
 %configure
 
-# adding this CXXFLAGS causes gcc3 SIGSEV, so use it only with gcc2.x
-%if %{_gcc_ver} == 2
 %{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"
-%endif
-%if %{_gcc_ver} == 3
-%{__make}
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
This page took 0.058509 seconds and 4 git commands to generate.