Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37753034
en ru br
Репозитории ALT
5.1: 1.0.7.2-alt2
4.1: 1.0.6.11-alt1
4.0: 1.0.6.11-alt1
3.0: 1.0.5-alt1
www.altlinux.org/Changes

Группа :: Редакторы
Пакет: TeXmacs

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: TeXmacs
Version: 1.0.6.11
Release: alt1

Summary: A WYSIWYG mathematical text editor
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
Source4: TeXmacs.desktop

Patch1: TeXmacs-1.0.6.11-maxima.patch
Patch2: TeXmacs-1.0.4-axiom.patch

Requires: guile16 tetex-latex slocate libltdl

BuildRequires: guile16 guile16-devel XFree86-devel tetex gcc3.4 gcc3.4-c++ autoconf_2.5 libltdl-devel

%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.


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

%patch1 -p1
%patch2 -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

install -D -m644 %SOURCE4 %buildroot%_desktopdir/%name.desktop
#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
%exclude /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
%_desktopdir/%name.desktop
%_iconsdir/%name.xpm
%_miconsdir/%name.xpm
%_liconsdir/%name.xpm


%post
%update_menus

%postun
%clean_menus

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin