File texmaker.spec of Package texmaker

#
# spec file for package texmaker
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           texmaker
Version:        3.1
Release:        1
License:        GPLv2
Summary:        Free cross-platform LaTeX editor
Url:            http://www.xm1math.net/texmaker/
Group:          Productivity/Publishing/TeX/Frontends
Source:         texmaker-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM texmaker-correct-doc-location.patch badshah400@gmail.com -- Handle doc files in the spec file rather than placing them in %%{_datadir} during compilation
Patch1:         texmaker-correct-doc-location.patch
BuildRequires:  fdupes
BuildRequires:  libQtWebKit-devel
BuildRequires:  libpoppler-qt4-devel
BuildRequires:  libqt4-devel >= 4.6.1
BuildRequires:  update-desktop-files
Requires:       hunspell
Requires:       libQtWebKit4 >= 4.6.1
Requires:       texlive-latex
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
#

%description
Texmaker is a free LaTeX editor, that integrates many tools
needed to develop documents with LaTeX, in just one application.
Texmaker runs on unix, macosx and windows systems and is released
under the GPL license .
#
%prep
%setup -q
%patch1 -p1
#

%build
QTDIR=%{_libdir}/qt4
PATH=$QTDIR/bin:$PATH
LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH
export QTDIR PATH LD_LIBRARY_PATH DYLD_LIBRARY_PATH
PREFIX=%{buildroot}%{_prefix}
qmake -unix texmaker.pro
make INSTALL_ROOT=%{buildroot}
#

%install
make INSTALL_ROOT=%{buildroot} install
%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_datadir}/

%clean
rm -rf %{buildroot}
#

%files
%defattr(-,root,root,-)
%doc utilities/AUTHORS utilities/COPYING utilities/CHANGELOG.txt
%{_bindir}/texmaker
%{_datadir}/applications/texmaker.desktop
%{_datadir}/pixmaps/texmaker.png
%{_datadir}/texmaker/

%changelog
openSUSE Build Service is sponsored by