]> git.pld-linux.org Git - packages/TeXmacs.git/blob - TeXmacs.spec
- updated to 0.3.5.14
[packages/TeXmacs.git] / TeXmacs.spec
1 %define         _gcc_ver        %(%{__cc} --version | cut -b 1)
2
3 Summary:        A wysiwyg mathematical text editor
4 Summary(pl):    Edytor WYSIWYG do tekstów matematycznych
5 Name:           TeXmacs
6 Version:        0.3.5.14
7 Release:        1
8 License:        GPL
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
19 %if %{_gcc_ver} == 3
20 BuildRequires:  gcc2-c++
21 %endif
22 Requires:       tetex
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 # gcc3 produces broken code (argh!!!), so switch to gcc2 if we found it
26 %if %{_gcc_ver} == 3
27 %define         __cc            gcc2
28 %define         __cxx           g++2
29 %ifarch athlon
30 %define         rpmcflags       -O2 -march=i686
31 %endif
32 %endif
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 %configure
67
68 %{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72
73 %{__make} install \
74         DESTDIR=$RPM_BUILD_ROOT
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %files
80 %defattr(644,root,root,755)
81 %attr(755,root,root) %{_bindir}/*
82 %{_includedir}/*.h
83 %dir %{_libdir}/%{name}-%{version}
84 %dir %{_libdir}/%{name}-%{version}/bin
85 %dir %{_libdir}/%{name}-%{version}/lib
86 %attr(755,root,root) %{_libdir}/%{name}-%{version}/bin/*
87 %attr(755,root,root) %{_libdir}/%{name}-%{version}/lib/*
88 %{_datadir}/%{name}-%{version}
89 %{_mandir}/man?/*
This page took 0.042879 seconds and 4 git commands to generate.