]> git.pld-linux.org Git - packages/TeXmacs.git/blob - TeXmacs.spec
- removed all Group fields translations (oure rpm now can handle translating
[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 Source0:        ftp://ftp.texmacs.org/pub/TeXmacs/targz/%{name}-%{version}-src.tar.gz
12 Patch0:         %{name}-ac_fixes.patch
13 Patch1:         %{name}-polish.patch
14 URL:            http://www.texmacs.org/
15 BuildRequires:  XFree86-devel
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  guile-devel
19 BuildRequires:  libstdc++-devel
20 %if %{_gcc_ver} == 3
21 BuildRequires:  gcc2-c++
22 %endif
23 Requires:       tetex
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26
27 %description
28 GNU TeXmacs is a free what-you-see-is-what-you-get mathematical text
29 editor, which was both inspired by TeX and GNU Emacs. The program
30 implements high quality typesetting using TeX fonts, but it is also
31 provides a user friendly interface.
32
33 The high typesetting quality still goes through for automatically
34 generated formulas, and it is possible to use TeXmacs as an interface
35 to computer algebra systems. GNU TeXmacs also supports the
36 Guile/Scheme extension language, which makes it possible to adapt the
37 user interface to specific needs and even to extend the editor.
38
39 %description -l pl
40 GNU TeXmacs jest wolnodostêpnym edytorem typu WYSIWYG do tekstów
41 matematycznych, zainspirowanym przez TeX-a i GNU Emacsa. Ma
42 zaimplementowany wysokiej jako¶ci sk³ad przy u¿yciu fontów TeX-a, ale
43 udostêpnia tak¿e przyjazny interfejs u¿ytkownika.
44
45 Wysoka jako¶æ sk³adu jest zachowana przy automatycznie generowanych
46 wzorach i jest mo¿liwe u¿ywanie TeXmacsa jako interfejsu do systemów
47 algebry. GNU TeXmacs obs³uguje tak¿e jêzyk rozszerzeñ Guile/Scheme, co
48 umo¿liwia adaptowanie interfejsu u¿ytkownika do specyficznych potrzeb,
49 a tak¿e rozszerzanie edytora.
50
51 %prep
52 %setup -q -n %{name}-%{version}-src
53 %patch0 -p1
54 %patch1 -p1
55
56 %build
57 aclocal
58 autoconf
59 cp -f /usr/share/automake/config.* .
60 # gcc3 produces broken code (argh!!!), so switch to gcc3 if we found it
61 %if %{_gcc_ver} == 3
62 %define         __cc            gcc2
63 %define         __cxx           g++2
64 %ifarch athlon
65 %define         rpmcflags       -O2 -march=i686
66 %endif
67 %endif
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.032776 seconds and 3 git commands to generate.