%define qtdir %{_prefix}/lib/qt4 Name: texmaker Version: 1.6 Release: %mkrel 2 Epoch: 1 Summary: A QT-based LATEX editor License: GPL Group: Publishing URL: http://www.xm1math.net/texmaker/index.html Source0: http://www.xm1math.net/texmaker/%name-%version.tar.bz2 Patch0: texmaker-1.6-fix-invalid-desktop.patch Requires: aspell BuildRequires: qt4-devel desktop-file-utils BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root %description Texmaker is a free LaTeX editor that integrates many tools needed to develop documents with LaTeX, in just one application. It includes the following features: - an unicode editor to write your LaTeX source files (syntax highlighting, undo-redo, search-replace, ...) - the principal LaTex tags can be inserted directly with the "LaTeX", "Math" and "Greek" menus - 370 mathematical symbols can be inserted in just one click - wizards to generate code ('Quick document', 'Quick letter', tabular, tabbing and array environments) - LaTeX-related programs can be launched via the "Tools" menu - the standard Bibtex entry types can be inserted in the ".bib" file with the "Bibliography" menu - a "structure view" of the document for easier navigation of a document (by clicking on an item in the "Structure" frame, you can jump directly to the corresponding part of your document - extensive LaTeX documentation - in the "Messages / Log File" frame, you can see information about processes and the logfile after a LaTeX compilation - the "Next Latex Error" and "Previous Latex Error" commands let you reach the LaTeX errors detected by Kile in the log file - by clicking on the number of a line in the log file, the cursor jumps to the corresponding line in the editor %prep %setup -q %patch0 -p0 %build export QTDIR=%{qtdir} %{qtdir}/bin/qmake texmaker.pro %{__perl} -pi -e "s|-O2|%{optflags}||g" Makefile %{make} %install rm -rf %{buildroot} mkdir -p %{buildroot}%_bindir INSTALL_ROOT=%{buildroot} make install # icons mkdir -p %{buildroot}%_miconsdir cp utilities/texmaker16x16.png %{buildroot}%_miconsdir/%name.png mkdir -p %{buildroot}%_iconsdir/hicolor/16x16/apps cp utilities/texmaker16x16.png %{buildroot}%_iconsdir/hicolor/16x16/apps/%name.png cp utilities/texmaker32x32.png %{buildroot}%_iconsdir/%name.png mkdir -p %{buildroot}%_iconsdir/hicolor/32x32/apps cp utilities/texmaker32x32.png %{buildroot}%_iconsdir/hicolor/32x32/apps/%name.png mkdir -p %{buildroot}%_liconsdir cp utilities/texmaker48x48.png %{buildroot}%_liconsdir/%name.png mkdir -p %{buildroot}%_iconsdir/hicolor/48x48/apps cp utilities/texmaker48x48.png %{buildroot}%_iconsdir/hicolor/48x48/apps/%name.png mkdir -p %{buildroot}%_iconsdir/hicolor/scalable/apps cp utilities/texmaker.svg %{buildroot}%_iconsdir/hicolor/scalable/apps/%name.svg # menu mkdir -p %{buildroot}%_datadir/applications desktop-file-install --vendor='' \ --dir=%buildroot%_datadir/applications \ utilities/texmaker.desktop %clean rm -rf %{buildroot} %post %{update_menus} %update_icon_cache hicolor %postun %{clean_menus} %clean_icon_cache hicolor %files %defattr(-,root,root) %doc utilities/AUTHORS utilities/CHANGELOG.txt %_bindir/%name %_datadir/%name %_miconsdir/%name.png %_iconsdir/%name.png %_liconsdir/%name.png %_iconsdir/hicolor/*/apps/* %_datadir/applications/%name.desktop %changelog * Sat Aug 25 2007 Funda Wang <fundawang@mandriva.org> 1:1.6-2mdv2008.0 + Revision: 71117 - BR desktop-file-utils - fix invalid desktop file * Thu Jun 21 2007 David Walluck <walluck@mandriva.org> 1:1.6-1mdv2008.0 + Revision: 42159 - 1.6 - use full source URL * Thu May 10 2007 Austin Acton <austin@mandriva.org> 1:1.5-2mdv2008.0 + Revision: 26094 - install docs where it can find them * Wed May 09 2007 Austin Acton <austin@mandriva.org> 1:1.5-1mdv2008.0 + Revision: 25770 - requires aspell - epoch 1 - new version - use qt4, drop KDE dependency - force build flags - XDG menu, FD.o icons (cookies!!) * Mon Jun 26 2006 Pascal Terjan <pterjan@mandriva.org> 1.12-2mdv2007.0 - fix qtdir and path to the lib on x86_64 - mkrel * Thu Apr 28 2005 Lenny Cartier <lenny@mandrakesoft.com> 1.12-1mdk - 1.12 * Wed Jun 16 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.0.1-3mdk - rebuild * Wed Feb 11 2004 David Baudens <baudens@mandrakesoft.com> 1.0.1-2mdk - Fix menu * Tue Aug 05 2003 Lenny Cartier <lenny@mandrakesoft.com> 1.0.1-1mdk - 1.0.1 * Sun Jul 20 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.0-3mdk - fix menu section (David Coe <david.coe@dsl.pipex.com>) * Sat Jul 19 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.0-2mdk - buildrequires kdelibs-devel * Fri Jul 18 2003 Olivier Thauvin <thauvin@aerov.jussieu.fr> 1.0-1mdk - 1st mdk contrib (Thanks to war[sheep] to notify me this tools)