Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37849932
en ru br
ALT Linux repos
5.0: 1.0.7-alt1
4.1: 1.0.6.11-alt1
4.0: 1.0.6.11-alt1
3.0: 1.0.5-alt1

Group :: Editors
RPM: TeXmacs

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: TeXmacs
Version: 1.0.5
Release: alt1

Summary: A WYSIWYG mathematical text editor
Summary (ru_RU.UTF-8): WYSIWYG математический текстовый редактор
License: GPL
Group: Editors
URL: http://www.texmacs.org
Packager: Vadim V. Zhytnikov <vvzhy at altlinux.ru>

Source: ftp://ftp.texmacs.org/pub/TeXmacs/targz/TeXmacs-%version-src.tar.gz
Source1: TeXmacs-16.xpm
Source2: TeXmacs-36.xpm
Source3: TeXmacs-48.xpm

Patch1: TeXmacs-1.0.4-locate-maxima.patch
Patch2: TeXmacs-1.0.5-maxima-versions.patch
Patch3: TeXmacs-1.0.4-axiom.patch
Patch4: TeXmacs-1.0.4-russian-latex.patch

Requires: guile16 tetex-latex slocate

BuildRequires: guile16 guile16-devel XFree86-devel tetex gcc-c++ autoconf_2.5

%description
GNU TeXmacs is a free scientific text editor, which was both inspired
by TeX and GNU Emacs. The editor allows you to write structured documents
via a WYSIWYG (what-you-see-is-what-you-get) and user friendly interface.
New styles may be created by the user. The program implements high-quality
typesetting algorithms and TeX fonts, which help you to produce
professionally looking documents.

The high typesetting quality still goes through for automatically
generated formulas, which makes TeXmacs suitable as an interface
for computer algebra systems. TeXmacs also supports the Guile/Scheme
extension language, so that you may customize the interface and
write your own extensions to the editor.

In the future, TeXmacs is planned to evoluate towards
a complete scientific office suite, with spreadsheet capacities,
a technical drawing editor and a presentation mode.

%description -l ru_RU.UTF-8
GNU TeXmacs - это свободный научный текстовый редактор, основанный
на идеях TeX и GNU Emacs. Редактор позволяет создавать структурированные
документы и имеет дружественный WYSIWYG (what-you-see-is-what-you-get)
интерфейс. Высокое качество документов достигается использованием
алгоритмов и шрифтов TeX. TeXmacs может служить интерфейсом для систем
аналитических вычислений.


%prep
%setup -q -nTeXmacs-%version-src

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build

%set_autoconf_version 2.5
autoconf

CC="gcc"`echo "%optflags" | %__sed -e "s:%optflags_default::"`
export CC
CXX="g++"`echo "%optflags" | %__sed -e "s:%optflags_default::"`
export CXX
./configure --prefix=%prefix --libexecdir=%_libexecdir --mandir=%_mandir \
    --build=%_target_platform --host=%_target_platform --target=%_target_platform

make

%install
%define _findreq_default_method lib

make DESTDIR=%buildroot install
export GUILE_DATA_PATH=`guile-config info pkgdatadir`
export GUILE_LOAD_PATH=`find $GUILE_DATA_PATH -type d | grep ice-9 | grep 6`
cp -r -f $GUILE_LOAD_PATH %buildroot%_datadir/TeXmacs/progs
chmod -f 644 %buildroot%_datadir/TeXmacs/progs/ice-9/*
chmod -f 755 %buildroot%_datadir/TeXmacs/progs/ice-9
mkdir -p %buildroot/etc/X11/applnk/Applications
mkdir -p %buildroot/usr/share/application-registry
mkdir -p %buildroot/usr/share/mime-info
mkdir -p %buildroot/usr/share/pixmaps
cp -f %buildroot%_datadir/TeXmacs/misc/mime/texmacs.desktop %buildroot/etc/X11/applnk/Applications
cp -f %buildroot%_datadir/TeXmacs/misc/mime/texmacs.applications %buildroot/usr/share/application-registry
cp %buildroot%_datadir/TeXmacs/misc/mime/texmacs.keys %buildroot/usr/share/mime-info
cp %buildroot%_datadir/TeXmacs/misc/mime/texmacs.mime %buildroot/usr/share/mime-info
cp %buildroot%_datadir/TeXmacs/misc/pixmaps/TeXmacs.xpm %buildroot/usr/share/pixmaps

install -d %buildroot%_miconsdir
install -d %buildroot%_iconsdir
install -d %buildroot%_liconsdir

install -d %buildroot%_menudir

install -D -m644 %SOURCE1 %buildroot%_miconsdir/%name.xpm
install -D -m644 %SOURCE2 %buildroot%_iconsdir/%name.xpm
install -D -m644 %SOURCE3 %buildroot%_liconsdir/%name.xpm

# menu entry

mkdir -p %buildroot%_menudir
cat >%buildroot%_menudir/%name <<EOF
?package(%name): command="%_bindir/texmacs" section="Applications/Editors" \
icon="TeXmacs.xpm" needs="x11" title="TeXmacs" \
longtitle="A WYSIWYG mathematical text editor"
EOF

%files
%_bindir/texmacs
%_bindir/fig2ps
%_includedir/TeXmacs.h
%_mandir/man1/texmacs.1*
%_mandir/man1/fig2ps.1*
%_datadir/TeXmacs
%_libexecdir/TeXmacs
/etc/X11/applnk/Applications/texmacs.desktop
/usr/share/application-registry/texmacs.applications
/usr/share/mime-info/texmacs.keys
/usr/share/mime-info/texmacs.mime
/usr/share/pixmaps/TeXmacs.xpm
%_menudir/%name
%_iconsdir/%name.xpm
%_miconsdir/%name.xpm
%_liconsdir/%name.xpm


%post
%update_menus

%postun
%clean_menus

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin