Репозитории 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 |
Группа :: Редакторы
Пакет: TeXmacs
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: TeXmacs
Version: 1.0.7.2
Release: alt2
Summary: A WYSIWYG mathematical text editor
License: GPL
Group: Editors
URL: http://www.texmacs.org
Packager: Ilya Mashkin <oddity 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
Patch5: TeXmacs-1.6.0.7-rdelim.patch
Patch7: TeXmacs-psfix.patch
Requires: guile16 /usr/bin/latex slocate libltdl
BuildRequires: guile16 guile16-devel xorg-x11-devel tetex gcc4.3 gcc4.3-c++ autoconf libltdl-devel
%add_python_req_skip sage
%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
%patch5 -p1
%patch7 -p1
sed -i "s|LDPATH = \ at CONFIG_BPATH\ at |LDPATH =|" src/makefile.in
sed -i "s|5\.14\.\*|5.15.*|" plugins/maxima/bin/tm_maxima
%build
export CC=gcc-4.3 CXX=g++-4.3
%set_automake_version 1.10
#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%_niconsdir
install -d %buildroot%_liconsdir
install -d %buildroot%_menudir
install -D -m644 %SOURCE1 %buildroot%_miconsdir/%name.xpm
install -D -m644 %SOURCE2 %buildroot%_niconsdir/%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
%_niconsdir/%name.xpm
%_miconsdir/%name.xpm
%_liconsdir/%name.xpm
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.0.7.2
Release: alt2
Summary: A WYSIWYG mathematical text editor
License: GPL
Group: Editors
URL: http://www.texmacs.org
Packager: Ilya Mashkin <oddity 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
Patch5: TeXmacs-1.6.0.7-rdelim.patch
Patch7: TeXmacs-psfix.patch
Requires: guile16 /usr/bin/latex slocate libltdl
BuildRequires: guile16 guile16-devel xorg-x11-devel tetex gcc4.3 gcc4.3-c++ autoconf libltdl-devel
%add_python_req_skip sage
%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
%patch5 -p1
%patch7 -p1
sed -i "s|LDPATH = \ at CONFIG_BPATH\ at |LDPATH =|" src/makefile.in
sed -i "s|5\.14\.\*|5.15.*|" plugins/maxima/bin/tm_maxima
%build
export CC=gcc-4.3 CXX=g++-4.3
%set_automake_version 1.10
#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%_niconsdir
install -d %buildroot%_liconsdir
install -d %buildroot%_menudir
install -D -m644 %SOURCE1 %buildroot%_miconsdir/%name.xpm
install -D -m644 %SOURCE2 %buildroot%_niconsdir/%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
%_niconsdir/%name.xpm
%_miconsdir/%name.xpm
%_liconsdir/%name.xpm
%changelog
…
Полный changelog можно просмотреть здесь