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