# # rpm spec for lyx # # delete the following line if you want to use a xforms frontend # rather than one based on the Qt libs. (of course, you'll need # either Qt or xforms installed on your system.) %define lyxqt 1 # delete the following line if you want to be able to install more # than one version of LyX on the same system; you'll end up with # version-specific binaries and shared directory, e.g., lyx-1.3.2 %define nolyxvers 1 Summary: LyX - a document processor for X Windowing System Name: lyx Version: 1.3.5 Release: 1%{?redhatvers:.%{redhatvers}} Group: Applications/Publishing License: GPL Packager: Paul Heinlein URL: http://www.lyx.org/ Source: ftp://ftp.lyx.org/pub/lyx/stable/lyx-1.3.5.tar.bz2 BuildRequires: expat-devel, fontconfig-devel, freetype-devel BuildRequires: libmng-devel, libpng-devel BuildRequires: %{?lyxqt:qt-devel}%{!?lyxqt:xforms-devel} Requires: perl >= 5.002, tetex-latex BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description LyX is an advanced open-source "document processor". Unlike standard word processors, LyX encourages writing based on the structure of your documents, not their appearance. It lets you concentrate on writing, leaving details of visual layout to the software. %changelog * Sun Mar 6 2005 Paul Heinlein 1.3.5-1 - new upstream version * Fri Aug 20 2004 Paul Heinlein 1.3.4-1 - new upstream version: 1.3.4 * Tue Sep 23 2003 Paul Heinlein 1.3.2-3 - spec file cleanups * Thu Jun 6 2003 Paul Heinlein 1.3.2-2 - added option to build frontend with Qt instead of xforms - added option to build with version suffix * Thu Jun 5 2003 Paul Heinlein 1.3.2-1 - bumped to 1.3.2 * Fri Dec 27 2002 Paul Heinlein - initial release %prep %setup -q %build ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --enable-optimization="%{optflags}" \ --disable-nls \ --with-frontend=%{?lyxqt:qt}%{!?lyxqt:xforms} \ %{!?nolyxvers:--with-version-suffix} make %{_smp_mflags} %install [ "%{buildroot}" != '/' ] && rm -rf %{buildroot} make install DESTDIR=%{buildroot} %clean [ "%{buildroot}" != '/' ] && rm -rf %{buildroot} %files %defattr(-,root,root) %doc ANNOUNCE ChangeLog INSTALL* NEWS README UPGRADING %{_bindir}/* %{_datadir}/lyx%{!?nolyxvers:-%{version}} %doc %{_mandir}/*/* ### ### eof ###