1 Summary: A WYSIWYM (What You See Is What You Mean) frontend to LaTeX
5 Copyright: see COPYING file
7 Url: http://www.lyx.org/
8 Packager: Kayvan A. Sylvan <kayvan@sylvan.com>
9 Source: ftp://ftp.lyx.org/pub/lyx/stable/lyx-%{PACKAGE_VERSION}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-root
13 Requires: xforms >= 0.88, tetex-xdvi, tetex, tetex-latex
17 LyX is a modern approach to writing documents which breaks with the
18 obsolete "typewriter paradigm" of most other document preparation
21 It is designed for people who want professional quality output
22 with a minimum of time and effort, without becoming specialists in
25 The major innovation in LyX is WYSIWYM (What You See Is What You Mean).
26 That is, the author focuses on content, not on the details of formatting.
27 This allows for greater productivity, and leaves the final typesetting
28 to the backends (like LaTeX) that are specifically designed for the task.
30 With LyX, the author can concentrate on the contents of his writing,
31 and let the computer take care of the rest.
38 CXXFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" \
39 ./configure --prefix=%{_prefix} --mandir=%{_mandir} \
40 --bindir=%{_bindir} --datadir=%{_datadir} \
41 --without-warnings --with-included-string
46 rm -rf ${RPM_BUILD_ROOT}
47 install -d -m 755 ${RPM_BUILD_ROOT}
48 make DESTDIR=${RPM_BUILD_ROOT} install
49 gzip -f9 ${RPM_BUILD_ROOT}%{_mandir}/man?/*
52 # Set up the lyx-specific class files where TeX can see them
54 TEXMF=%{_datadir}/texmf
55 mkdir -p ${RPM_BUILD_ROOT}${TEXMF}/tex/latex
56 mv ${RPM_BUILD_ROOT}%{_datadir}/lyx/tex \
57 ${RPM_BUILD_ROOT}/${TEXMF}/tex/latex/lyx
62 cp -a lib/images/lyx.xpm ${RPM_BUILD_ROOT}%{_datadir}/lyx/images/
63 cp lib/reLyX/README README.reLyX
66 rm -rf ${RPM_BUILD_ROOT}
69 # Make TeX understand where LyX-specific packages are
72 # Before configuring lyx for the local system
73 # PATH needs to be imported
74 if [ -f /etc/profile ]; then
80 echo "Configuring LyX for your system..."
84 # Fix reLyX perl program if the prefix is non-standard
85 if [ "%{_prefix}" != "/usr" ]
87 perl -pi -e "s!/usr/share/lyx!%{_datadir}/lyx!" \
92 # Fix the TeX file hash
98 %doc ABOUT-NLS ANNOUNCE COPYING
99 %doc README UPGRADING ChangeLog NEWS
100 %doc lib/CREDITS README.reLyX
103 %{_datadir}/locale/*/LC_MESSAGES/*
105 %{_datadir}/texmf/tex/latex/%{name}