]> git.pld-linux.org Git - packages/TeXmacs.git/blob - TeXmacs.spec
- check gcc versiona and accordng to it apply CXX flags , or not
[packages/TeXmacs.git] / TeXmacs.spec
1 Summary:        A wysiwyg mathematical text editor
2 Summary(pl):    Edytor WYSIWYG do tekstów matematycznych
3 Name:           TeXmacs
4 Version:        0.3.5.12
5 Release:        2
6 License:        GPL
7 Group:          Applications/Editors
8 Group(cs):      Aplikace/Editory
9 Group(da):      Programmer/Tekstbehandlere
10 Group(de):      Applikationen/Editoren
11 Group(es):      Aplicaciones/Editores
12 Group(fr):      Applications/Editeurs
13 Group(it):      Applicazioni/Editor
14 Group(ja):      ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó/¥¨¥Ç¥£¥¿
15 Group(no):      Applikasjoner/Editorer
16 Group(pl):      Aplikacje/Edytory
17 Group(pt):      Aplicações/Editores
18 Group(ru):      ðÒÉÌÏÖÅÎÉÑ/òÅÄÁËÔÏÒÙ
19 Group(sv):      Tillämpningar/Editorer
20 Source0:        ftp://ftp.texmacs.org/pub/TeXmacs/targz/%{name}-%{version}-src.tar.gz
21 Patch0:         %{name}-ac_fixes.patch
22 Patch1:         %{name}-polish.patch
23 URL:            http://www.texmacs.org/
24 BuildRequires:  XFree86-devel
25 BuildRequires:  autoconf
26 BuildRequires:  automake
27 BuildRequires:  guile-devel
28 BuildRequires:  libstdc++-devel
29 Requires:       tetex
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %define         _gcc_ver        %(%{__cc} --version | cut -b 1)
33
34 %description
35 GNU TeXmacs is a free what-you-see-is-what-you-get mathematical text
36 editor, which was both inspired by TeX and GNU Emacs. The program
37 implements high quality typesetting using TeX fonts, but it is also
38 provides a user friendly interface.
39
40 The high typesetting quality still goes through for automatically
41 generated formulas, and it is possible to use TeXmacs as an interface
42 to computer algebra systems. GNU TeXmacs also supports the
43 Guile/Scheme extension language, which makes it possible to adapt the
44 user interface to specific needs and even to extend the editor.
45
46 %description -l pl
47 GNU TeXmacs jest wolnodostêpnym edytorem typu WYSIWYG do tekstów
48 matematycznych, zainspirowanym przez TeX-a i GNU Emacsa. Ma
49 zaimplementowany wysokiej jako¶ci sk³ad przy u¿yciu fontów TeX-a, ale
50 udostêpnia tak¿e przyjazny interfejs u¿ytkownika.
51
52 Wysoka jako¶æ sk³adu jest zachowana przy automatycznie generowanych
53 wzorach i jest mo¿liwe u¿ywanie TeXmacsa jako interfejsu do systemów
54 algebry. GNU TeXmacs obs³uguje tak¿e jêzyk rozszerzeñ Guile/Scheme, co
55 umo¿liwia adaptowanie interfejsu u¿ytkownika do specyficznych potrzeb,
56 a tak¿e rozszerzanie edytora.
57
58 %prep
59 %setup -q -n %{name}-%{version}-src
60 %patch0 -p1
61 %patch1 -p1
62
63 %build
64 aclocal
65 autoconf
66 cp -f /usr/share/automake/config.* .
67 %configure
68
69 # adding this CXXFLAGS causes gcc3 SIGSEV, so use it only with gcc2.x
70 %if %{_gcc_ver} == 2
71 %{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"
72 %endif
73 %if %{_gcc_ver} == 3
74 %{__make}
75 %endif
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %files
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_bindir}/*
89 %{_includedir}/*.h
90 %dir %{_libdir}/%{name}-%{version}
91 %dir %{_libdir}/%{name}-%{version}/bin
92 %dir %{_libdir}/%{name}-%{version}/lib
93 %attr(755,root,root) %{_libdir}/%{name}-%{version}/bin/*
94 %attr(755,root,root) %{_libdir}/%{name}-%{version}/lib/*
95 %{_datadir}/%{name}-%{version}
96 %{_mandir}/man?/*
This page took 0.135658 seconds and 4 git commands to generate.