2010-08-13 00:47:36 +00:00
#
2011-02-18 14:11:06 +00:00
# spec file for package texmaker
2010-08-13 00:47:36 +00:00
#
2015-04-30 03:21:25 +00:00
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
2010-08-13 00:47:36 +00:00
#
# 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
2014-12-06 17:40:02 +00:00
Version : 4.4.1
2012-04-18 05:09:08 +00:00
Release : 0
2010-12-05 22:25:50 +00:00
Summary : Free cross-platform LaTeX editor
2014-09-02 03:31:10 +00:00
License : GPL-2.0 and BSD-3-Clause
2010-08-13 00:47:36 +00:00
Group : Productivity/Publishing/TeX/Frontends
2012-04-18 05:09:08 +00:00
Url : http://www.xm1math.net/texmaker/
Source : http://www.xm1math.net/texmaker/texmaker-%{version} .tar.bz2
2011-02-07 13:23:42 +00:00
# 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
2010-12-05 22:25:50 +00:00
Patch1 : texmaker-correct-doc-location.patch
BuildRequires : fdupes
2010-08-13 00:47:36 +00:00
BuildRequires : update-desktop-files
2015-08-15 05:55:28 +00:00
%if 0%{?suse_version} == 1315
BuildRequires : libQtWebKit-devel
BuildRequires : libpoppler-qt4-devel >= 0.16
BuildRequires : libqt4-devel >= 4.6.1
Requires : libQtWebKit4 >= 4.6.1
%else
BuildRequires : libpoppler-qt5-devel
2015-04-30 03:21:25 +00:00
BuildRequires : pkgconfig(Qt5Concurrent)
BuildRequires : pkgconfig(Qt5Core)
BuildRequires : pkgconfig(Qt5Gui)
BuildRequires : pkgconfig(Qt5Network)
BuildRequires : pkgconfig(Qt5PrintSupport)
BuildRequires : pkgconfig(Qt5Script)
BuildRequires : pkgconfig(Qt5WebKit)
BuildRequires : pkgconfig(Qt5WebKitWidgets)
BuildRequires : pkgconfig(Qt5Xml)
2015-08-15 05:55:28 +00:00
%endif
2010-12-05 22:25:50 +00:00
Requires : hunspell
Requires : texlive-latex
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2010-08-13 00:47:36 +00:00
%description
2010-12-05 22:25:50 +00:00
Texmaker is a free LaTeX editor, that integrates many tools
2010-08-13 00:47:36 +00:00
needed to develop documents with LaTeX, in just one application.
2010-12-05 22:25:50 +00:00
Texmaker runs on unix, macosx and windows systems and is released
2010-08-13 00:47:36 +00:00
under the GPL license .
2013-03-16 21:21:50 +00:00
2010-08-13 00:47:36 +00:00
%prep
%setup -q
2010-12-05 22:25:50 +00:00
%patch1 -p1
2010-08-13 00:47:36 +00:00
%build
2015-08-15 05:55:28 +00:00
%if 0%{?suse_version} == 1315
QTDIR=%{_libdir} /qt4
%else
2015-04-30 03:21:25 +00:00
QTDIR=%{_libdir} /qt5
2015-08-15 05:55:28 +00:00
%endif
2010-08-13 00:47:36 +00:00
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
2010-12-05 22:25:50 +00:00
PREFIX=%{buildroot} %{_prefix}
2015-08-15 05:55:28 +00:00
%if 0%{?suse_version} == 1315
qmake QMAKE_CXXFLAGS=" % o p t f l a g s - f v i s i b i l i t y = h i d d e n - f v i s i b i l i t y - i n l i n e s - h i d d e n " -unix texmaker.pro
%else
2015-04-30 03:21:25 +00:00
qmake-qt5 QMAKE_CXXFLAGS=" % o p t f l a g s - f v i s i b i l i t y = h i d d e n - f v i s i b i l i t y - i n l i n e s - h i d d e n " -unix texmaker.pro
2015-08-15 05:55:28 +00:00
%endif
2013-03-16 21:21:50 +00:00
make %{?_smp_mflags} INSTALL_ROOT=%{buildroot}
2010-08-13 00:47:36 +00:00
%install
2010-12-05 22:25:50 +00:00
make INSTALL_ROOT=%{buildroot} install
%fdupes %{buildroot} %{_datadir} /
2010-08-13 00:47:36 +00:00
%files
%defattr (-,root,root,-)
2010-12-05 22:25:50 +00:00
%doc utilities/AUTHORS utilities/COPYING utilities/CHANGELOG.txt
%{_bindir} /texmaker
%{_datadir} /applications/texmaker.desktop
%{_datadir} /pixmaps/texmaker.png
%{_datadir} /texmaker/
2010-08-13 00:47:36 +00:00
%changelog