Name: lyx Summary: A word processor for the Desktop Environment Version: 1.5.1 Release: %mkrel 1 Source: ftp://ftp.lyx.org/pub/lyx/stable/%name-%version.tar.bz2 URL: http://www.lyx.org/ Group: Office BuildRequires: qt4-devel xpm-devel libjpeg-devel #BuildRequires: chrpath BuildRequires: gcc-c++ BuildRequires: gettext BuildRequires: ghostscript groff-for-man sgml-tools BuildRequires: tetex-dvips tetex-latex texinfo BuildRequires: libboost-devel BuildRequires: aspell-devel BuildRequires: python BuildRequires: ImageMagick Requires: tetex tetex-latex tetex-dvips fonts-ttf-latex BuildRoot: %_tmppath/%name-%version-%release-root License: GPL %description LyX is a modern approach of writing documents with a computer which breaks with the tradition of the obsolete typewriter concept. It is designed for people who want a professional output with a minimum of time effort, without becoming specia- lists in typesetting. Compared to common word processors LyX will increase the productivity a lot, since most of the type- setting will be done by the computer, not the author. With LyX the author can concentrate on the contents of his writing, since the computer will take care of the look. %prep %setup -q %build # (tv) prevent qt3 stuff too fsck up using qt4 (eg: using wrong uic) when both # qt3 & qt4 are installed: . /etc/profile.d/qt4.sh qt4env %define common_opt --without-aiksaurus --enable-compression-support mkdir qt-build pushd qt-build CONFIGURE_TOP=.. %configure2_5x --with-frontend=qt4 --with-qt-dir=/usr/lib/qt4 --with-qt-libraries=%{_prefix}/lib/qt4/%{_lib} --disable-rpath %common_opt make popd %install rm -rf $RPM_BUILD_ROOT pushd qt-build %makeinstall_std mv %buildroot/%_bindir/%name %buildroot/%name popd mv %buildroot/%name %buildroot/%_bindir/%name #mdk menu mkdir -p $RPM_BUILD_ROOT/%{_menudir} cat >$RPM_BUILD_ROOT%{_menudir}/lyx <<EOF ?package(lyx): command="%{_bindir}/lyx" \ needs="X11" \ icon="%name.png" \ section="Office/Wordprocessors" \ mimetypes="text/x-lyx" \ title="LyX" \ longtitle="TeX document processor - especially good at scientific documents" \ xdg="true" EOF mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-lyx.desktop << EOF [Desktop Entry] Name=LyX Comment=TeX document processor - especially good at scientific documents Exec=%{_bindir}/lyx Icon=lyx Terminal=false Type=Application Categories=Qt;KDE;Office;X-MandrivaLinux-Office-Wordprocessors EOF ## icons mkdir -p $RPM_BUILD_ROOT/%_liconsdir convert -size 48x48 development/Win32/packaging/icons/lyx_32x32.png $RPM_BUILD_ROOT/%_liconsdir/%name.png mkdir -p $RPM_BUILD_ROOT/%_iconsdir cp development/Win32/packaging/icons/lyx_32x32.png $RPM_BUILD_ROOT/%_iconsdir/%name.png mkdir -p $RPM_BUILD_ROOT/%_miconsdir convert -size 16x16 development/Win32/packaging/icons/lyx_32x32.png $RPM_BUILD_ROOT/%_miconsdir/%name.png ## Set up the lyx-specific class files where TeX can see then TEXMF=%{_datadir}/texmf mkdir -p $RPM_BUILD_ROOT${TEXMF}/tex/latex cp -r $RPM_BUILD_ROOT%_datadir/lyx/tex $RPM_BUILD_ROOT${TEXMF}/tex/latex/lyx chmod +x $RPM_BUILD_ROOT%_datadir/lyx/configure.py rm -f $RPM_BUILD_ROOT%_bindir/listerrors %find_lang %name find $RPM_BUILD_ROOT%_datadir/%name -type f | sed -e "s@$RPM_BUILD_ROOT@@g" \ -e "s@%_datadir/%name/doc/\(..\)_@%lang(\1) %_datadir/%name/doc/\1_@g" \ -e "s@\(%_datadir/%name/configure.py\)\$@%attr(755,root,root) \1@g" \ -e "s@\(%_datadir/%name/scripts/\)@%attr(755,root,root) \1@g" \ -e "s@\(%_datadir/%name/lyx2lyx/\)@%attr(755,root,root) \1@g" \ >> %name.lang find $RPM_BUILD_ROOT%_datadir/%name -type d | sed -e "s@$RPM_BUILD_ROOT@%dir @g" >> %name.lang #chrpath -d $RPM_BUILD_ROOT%_bindir/%name %post %update_menus ## Fix the TeX file hash texhash ## Before configuring lyx for the local system ## PATH needs to be imported if [ -f /etc/profile ]; then . /etc/profile fi ## Now configure LyX cd %_datadir/lyx ./configure.py > /dev/null %postun %clean_menus %clean rm -rf $RPM_BUILD_ROOT %files -f %name.lang %defattr (-,root,root) %doc INSTALL README ANNOUNCE NEWS INSTALL.autoconf %doc UPGRADING COPYING %_bindir/%name %_bindir/lyxclient %_bindir/tex2lyx %_mandir/man1/* #%_datadir/%name %_datadir/texmf/tex/latex/lyx %_menudir/%name %_liconsdir/%name.png %_iconsdir/%name.png %_miconsdir/%name.png %_datadir/applications/mandriva-lyx.desktop %changelog * Thu Aug 16 2007 Austin Acton <austin@mandriva.org> 1.5.1-1mdv2008.0 + Revision: 63983 - new version * Wed Aug 01 2007 Thierry Vignaud <tvignaud@mandriva.com> 1.5.0-1mdv2008.0 + Revision: 57762 - new release (using qt4) - fix build when both qt3 & qt4 are installed - drop gtk+ backend since it's no more in main sources * Tue Mar 13 2007 Emmanuel Blindauer <blindauer@mandriva.org> 1.4.4-1mdv2007.1 + Revision: 143234 - new version (1.4.4 bugfixes) * Fri Nov 24 2006 Thierry Vignaud <tvignaud@mandriva.com> 1.4.3-1mdv2007.1 + Revision: 86989 - new release * Tue Sep 12 2006 Thierry Vignaud <tvignaud@mandriva.com> 1.4.2-2mdv2007.0 + Revision: 60856 - rebuild for new libcairomm * Fri Jul 28 2006 Thierry Vignaud <tvignaud@mandriva.com> 1.4.2-1mdv2007.0 + Revision: 42333 - fix meny entry - new release - new release - XDG menu - sync with cooker + Andreas Hasenack <andreas@mandriva.com> - renamed mdv to packages because mdv is too generic and it's hosting only packages anyway + Helio Chissini de Castro <helio@mandriva.com> - We are Mandriva now - Uploading package ./lyx * Wed Jan 19 2005 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.3.5-2mdk - remove dependancy on xform (#13097) * Fri Nov 05 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.3.5-1mdk - new release - kill patches 5 & 6 * Fri Aug 06 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.3.4-5mdk - build release * Wed Jun 09 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.3.4-4mdk - patch 6: fix LANGUAGE=lang1:lang2 fallback support (pablo) thus enabling to remove lyx wrapper * Wed Jun 09 2004 Thierry Vignaud <tvignaud@mandrakesoft.com> 1.3.4-3mdk - rebuild for new g++ - patch 5: fix build with g++-3.4.x * Fri Apr 16 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.3.4-2mdk - fix build, hit titi