- Use qmake macros
- Cleanup a bit with spec-cleaner OBS-URL: https://build.opensuse.org/package/show/Publishing/texmaker?expand=0&rev=83
This commit is contained in:
committed by
Git OBS Bridge
parent
646ca68581
commit
e408e02b32
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 19 15:07:43 UTC 2017 - mpluskal@suse.com
|
||||
|
||||
- Use qmake macros
|
||||
- Cleanup a bit with spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 19 13:06:45 UTC 2017 - badshah400@gmail.com
|
||||
|
||||
|
@@ -20,12 +20,13 @@ Name: texmaker
|
||||
Version: 5.0.2
|
||||
Release: 0
|
||||
Summary: LaTeX editor
|
||||
License: GPL-2.0 and BSD-3-Clause
|
||||
License: GPL-2.0 AND BSD-3-Clause
|
||||
Group: Productivity/Publishing/TeX/Frontends
|
||||
Url: http://www.xm1math.net/texmaker/
|
||||
Source: http://www.xm1math.net/texmaker/texmaker-%{version}.tar.bz2
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: libqt5-qtbase-private-headers-devel >= 5.7
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: pkgconfig(Qt5Concurrent)
|
||||
BuildRequires: pkgconfig(Qt5Core)
|
||||
@@ -40,7 +41,6 @@ Requires: hunspell
|
||||
Requires: texlive-collection-latexrecommended
|
||||
Requires: web_browser
|
||||
Requires: xdg-utils
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Texmaker is a LaTeX editor that integrates many tools
|
||||
@@ -61,16 +61,14 @@ DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH
|
||||
export QTDIR PATH LD_LIBRARY_PATH DYLD_LIBRARY_PATH
|
||||
PREFIX=%{_prefix}
|
||||
|
||||
qmake-qt5 QMAKE_CXXFLAGS="%optflags -fvisibility=hidden -fvisibility-inlines-hidden" \
|
||||
METAINFODIR="%{_datadir}/appdata" -unix texmaker.pro
|
||||
make %{?_smp_mflags}
|
||||
%qmake5 METAINFODIR="%{_datadir}/appdata" -unix texmaker.pro
|
||||
%make_jobs
|
||||
|
||||
%install
|
||||
make INSTALL_ROOT=%{buildroot} install
|
||||
%qmake5_install
|
||||
%fdupes %{buildroot}%{_datadir}/%{name}/
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc utilities/AUTHORS utilities/COPYING utilities/CHANGELOG.txt
|
||||
%{_bindir}/texmaker
|
||||
%{_datadir}/applications/texmaker.desktop
|
||||
|
Reference in New Issue
Block a user