2 %define _gcc_ver %(%{__cc} --version | cut -b 1)
4 Summary: A wysiwyg mathematical text editor
5 Summary(pl): Edytor WYSIWYG do tekstów matematycznych
10 Group: Applications/Editors
11 Source0: ftp://ftp.texmacs.org/pub/TeXmacs/targz/%{name}-%{version}-src.tar.gz
12 Patch0: %{name}-ac_fixes.patch
13 Patch1: %{name}-polish.patch
14 URL: http://www.texmacs.org/
15 BuildRequires: XFree86-devel
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: guile-devel
19 BuildRequires: libstdc++-devel
21 BuildRequires: gcc2-c++
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 GNU TeXmacs is a free what-you-see-is-what-you-get mathematical text
29 editor, which was both inspired by TeX and GNU Emacs. The program
30 implements high quality typesetting using TeX fonts, but it is also
31 provides a user friendly interface.
33 The high typesetting quality still goes through for automatically
34 generated formulas, and it is possible to use TeXmacs as an interface
35 to computer algebra systems. GNU TeXmacs also supports the
36 Guile/Scheme extension language, which makes it possible to adapt the
37 user interface to specific needs and even to extend the editor.
40 GNU TeXmacs jest wolnodostêpnym edytorem typu WYSIWYG do tekstów
41 matematycznych, zainspirowanym przez TeX-a i GNU Emacsa. Ma
42 zaimplementowany wysokiej jako¶ci sk³ad przy u¿yciu fontów TeX-a, ale
43 udostêpnia tak¿e przyjazny interfejs u¿ytkownika.
45 Wysoka jako¶æ sk³adu jest zachowana przy automatycznie generowanych
46 wzorach i jest mo¿liwe u¿ywanie TeXmacsa jako interfejsu do systemów
47 algebry. GNU TeXmacs obs³uguje tak¿e jêzyk rozszerzeñ Guile/Scheme, co
48 umo¿liwia adaptowanie interfejsu u¿ytkownika do specyficznych potrzeb,
49 a tak¿e rozszerzanie edytora.
52 %setup -q -n %{name}-%{version}-src
59 cp -f /usr/share/automake/config.* .
60 # gcc3 produces broken code (argh!!!), so switch to gcc3 if we found it
65 %define rpmcflags -O2 -march=i686
70 %{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"
73 rm -rf $RPM_BUILD_ROOT
76 DESTDIR=$RPM_BUILD_ROOT
79 rm -rf $RPM_BUILD_ROOT
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_bindir}/*
85 %dir %{_libdir}/%{name}-%{version}
86 %dir %{_libdir}/%{name}-%{version}/bin
87 %dir %{_libdir}/%{name}-%{version}/lib
88 %attr(755,root,root) %{_libdir}/%{name}-%{version}/bin/*
89 %attr(755,root,root) %{_libdir}/%{name}-%{version}/lib/*
90 %{_datadir}/%{name}-%{version}