]> git.pld-linux.org Git - packages/TeXmacs.git/blob - TeXmacs.spec
perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
[packages/TeXmacs.git] / TeXmacs.spec
1 %define         _gcc_ver        %(%{__cc} -dumpversion | 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:        1.0
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 Requires:       guile-devel
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 # gcc3 produces broken code (argh!!!), so switch to gcc2 if we found it
27 %if %{_gcc_ver} == 3
28 %define         __cc            gcc2
29 %define         __cxx           g++2
30 %ifarch athlon
31 %define         rpmcflags       -O2 -march=i686
32 %endif
33 %endif
34
35 %description
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.
40
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.
46
47 %description -l pl
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.
52
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.
58
59 %prep
60 %setup -q -n %{name}-%{version}-src
61 %patch0 -p1
62 %patch1 -p1
63
64 %build
65 cp -f /usr/share/automake/config.* .
66 aclocal
67 %{__autoconf}
68 %configure
69
70 %{__make} CXXFLAGS="%{rpmcflags} -fno-exceptions -fno-rtti -fno-implicit-templates"
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} install \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_bindir}/*
84 %{_includedir}/*.h
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}
91 %{_mandir}/man?/*
This page took 0.066321 seconds and 3 git commands to generate.