]> git.pld-linux.org Git - packages/TeXmacs.git/blob - TeXmacs.spec
- finally find problem with source file name
[packages/TeXmacs.git] / TeXmacs.spec
1 Summary:        A wysiwyg mathematical text editor
2 Name:           TeXmacs
3 Version:        0.3.0
4 Release:        7
5 Requires:       tetex
6 License:        GPL
7 Group:          Applications/Editors
8 Group(de):      Applikationen/Editors
9 Group(pl):      Aplikacje/Edytory
10 Group(pt):      Aplicações/Editores
11 Source0:        ftp://ftp.dante.de/tex-archive/systems/unix/TeXmacs/%{name}-%{version}-7-src.tar.gz
12 Vendor:         Jo the ripper software
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %description
16
17 GNU TeXmacs is a free what-you-see-is-what-you-get mathematical text
18 editor, which was both inspired by TeX and GNU Emacs. The program
19 implements high quality typesetting using TeX fonts, but it is also
20 provides a user friendly interface.
21
22 The high typesetting quality still goes through for automatically
23 generated formulas, and it is possible to use TeXmacs as an interface
24 to computer algebra systems. GNU TeXmacs also supports the
25 Guile/Scheme extension language, which makes it possible to adapt the
26 user interface to specific needs and even to extend the editor.
27
28 %prep
29 mkdir -p $RPM_BUILD_ROOT/usr
30 cd $RPM_BUILD_ROOT
31 zcat $RPM_SOURCE_DIR/TeXmacs-0.3.0-5-src.tar.gz | tar -xvf -
32
33 %build
34 cd $RPM_BUILD_ROOT/TeXmacs-0.3.0-5-src
35 ./configure --prefix=$RPM_BUILD_ROOT%{_prefix}
36 %{__make} CXXFLAGS="-O3 -fexpensive-optimizations -malign-loops=2 -malign-jumps=2 -malign-functions=2" STATIC_TEXMACS
37
38 %install
39 rm -rf $RPM_BUILD_ROOT
40 cd $RPM_BUILD_ROOT/TeXmacs-0.3.0-5-src
41 %{__make} install
42 ./configure --prefix=%{_prefix}
43 chmod 755 TeXmacs-0.3.0-5/bin/*
44 cp TeXmacs-0.3.0-5/bin/fig2ps $RPM_BUILD_ROOT%{_bindir}
45 cp TeXmacs-0.3.0-5/bin/texmacs $RPM_BUILD_ROOT%{_bindir}
46 export GUILE_DATA_PATH=`guile-config info pkgdatadir`
47 export GUILE_LOAD_PATH=`find $GUILE_DATA_PATH -type d | grep ice-9`
48 cp -r -f $GUILE_LOAD_PATH $RPM_BUILD_ROOT%{_datadir}/TeXmacs-0.3.0-5/progs
49 chmod 755 $RPM_BUILD_ROOT%{_datadir}/TeXmacs-0.3.0-5/progs/ice-9
50 rm -f $RPM_BUILD_ROOT%{_datadir}/TeXmacs-0.3.0-5/lib/*.so
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %attr(755,root,root) %{_bindir}/texmacs
58 %attr(755,root,root) %{_bindir}/fig2ps
59 %{_includedir}/TeXmacs.h
60 %{_mandir}/man1/texmacs.1*
61 %{_datadir}/TeXmacs-0.3.0-5
This page took 0.054807 seconds and 3 git commands to generate.