ALT Linux repositórios
Group :: Edição
RPM: lyx
Main Changelog Spec Patches Sources Download Gear Bugs e 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
…
Todas as alterações você pod ver aqui
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
…
Todas as alterações você pod ver aqui