Accepting request 304489 from home:elvigia:branches:Publishing

- Honour RPM_OPT_FLAGS.
- switch to QT5, no source code changes needed.

OBS-URL: https://build.opensuse.org/request/show/304489
OBS-URL: https://build.opensuse.org/package/show/Publishing/texmaker?expand=0&rev=69
This commit is contained in:
Atri Bhattacharya 2015-04-30 03:21:25 +00:00 committed by Git OBS Bridge
parent 418e7ed255
commit 91f2b4b69c
2 changed files with 19 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Apr 29 04:59:16 UTC 2015 - crrodriguez@opensuse.org
- Honour RPM_OPT_FLAGS.
- switch to QT5, no source code changes needed.
-------------------------------------------------------------------
Mon Dec 1 22:25:23 UTC 2014 - badshah400@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package texmaker
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -27,12 +27,18 @@ Source: http://www.xm1math.net/texmaker/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 >= 0.16
BuildRequires: libqt4-devel >= 4.6.1
BuildRequires: libpoppler-qt5-devel
BuildRequires: update-desktop-files
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)
Requires: hunspell
Requires: libQtWebKit4 >= 4.6.1
Requires: texlive-latex
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -47,13 +53,13 @@ under the GPL license .
%patch1 -p1
%build
QTDIR=%{_libdir}/qt4
QTDIR=%{_libdir}/qt5
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
qmake-qt5 QMAKE_CXXFLAGS="%optflags -fvisibility=hidden -fvisibility-inlines-hidden" -unix texmaker.pro
make %{?_smp_mflags} INSTALL_ROOT=%{buildroot}
%install