1 %define _gcc_ver %(%{__cc} -dumpversion | cut -b 1)
3 Summary: A wysiwyg mathematical text editor
4 Summary(pl): Edytor WYSIWYG do tekstów matematycznych
9 Group: Applications/Editors
10 Source0: ftp://ftp.texmacs.org/pub/TeXmacs/targz/%{name}-%{version}-src.tar.gz
11 Patch0: %{name}-ac_fixes.patch
12 Patch1: %{name}-polish.patch
13 URL: http://www.texmacs.org/
14 BuildRequires: XFree86-devel
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: guile-devel
18 BuildRequires: libstdc++-devel
20 BuildRequires: gcc2-c++
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 # gcc3 produces broken code (argh!!!), so switch to gcc2 if we found it
31 %define rpmcflags -O2 -march=i686
36 GNU TeXmacs is a free what-you-see-is-what-you-get mathematical text
37 editor, which was both inspired by TeX and GNU Emacs. The program
38 implements high quality typesetting using TeX fonts, but it is also
39 provides a user friendly interface.
41 The high typesetting quality still goes through for automatically
42 generated formulas, and it is possible to use TeXmacs as an interface
43 to computer algebra systems. GNU TeXmacs also supports the
44 Guile/Scheme extension language, which makes it possible to adapt the
45 user interface to specific needs and even to extend the editor.
48 GNU TeXmacs jest wolnodostêpnym edytorem typu WYSIWYG do tekstów
49 matematycznych, zainspirowanym przez TeX-a i GNU Emacsa. Ma
50 zaimplementowany wysokiej jako¶ci sk³ad przy u¿yciu fontów TeX-a, ale
51 udostêpnia tak¿e przyjazny interfejs u¿ytkownika.
53 Wysoka jako¶æ sk³adu jest zachowana przy automatycznie generowanych
54 wzorach i jest mo¿liwe u¿ywanie TeXmacsa jako interfejsu do systemów
55 algebry. GNU TeXmacs obs³uguje tak¿e jêzyk rozszerzeñ Guile/Scheme, co
56 umo¿liwia adaptowanie interfejsu u¿ytkownika do specyficznych potrzeb,
57 a tak¿e rozszerzanie edytora.
60 %setup -q -n %{name}-%{version}-src
65 cp -f /usr/share/automake/config.* .
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}