Summary: WYSIWYM (What You See Is What You Mean) document processor Name: lyx Version: 1.4.2 Release: 5%{?dist} License: GPL Group: Applications/Publishing Url: http://www.lyx.org/ 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.2-helpers.patch Source1: lyxrc.dist # 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 # qt frontend BuildRequires: qt-devel # xforms frontend BuildRequires: xforms-devel BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: python BuildRequires: aiksaurus-devel BuildRequires: aspell-devel BuildRequires: zlib-devel BuildRequires: tetex-latex BuildRequires: tetex-fonts # 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 dependencies %if "%{?fedora}" > "3" # dvipost adds support for lyx's Document->Change Tracking feature Requires(hint): tetex-dvipost Requires(hint): tetex-preview %endif # convert doc files to lyx (bug #193858) Requires(hint): wv %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} # FIXME %patch1 -p1 -b .helpers %build # QT unset QTDIR || : ; . /etc/profile.d/qt.sh # 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-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 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/lyx/lyxrc.dist 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 # .desktop desktop-file-install \ --dir $RPM_BUILD_ROOT%{_datadir}/applications \ --add-category="X-Fedora" --vendor="fedora" \ %{SOURCE21} %{SOURCE22} # generic/hicolor icon install -p -D -m644 lib/images/lyx.xpm \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/lyx.xpm # configure renamed to configure.py recently, make symlink to # old location ln -s configure.py $RPM_BUILD_ROOT%{_datadir}/lyx/configure # ghost'd files touch $RPM_BUILD_ROOT%{_datadir}/lyx/lyxrc.defaults touch $RPM_BUILD_ROOT%{_datadir}/lyx/{packages,textclass}.lst touch $RPM_BUILD_ROOT%{_datadir}/lyx/doc/LaTeXConfig.lyx %find_lang %{name} %post touch --no-create %{_datadir}/icons/hicolor ||: gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||: update-desktop-database %{_datadir}/applications > /dev/null 2>&1 ||: texhash > /dev/null 2>&1 ||: cd %{_datadir}/lyx && ./configure.py > /dev/null 2>&1 ||: %postun touch --no-create %{_datadir}/icons/hicolor ||: gtk-update-icon-cache -q %{_datadir}/icons/hicolor 2> /dev/null ||: 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.py --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.py --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}/icons/hicolor/*/*/* %{_datadir}/lyx/ %config(noreplace) %{_datadir}/lyx/lyxrc.dist %ghost %{_datadir}/lyx/lyxrc.defaults %ghost %{_datadir}/lyx/*.lst %ghost %{_datadir}/lyx/doc/LaTeXConfig.lyx %{_datadir}/texmf/tex/latex/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 * Thu Sep 07 2006 Rex Dieter 1.4.2-5 - fc6 respin * Thu Aug 17 2006 Rex Dieter 1.4.2-4 - owowned files, incomplete package removal (bug #201197) * Thu Jul 13 2006 Rex Dieter 1.4.2-2 - 1.4.2 * Wed Jun 29 2006 Rex Dieter 1.4.1-9 - Requires(hint): wv (bug #193858) - fix dependancy -> dependency * Thu Jun 15 2006 Rex Dieter 1.4.1-8 - BR: gettext - fc4: restore Requires(hint): tetex-preview * Thu May 25 2006 Rex Dieter 1.4.1-7.1 - fc4: drop Requires: tetex-preview, it's not ready yet. * Wed May 24 2006 Rex Dieter 1.4.1-7 - use serverpipe "~/.lyx/lyxpipe" instead, that was the old default and what pybibliographer expects. * Tue May 23 2006 Rex Dieter 1.4.1-6 - set defaults for (see %{_datadir}/lyx/lyxrc.defaults.custom) screen_font_roman "Serif" screen_font_sans "Sans" screen_font_typewriter "Monospace" screen_zoom 100 serverpipe "~/.lyx/pipe" (bug #192253) * Mon May 22 2006 Rex Dieter 1.4.1-5 - Requires(hint): tetex-preview * Tue May 16 2006 Rex Dieter 1.4.1-4 - add generic app icon (rh #191944) * 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-dependency-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 dependency. * 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