Sisyphus repositório
Última atualização: 17 setembro 2019 | SRPMs: 17435 | Visitas: 15112050
en ru br
ALT Linux repositórios
S:2.3.3-alt1
5.0: 1.5.5-alt1
4.1: 1.5.5-alt0.M41.1
4.0: 1.5.2-alt0.M40.1
3.0: 1.3.5-alt1

Group :: Edição
RPM: lyx

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: lyx
Version: 2.3.3
Release: alt1

Summary: LyX - a WYSIWYM word processor for the Desktop Environment.
License: GPL
Group: Publishing
Epoch: 2
Url: http://www.lyx.org

Source: %name-%version.tar
Source1: %name.desktop
Source2: %{name}16.xpm
Source3: %{name}32.xpm
Source4: %{name}48.xpm
Source5: lyxcat

Patch2: lyx-2.1.2-xdg_open.patch

BuildRequires: desktop-file-utils
BuildRequires: gcc-c++ imake libaspell-devel libSM-devel python-devel bc
BuildRequires: libaiksaurus-devel boost-signals-devel boost-devel boost-filesystem-devel
BuildRequires: qt5-base-devel qt5-x11extras-devel qt5-svg-devel
BuildRequires: zlib-devel libenchant-devel libhunspell-devel libmythes-devel

Requires: python >= 2.4

Provides: lyx-common lyx-qt lyx-latex-beamer
Obsoletes: lyx-common lyx-qt lyx-latex-beamer

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

%package -n lyx-tex
Summary: Virtual package that install required set of tex packages for LyX.
Group: Publishing
Requires: lyx
Requires: texlive-latex-recommended texlive-extra texlive-lang-cyrillic texlive-fonts-recommended fonts-ttf-latex-xft
BuildArch: noarch

%description -n lyx-tex
Virtual package that install required set of tex packages for LyX.

%prep
%setup
find 3rdparty -not -type d -not -name Makefile.in -delete
%patch2 -p1

%build
%autoreconf
%configure \
--without-included-boost \
--with-enchant \
--with-hunspell \
--enable-qt5 \
#

%make_build

%install
%makeinstall_std
%find_lang %name

install -d -m 755 %buildroot%_desktopdir
install -m 644 %SOURCE1 %buildroot%_desktopdir/
install -d -m 755 %buildroot%_miconsdir
install -d -m 755 %buildroot%_niconsdir
install -d -m 755 %buildroot%_liconsdir
install -m 644 %SOURCE2 %buildroot%_miconsdir/%name.xpm
install -m 644 %SOURCE3 %buildroot%_niconsdir/%name.xpm
install -m 644 %SOURCE4 %buildroot%_liconsdir/%name.xpm
install -m 755 %SOURCE5 %buildroot%_bindir/

#

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

desktop-file-install --dir %buildroot%_desktopdir \
--remove-category=Office:WordProcessor:KDE:Qt \
--add-category=Office \
--add-category=WordProcessor \
--add-category=KDE \
--add-category=Qt \
%buildroot%_desktopdir/lyx.desktop

rm %buildroot%_datadir/icons/hicolor/scalable/apps/lyx.svg
rm %buildroot%_datadir/%name/scripts/prefTest.pl.in

%define _unpackaged_files_terminate_build 1

%post
# configure Lyx in new way
cd %_datadir/%name
python configure.py

%files -f %name.lang
%doc ANNOUNCE COPYING INSTALL* README* NEWS UPGRADING RELEASE-NOTES
%_bindir/*
%_man1dir/*
%_datadir/%name
%_datadir/texmf/tex/latex/lyx
%_miconsdir/*
%_niconsdir/*
%_liconsdir/*
%_desktopdir/*.desktop

%files -n lyx-tex

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009