1 %define frontend @RPM_FRONTEND@
2 %define frontdep @RPM_FRONTEND_DEPS@
4 Summary: A WYSIWYM (What You See Is What You Mean) frontend to LaTeX
8 Copyright: see COPYING file
9 Group: Applications/Publishing
10 URL: http://www.lyx.org/
11 Packager: Kayvan A. Sylvan <kayvan@sylvan.com>
12 Source: ftp://ftp.lyx.org/pub/lyx/stable/%{name}-%{version}.tar.gz
13 BuildRoot: %{_tmppath}/%{name}-%{version}-root
16 Requires: %{frontdep}, tetex-xdvi, tetex, tetex-latex
20 LyX is a modern approach to writing documents which breaks with the
21 obsolete "typewriter paradigm" of most other document preparation
24 It is designed for people who want professional quality output
25 with a minimum of time and effort, without becoming specialists in
28 The major innovation in LyX is WYSIWYM (What You See Is What You Mean).
29 That is, the author focuses on content, not on the details of formatting.
30 This allows for greater productivity, and leaves the final typesetting
31 to the backends (like LaTeX) that are specifically designed for the task.
33 With LyX, the author can concentrate on the contents of his writing,
34 and let the computer take care of the rest.
36 This is LyX built with the %{frontend} frontend.
43 ./configure --with-frontend=%{frontend} --prefix=%{_prefix} \
44 --mandir=%{_mandir} --bindir=%{_bindir} --datadir=%{_datadir} \
45 --without-warnings --disable-debug --enable-optimization=-O2
50 rm -rf ${RPM_BUILD_ROOT}
51 install -d -m 755 ${RPM_BUILD_ROOT}
52 make DESTDIR=${RPM_BUILD_ROOT} install
53 gzip -f9 ${RPM_BUILD_ROOT}%{_mandir}/man?/*
56 # Set up the lyx-specific class files where TeX can see them
58 TEXMF=%{_datadir}/texmf
59 mkdir -p ${RPM_BUILD_ROOT}${TEXMF}/tex/latex
60 mv ${RPM_BUILD_ROOT}%{_datadir}/%{name}/tex \
61 ${RPM_BUILD_ROOT}/${TEXMF}/tex/latex/%{name}
66 cp -a lib/images/%{name}.xpm ${RPM_BUILD_ROOT}%{_datadir}/%{name}/images/
67 cp lib/reLyX/README README.reLyX
70 rm -rf ${RPM_BUILD_ROOT}
73 # Make TeX understand where LyX-specific packages are
76 # Before configuring lyx for the local system
77 # PATH needs to be imported
78 if [ -f /etc/profile ]; then
84 echo "Configuring LyX for your system..."
85 cd %{_datadir}/%{name}
88 # Fix reLyX perl program if the prefix is non-standard
89 if [ "%{_prefix}" != "/usr" ]
91 perl -pi -e "s!/usr/share/%{name}!%{_datadir}/%{name}!" %{_bindir}/reLyX
95 # Fix the TeX file hash
100 %defattr(-,root,root)
101 %doc ABOUT-NLS ANNOUNCE COPYING
102 %doc README UPGRADING ChangeLog NEWS
103 %doc lib/CREDITS README.reLyX
106 %{_datadir}/locale/*/LC_MESSAGES/*
108 %{_datadir}/texmf/tex/latex/%{name}