2 # - tex deps (tetex-tex-babel seems to be required, but I'm not sure)
5 %bcond_without system_boost # build with included boost-1.36
7 Summary: A WYSIWYM frontend to LaTeX
8 Summary(pl.UTF-8): Nakładka WYSIWYM na LaTeXa
9 Summary(pt_BR.UTF-8): Editor de Textos para ambiente Desktop
15 Group: Applications/Publishing/TeX
16 Source0: http://ftp.lyx.org/pub/lyx/stable/2.0.x/%{name}-%{version}.tar.xz
17 # Source0-md5: 10b94117d95e33e0628204b56185ed2d
18 Source1: %{name}.desktop
20 URL: http://www.lyx.org/
21 BuildRequires: QtGui-devel
22 BuildRequires: aiksaurus-devel
23 BuildRequires: aspell-devel
24 BuildRequires: autoconf >= 2.59-9
25 BuildRequires: automake
26 %{?with_system_boost:BuildRequires: boost-devel >= 1.35.0}
27 BuildRequires: gettext-devel
28 BuildRequires: libstdc++-devel
29 BuildRequires: pkgconfig
30 BuildRequires: qt4-build
31 BuildRequires: rpm-pythonprov
32 BuildRequires: sed >= 4.0
33 BuildRequires: xorg-lib-libX11-devel
34 Requires(post,postun): tetex
36 Requires: python-modules
37 Requires: tetex-format-latex
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define texmfdir %{_datadir}/texmf
45 LyX is a modern approach of writing documents with a computer which
46 breaks with the tradition of the obsolete typewriter concept. It is
47 designed for people who want a professional output with a minimum of
48 time effort, without becoming specialists in typesetting. Compared to
49 common word processors LyX will increase the productivity a lot, since
50 most of the typesetting will be done by the computer, not the author.
51 With LyX the author can concentrate on the contents of his writing,
52 since the computer will take care of the look.
54 %description -l pl.UTF-8
55 LyX jest nowoczesnym narzędziem służącym do pisania dokumentów
56 łamiącym dotychczasową, przestarzałą tradycję maszyny do pisania. LyX
57 został zaprojektowany dla ludzi, którzy chcą tworzyć profesjonalne
58 dokumenty przy jak najmniejszym nakładzie czasowym bez konieczności
59 bycia specjalistą w składzie tekstów. LyX pozwala autorowi skupić się
60 na zawartości dokumentu podczas gdy komputer zajmie się całą resztą.
62 %description -l pt_BR.UTF-8
63 Lyx é uma forma moderna de escrever documentos com um computador sem
64 que isso quebre os conceitos de uso de uma máquina de escrever
65 tradicional. Ele é feito para pessoas que necessitam de um resultado
66 profissional com um mínimo de esforço, sem também ser um especialista
67 em fontes. Comparado com um editor de textos padrão, LyX é um editor
68 de textos que irá aumentar a produtividade visto que as fontes serão
69 selecionadas pelo editor, não pelo digitador.
75 cat config/*.m4 > acinclude.m4
81 %{?debug:--enable-debug} \
83 %{?with_system_boost:--without-included-boost} \
84 --without-included-gettext \
85 --with-qt4-dir=%{_libdir}/qt4 \
91 rm -rf $RPM_BUILD_ROOT
92 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}} \
93 $RPM_BUILD_ROOT%{texmfdir}/tex/latex
96 DESTDIR=$RPM_BUILD_ROOT
98 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
99 install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
101 ln -sf %{_datadir}/lyx/tex $RPM_BUILD_ROOT%{texmfdir}/tex/latex/lyx
103 %{__sed} -i -e 's,#! /usr/bin/env python,#!/usr/bin/python,' $RPM_BUILD_ROOT%{_datadir}/lyx/configure.py
108 rm -rf $RPM_BUILD_ROOT
114 ./configure.py > /dev/null || :
115 if [ -f lyxrc.defaults ]; then
116 cp -p lyxrc.defaults lyxrc
120 if [ "$1" = "0" ]; then
121 %{__rm} -f %{_datadir}/lyx/{lyxrc.defaults,lyxrc*}
122 %{__rm} -f %{_datadir}/lyx/{doc/LaTeXConfig.lyx,packages.lst}
129 %files -f %{name}.lang
130 %defattr(644,root,root,755)
131 %doc ANNOUNCE README NEWS
132 %attr(755,root,root) %{_bindir}/*
133 %dir %{texmfdir}/tex/latex/lyx
135 %dir %{_datadir}/lyx/commands
136 %{_datadir}/lyx/CREDITS
138 %{_datadir}/lyx/chkconfig.ltx
139 %{_datadir}/lyx/commands/default.def
140 %{_datadir}/lyx/doc/clipart
141 %attr(755,root,root) %{_datadir}/lyx/configure*
142 %dir %{_datadir}/lyx/doc
143 %{_datadir}/lyx/doc/[A-Z]*
144 %{_datadir}/lyx/doc/biblio
145 %lang(ca) %{_datadir}/lyx/doc/ca
146 %lang(cs) %{_datadir}/lyx/doc/cs
147 %lang(da) %{_datadir}/lyx/doc/da
148 %lang(de) %{_datadir}/lyx/doc/de
149 %lang(el) %{_datadir}/lyx/doc/el
150 %lang(es) %{_datadir}/lyx/doc/es
151 %lang(eu) %{_datadir}/lyx/doc/eu
152 %lang(fr) %{_datadir}/lyx/doc/fr
153 %lang(gl) %{_datadir}/lyx/doc/gl
154 %lang(he) %{_datadir}/lyx/doc/he
155 %lang(hu) %{_datadir}/lyx/doc/hu
156 %lang(id) %{_datadir}/lyx/doc/id
157 %lang(it) %{_datadir}/lyx/doc/it
158 %lang(ja) %{_datadir}/lyx/doc/ja
159 %lang(nb) %{_datadir}/lyx/doc/nb
160 %lang(nl) %{_datadir}/lyx/doc/nl
161 %lang(pl) %{_datadir}/lyx/doc/pl
162 %lang(pt) %{_datadir}/lyx/doc/pt
163 %lang(ro) %{_datadir}/lyx/doc/ro
164 %lang(ru) %{_datadir}/lyx/doc/ru
165 %lang(sk) %{_datadir}/lyx/doc/sk
166 %lang(sl) %{_datadir}/lyx/doc/sl
167 %lang(sv) %{_datadir}/lyx/doc/sv
168 %lang(uk) %{_datadir}/lyx/doc/uk
169 %lang(zh_CN) %{_datadir}/lyx/doc/zh_CN
170 %{_datadir}/lyx/autocorrect
171 %{_datadir}/lyx/encodings
172 %{_datadir}/lyx/examples
173 %{_datadir}/lyx/external_templates
174 %{_datadir}/lyx/fonts/
175 %{_datadir}/lyx/images
177 %{_datadir}/lyx/languages
178 %{_datadir}/lyx/layouts
179 %{_datadir}/lyx/layouttranslations
180 %attr(755,root,root) %{_datadir}/lyx/lyx2lyx
181 %attr(755,root,root) %{_datadir}/lyx/scripts
182 %{_datadir}/lyx/symbols
183 %{_datadir}/lyx/syntax.default
184 %{_datadir}/lyx/templates
187 %{_datadir}/lyx/unicodesymbols
189 %{_desktopdir}/*.desktop