]> git.pld-linux.org Git - packages/TeXmacs.git/blob - TeXmacs.spec
- copy fresh config.* files (to recognize athlon-pld-linux)
[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 cp -f /usr/share/automake/config.* .
65 aclocal
66 autoconf
67 %configure
68
69 %{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 %clean
78 rm -rf $RPM_BUILD_ROOT
79
80 %files
81 %defattr(644,root,root,755)
82 %attr(755,root,root) %{_bindir}/*
83 %{_includedir}/*.h
84 %dir %{_libdir}/%{name}-%{version}
85 %dir %{_libdir}/%{name}-%{version}/bin
86 %dir %{_libdir}/%{name}-%{version}/lib
87 %attr(755,root,root) %{_libdir}/%{name}-%{version}/bin/*
88 %attr(755,root,root) %{_libdir}/%{name}-%{version}/lib/*
89 %{_datadir}/%{name}-%{version}
90 %{_mandir}/man?/*
This page took 0.74228 seconds and 4 git commands to generate.