Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37749728
en ru br
Репозитории ALT
S:2.3.7-alt1.2
5.1: 1.6.4.1-alt1
4.1: 1.5.5-alt0.M41.1
4.0: 1.5.2-alt0.M40.1
3.0: 1.3.5-alt1
www.altlinux.org/Changes

Группа :: Издательство
Пакет: lyx

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

Name: lyx
Version: 1.3.5
Release: alt1

Summary: LyX - a WISYWIM word processor for the Desktop Environment
Summary(ru_RU.KOI8-R): LyX -- текстовый процессор, работающий с LaTeX и XML

License: GPL
Group: Publishing
URL: http://www.lyx.org/

Packager: Vitaly Lipatov <lav at altlinux.ru>

Source: %name-%version.tar.bz2

Source1: lyx16.xpm
Source2: lyx32.xpm
Source3: lyx48.xpm

#Source4: %name-%version.ru.po

Source5: %name-%version.rudoc.tar.bz2
Source6: lyxcat

Patch0: %name-%version-alt.patch

BuildPreReq: python-base, libxforms-devel >= 1.0, gcc-c++ >= 3.4

# manually removed: abiword acroread boson mozilla octave hostinfo tetex-core tetex-dvips tetex-latex tetex-xdvi wv-tetex grace latex2html latex2rtf qt3-designer lyx-common kde-settings kdebase-kdeprint gv tgif transfig wv-tetex sgml-tools sgmltools-lite libqwt-devel

# Automatically added by buildreq on Fri Jan 21 2005
# sgml-tools sgmltools-lite
BuildRequires: ImageMagick bzlib-devel fontconfig freetype2 gcc-c++ ghostscript-classic ghostscript-utils grace groff-base gv libaiksaurus-devel libaspell-devel libjpeg-devel libqscintilla-designer libqt3-devel libqt3-settings libstdc++-devel libtiff-utils libxforms-devel qt3-designer  xorg-x11-devel xorg-x11-libs xorg-x11-mesaGL xorg-x11-utils

Requires: %name-qt = %version-%release
Requires: %name-xforms = %version-%release
Requires: latex2rtf latex2html wv tetex-core tetex-latex tetex-dvips tetex-xdvi gv ghostscript
# Needed for instant preview of formulae
Requires: tetex-latex-preview
# For lyx2lyx
Requires: python-base

%description
LyX is a modern approach to writing documents which breaks with the
obsolete "typewriter paradigm" of most other document preparation
systems.

It is designed for people who want professional quality output
with a minimum of time and effort, without becoming specialists in
typesetting.

The major innovation in LyX is WYSIWYM (What You See Is What You Mean).
That is, the author focuses on content, not on the details of formatting.
This allows for greater productivity, and leaves the final typesetting
to the backends (like LaTeX) that are specifically designed for the task.

With LyX, the author can concentrate on the contents of his writing,
and let the computer take care of the rest.

%description -l ru_RU.KOI8-R
LyX -- это современных подход к написанию документов,
разрывающий с устаревшей парадигмой использования компьютеров как
пишуших машинок, применяемой в большинстве других систем подготовки
документов.

Он разработан для тех, кто хочет получить профессиональное качество
документа при печати, не тратя при этом много времени и усилий,
и не становясь специалистом по полиграфическому оформлению.

Основное новшество в LyX -- это WYSIWYM (What You See Is What You Mean --
Вы видите то, что вы имели в виду), которое означает, что автор
сосредотачивается над своей работой, а не над деталями оформления
документа. Это позволяет продуктивно работать, оставляя
заключительное оформление специальному движку (такому как LaTeX),
который специально разработан для подобных задач.

С LyX автор может сконцентрироваться на содержании своей работы
и позволить компьютеру взять большинство забот об оформлении на себя.

Пакет lyx устанавливает все необходимые пакеты. Если вам не нужен
tetex, устанавливайте lyx-qt или lyx-xforms отдельно.

%package common
Summary: LyX - a word processor for the Desktop Environment
Summary(ru_RU.KOI8-R): LyX -- текстовый процессор, работающий с LaTeX и XML
Group: Publishing
AutoReq: yes, noperl
Requires: ImageMagick groff-base transfig bc
#%%define _perl_lib_path %_datadir/%name/lib/reLyX
#%%add_findprov_lib_path %_datadir/%name/lib/reLyX
#%%add_findprov_lib_path %_datadir/%name/lib/lyx2lyx
#%%add_findprov_lib_path %_datadir/%name/lib/scripts


%description common
LyX is a modern approach to writing documents which breaks with the
obsolete "typewriter paradigm" of most other document preparation
systems.

It is designed for people who want professional quality output
with a minimum of time and effort, without becoming specialists in
typesetting.

The major innovation in LyX is WYSIWYM (What You See Is What You Mean).
That is, the author focuses on content, not on the details of formatting.
This allows for greater productivity, and leaves the final typesetting
to the backends (like LaTeX) that are specifically designed for the task.

With LyX, the author can concentrate on the contents of his writing,
and let the computer take care of the rest.


%description common -l ru_RU.KOI8-R
LyX -- это современных подход к написанию документов,
разрывающий с устаревшей парадигмой использования компьютеров в качестве
пишуших машинок, использованной в большинстве других систем подготовки
документов.

Он разработан для тех, кто хочет получить профессиональное качество
документа при печати, не тратя при этом много времени и усилий, и не становясь
специалистом по полиграфическому оформлению.

Основное новшество в LyX -- это WYSIWYM (What You See Is What You Mean --
Вы видите то, что вы имели в виду), которое означает, что автор
сосредотачивается над своей работой, а не над деталями оформления
документа. Это позволяет продуктивно работать, оставляя
заключительное оформление специальному движку (такому как LaTeX),
который специально разработан для подобных задач.

С LyX автор может сконцентрироваться на содержании своей работы
и позволить компьютеру взять большинство забот об оформлении на себя.


%package xforms
Summary: LyX - a word processor for the Desktop Environment
Summary(ru_RU.KOI8-R): LyX -- текстовый процессор, работающий с LaTeX и XML
Group: Publishing
Requires: %name-common = %version-%release
Requires: libxforms >= 1.0

%description xforms
LyX with XForms interface. See the description in lyx-common package for
details.

%package qt
Summary: LyX - a word processor for the Desktop Environment
Summary(ru_RU.KOI8-R): LyX -- текстовый процессор, работающий с LaTeX и XML
Group: Publishing
Requires: %name-common = %version-%release
Requires: latex-xft-fonts

%description qt
LyX with QT interface. See the description in lyx-common package for
details.

%prep
%setup -q
%patch0 -p0
#cp -f %{SOURCE4} po/ru.po
tar xvfj %{SOURCE5}
chmod a+x lib/scripts/*

%build

# This will break if we link with a C++ library which uses STL containers or

# std::string as parameters or return values.  Currently LyX does not use such
# libraries; when the GTK-- interface will be ready, this will need to be
# changed.

%add_optflags -fno-exceptions -Wno-sign-compare -D_NOTHREADS

# template for dynamic replace using encoding

cp lib/languages lib/languages.template

########### XForms interface ################

%configure --without-warnings --with-frontend=xforms --without-included-boost
%make_build
mv src/lyx src/lyx-xforms

#make clean


########### Qt interface ####################

%configure --without-warnings --with-frontend=qt --with-qt-dir=%_libdir/qt3 --without-included-boost

# From samba spec

# Export CC=gcc if it CC is unset. This allows us to reuse ccache in BTE
[ -n "$CC" ] || export CC=gcc

# Use ccache to optimise rebuilds

%if_enabled ccache
export GCC_USE_CCACHE=1
export CCACHE_DIR=%__ccache_dir
%endif

%make_build

########### GTK interface ####################

#%configure --without-warnings --with-frontend=gtk --without-included-boost
#%make_build
#mv src/lyx src/lyx-gtk

# update TOC files

#cd lib/doc
#make
#cd -

%install
%makeinstall

install src/%name-xforms %buildroot/%_bindir
(cd %buildroot/%_bindir; mv %name %name-qt; ln -s %name-qt %name)
install lib/languages.template $RPM_BUILD_ROOT/%_datadir/%name/languages.template

mkdir -p $RPM_BUILD_ROOT/%_menudir
cat >$RPM_BUILD_ROOT%_menudir/%name-xforms <<EOF
?package(lyx-xforms): command="%_bindir/%name-xforms" needs="X11" \\
icon="lyx.xpm" \\
section="Applications/Publishing" \\
title="LyX (XForms interface)" \\
genericname="Text Processing" \\
longtitle="LyX text processor - especially \
good at scientific documents"
EOF

cat >$RPM_BUILD_ROOT%_menudir/%name-qt <<EOF
?package(lyx-qt): command="%_bindir/%name-qt" needs="X11" \\
icon="lyx.xpm" \\
section="Applications/Publishing" \\
title="LyX (Qt interface)" \\
genericname="Text Processing" \\
longtitle="LyX text processor - especially \
good at scientific documents"
EOF

#mdk icons

install -D -m644 %SOURCE1 $RPM_BUILD_ROOT%_miconsdir/lyx.xpm
install -D -m644 %SOURCE2 $RPM_BUILD_ROOT%_iconsdir/lyx.xpm
install -D -m644 %SOURCE3 $RPM_BUILD_ROOT%_liconsdir/lyx.xpm

for i in BUGS README CHANGES TODO MANIFEST; do
 cp -a lib/reLyX/$i $i.reLyX
done

%__install -m755 %SOURCE6 $RPM_BUILD_ROOT/%_bindir

#

# Set up the lyx-specific class files where TeX can see then
#
TEXMF=%_datadir/texmf
mkdir -p $RPM_BUILD_ROOT/$TEXMF/tex/latex
cp -ar $RPM_BUILD_ROOT/%_datadir/%name/tex $RPM_BUILD_ROOT/$TEXMF/tex/latex/%name


%find_lang %name

%post
%update_menus

# Fix the TeX file hash

if [ $1 = 1 ] ; then
   [ -x /usr/bin/texhash ] && /usr/bin/texhash 2>/dev/null ||:
fi

# Now configure LyX

echo "Configuring LyX for your system..."
cd %_datadir/lyx
./configure --srcdir

%postun
%clean_menus
if [ $1 = 0 ] ; then
   [ -x /usr/bin/texhash ] && /usr/bin/texhash 2>/dev/null ||:
fi


%files -f %name.lang -n %name-common
%doc INSTALL README ANNOUNCE NEWS INSTALL.autoconf
%doc UPGRADING
%doc BUGS.reLyX README.reLyX CHANGES.reLyX TODO.reLyX MANIFEST.reLyX
%_bindir/noweb2lyx
%_bindir/lyxcat
%_bindir/reLyX
%_man1dir/*
%_datadir/%name
%_iconsdir/%name.xpm
%_liconsdir/%name.xpm
%_miconsdir/%name.xpm
%_datadir/texmf/tex/latex/lyx

%files -n %name-xforms
%_bindir/%name-xforms
%_menudir/%name-xforms

%files -n %name-qt
%_bindir/%name-qt
%_menudir/%name-qt

%files -n %name
%_bindir/%name

%changelog

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

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