Summary: WYSIWYM (What You See Is What You Mean) document processor Name: lyx Version: 1.4.1 Release: 3%{?dist} License: GPL Group: Applications/Publishing Url: http://www.lyx.org/ #Source: ftp://ftp.devel.lyx.org/pub/lyx/pre/lyx-%{version}%{?beta}.tar.bz2 Source: ftp://ftp.lyx.org/pub/lyx/stable/lyx-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch1: lyx-1.4.0-helpers.patch Patch2: lyx-1.4.0-boost.patch # app-wrapper for various frontends Source10: lyx.sh # .desktop files Source20: lyx.desktop Source21: lyx-qt.desktop Source22: lyx-xforms.desktop # misc Source100: ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/beamer/lyx/layouts/beamer.layout # TODO: use helpers.sh script at runtime, instead of depending on # lyx's configure and %%triggers #Source100: helpers.sh # qt frontend BuildRequires: qt-devel # xforms frontend BuildRequires: xforms-devel BuildRequires: desktop-file-utils BuildRequires: python BuildRequires: aiksaurus-devel BuildRequires: aspell-devel BuildRequires: zlib-devel BuildRequires: tetex-latex BuildRequires: tetex-fonts %{?_without_included_boost:BuildRequires: boost-devel >= 1.33.0} # For texhash Requires(post): tetex-fonts Requires(postun): tetex-fonts Requires: %{name}-frontend = %{version} Requires: tetex-latex Requires: tetex-dvips Requires: mathml-fonts Requires: ghostscript Requires: htmlview ## Soft dependancies # add support for lyx's Document->Change Tracking Requires(hint): tetex-dvipost %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 qt Summary: Lyx graphical frontend using Qt Group: Applications/Publishing Requires: %{name} = %{version} Provides: %{name}-frontend = %{version}-%{release} %description qt %{summary}. %package xforms Summary: Lyx graphical frontend using XForms Group: Applications/Publishing Requires: %{name} = %{version} Provides: %{name}-frontend = %{version}-%{release} %description xforms %{summary}. %prep %setup -q -n %{name}-%{version}%{?beta} %patch1 -p1 -b .helpers %{?_without_included_boost:%patch2 -p1 -b .boost} %build # QT unset QTDIR || : ; . /etc/profile.d/qt.sh export QTLIB=${QTDIR}/lib QTINC=${QTDIR}/include # drop -fexceptions from optflags, suggested by lyx devs: # http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg85794.html optflags="$(echo %optflags | sed -e 's|-fexceptions||' )" %global optflags $optflags %configure \ --disable-rpath \ --enable-compression-support \ --with-frontend="qt xforms" \ --enable-optimization="%{optflags}" \ --with-aiksaurus \ --with-aspell \ %{?_without_included_boost} \ --without-warnings --disable-dependency-tracking \ --disable-debug --disable-stdlib-debug --disable-assertions --disable-concept-checks make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT ## Handle front-ends install -p -m0755 -D %{SOURCE10} $RPM_BUILD_ROOT%{_bindir}/lyx install -p -m0755 -D src/lyx-qt $RPM_BUILD_ROOT%{_bindir}/lyx-qt install -p -m0755 -D src/lyx-xforms $RPM_BUILD_ROOT%{_bindir}/lyx-xforms # misc/extras install -p -m644 %{SOURCE100} $RPM_BUILD_ROOT%{_datadir}/lyx/layouts/ # Set up the lyx-specific class files where TeX can see them texmf=%{_datadir}/texmf mkdir -p $RPM_BUILD_ROOT${texmf}/tex/latex mv $RPM_BUILD_ROOT%{_datadir}/lyx/tex \ $RPM_BUILD_ROOT${texmf}/tex/latex/lyx mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications desktop-file-install --vendor fedora \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-category "X-Fedora" \ %{SOURCE21} %{SOURCE22} %find_lang %{name} || touch %{name}.lang %post update-desktop-database %{_datadir}/applications > /dev/null 2>&1 ||: texhash > /dev/null 2>&1 ||: cd %{_datadir}/lyx && ./configure > /dev/null 2>&1 ||: %postun update-desktop-database %{_datadir}/applications > /dev/null 2>&1 ||: texhash > /dev/null 2>&1 ||: # Catch installed/uninstalled helpers %triggerin -- acroread,AdobeReader_enu,evince,gsview,ImageMagick,kdegraphics,latex2html,tetex-xdvi,wv if [ $2 -gt 1 ]; then cd %{_datadir}/lyx && ./configure --without-latex-config > /dev/null 2>&1 ||: fi %triggerun -- acroread,AdobeReader_enu,evince,gsview,ImageMagick,kdegraphics,latex2html,tetex-xdvi,wv if [ $2 -eq 0 ]; then cd %{_datadir}/lyx && ./configure --without-latex-config > /dev/null 2>&1 ||: fi %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc ANNOUNCE ChangeLog lib/CREDITS NEWS README %{_bindir}/lyx %{_bindir}/lyxclient %{_bindir}/tex2lyx %{_mandir}/man1/* %{_datadir}/lyx/ %{_datadir}/texmf/tex/latex/lyx/ %verify(not md5 size mtime) %{_datadir}/lyx/*.lst %verify(not md5 size mtime) %{_datadir}/lyx/lyxrc.defaults %verify(not md5 size mtime) %{_datadir}/lyx/doc/LaTeXConfig.lyx %files qt %defattr(-,root,root,-) %{_bindir}/lyx-qt %{_datadir}/applications/*-lyx-qt.desktop %files xforms %defattr(-,root,root,-) %{_bindir}/lyx-xforms %{_datadir}/applications/*-lyx-xforms.desktop %changelog * Fri Apr 28 2006 Rex Dieter 1.4.1-3 - Requires(hint): tetex-dvipost adds support for lyx's Document->Change Tracking * Tue Apr 11 2006 Rex Dieter 1.4.1-2 - 1.4.1 * Thu Mar 30 2006 Rex Dieter 1.4.0-5 - %%trigger ImageMagick (#186319) * Thu Mar 09 2006 Rex Dieter 1.4.0-4 - fix stripping of -fexceptions from %%optflags * Wed Mar 08 2006 Rex Dieter 1.4.0-3 - include beamer.layout * Wed Mar 08 2006 Rex Dieter 1.4.0-2 - 1.4.0(final) - drop boost bits * Tue Mar 07 2006 Rex Dieter 1.4.0-0.12.rc - 1.4.0rc - drop boost patch (for now) * Fri Mar 03 2006 Rex Dieter 1.4.0-0.11.pre6 - 1.4.0pre6 - --disable-stdlib-debug --disable-assertions --disable-concept-checks - don't use --without-included-boost (for now) * Mon Feb 20 2006 Rex Dieter 1.4.0-0.10.pre5 - gcc41 patch - document boost/gcc41 patches - avoid --without-included-boost on fc4/gcc-4.0.2 (gcc bug) * Tue Feb 14 2006 Rex Dieter 1.4.0-0.9.pre5 - updated boost patch - drop -fexceptions from %%optflags * Mon Feb 13 2006 Rex Dieter 1.4.0-0.7.pre5 - --without-included-boost - BR: boost-devel * Mon Feb 13 2006 Rex Dieter 1.4.0-0.5.pre5 - 1.4.0pre5 * Tue Jan 31 2006 Rex Dieter 1.4.0-0.2.pre4 - 1.4.0pre4 * Fri Jan 20 2006 Rex Dieter 1.4.0-0.1.pre3 - 1.4.0pre3 * Fri Jan 20 2006 Rex Dieter 1.3.7-4 - cleanup/fix snarfing of intermediate frontend builds. * Fri Jan 20 2006 Rex Dieter 1.3.7-2 - BR: libXpm-devel * Tue Jan 17 2006 Rex Dieter 1.3.7-1 - 1.3.7 - -qt/-xforms: frontend pkgs (#178116) * Fri Oct 21 2005 Rex Dieter 1.3.6-5 - %%post/%%postun: update-desktop-database * Fri Sep 02 2005 Rex Dieter 1.3.6-4 - leave out kde-redhat bits in Fedora Extras build - define/use safer (esp for x86_64) QTDIR bits * Fri Aug 05 2005 Rex Dieter 1.3.6-3 - touchup helpers script - fix for (sometimes missing) PSres.upr * Mon Aug 01 2005 Rex Dieter 1.3.6-2 - use triggers to configure/unconfigure helper (ps/pdf/html) apps * Sat Jul 23 2005 Rex Dieter 1.3.6-1 - 1.3.6 * Mon May 23 2005 Rex Dieter 1.3.5-4 - qt_immodule patch (lyx bug #1830) - update -helpers patch to look-for/use evince (rh bug #143992) - drop (not-strictly-required) Req's on helper apps htmlview, gsview (rh bug #143992) - %%configure: --with-aiksaurus - %%configure: --enable-optimization="$$RPM_OPT_FLAGS" - %%configure: --disable-dependancy-tracking * Sun May 22 2005 Jeremy Katz - 1.3.5 - rebuild on all arches * Fri Apr 7 2005 Michael Schwendt - rebuilt * Thu Oct 21 2004 Rex Dieter 0:1.3.5-3 - BR: htmlview - Requires: htmlview, gsview (so build-time-detected helper apps are available at runtime) * Thu Oct 21 2004 Rex Dieter 0:1.3.5-0.fdr.3 - BR: htmlview - Requires: htmlview, gsview (so build-time-detected helper apps are available at runtime) * Wed Oct 20 2004 Rex Dieter 0:1.3.5-0.fdr.2 - BR: pspell-devel -> aspell-devel - BR: tetex-* (helper detection, fonts) - -helpers patch: find/use htmlview, gsview, kdvi, ggv, kghostview - .desktop: GenericName: WYSIWYM document processor * Wed Oct 06 2004 Rex Dieter 0:1.3.5-0.fdr.1 - 1.3.5 * Fri Apr 30 2004 Rex Dieter 0:1.3.4-0.fdr.6 - BR: libtool * Fri Apr 23 2004 Rex Dieter 0:1.3.4-0.fdr.5 - Group: Applications/Publishing - BR: desktop-file-utils - Requires(post,postun): tetex * Sat Apr 10 2004 Rex Dieter 0:1.3.4-0.fdr.4 - .desktop: separate file - .desktop: drop 'Utility' category, add 'Qt' - .desktop: Name: lyx -> LyX - .desktop: Comment: lyx 1.3.4 -> WYSIWYM document processor - convert icon xpm -> png * Thu Mar 11 2004 Rex Dieter 0:1.3.4-0.fdr.3 - dynamically determine version for qt dependancy. * Tue Mar 09 2004 Rex Dieter 0:1.3.4-0.fdr.2 - add a few (mostly superfluous) BuildRequires to make fedora.us's buildsystem happy. * Tue Mar 09 2004 Rex Dieter 0:1.3.4-0.fdr.1 - Allow building/use for any qt >= 3.1 * Thu Feb 19 2004 Rex Dieter 0:1.3.4-0.fdr.0 - 1.3.4 - Categories=Office * Mon Nov 24 2003 Rex Dieter 0:1.3.3-0.fdr.3 - Requires: tetex-latex - support MimeType(s): application/x-lyx;text/x-lyx * Sat Nov 22 2003 Rex Dieter 0:1.3.3-0.fdr.2 - let rpm auto-require qt. - remove (optional) xforms support. - Requires: latex-xft-fonts * Mon Oct 06 2003 Rex Dieter 0:1.3.3-0.fdr.1 - 1.3.3 - update macros for Fedora Core. * Mon May 12 2003 Rex Dieter 0:1.3.2-0.fdr.0 - 1.3.2 - fedora-ize. * Tue Mar 25 2003 Rex Dieter 1.3.1-1.0 - 1.3.1 release. * Fri Feb 21 2003 Rex Dieter 1.3.0-1.0 - yank kmenu * Fri Feb 07 2003 Rex Dieter 1.3.0-0.0 - 1.3.0