texmaker/texmaker.spec
Atri Bhattacharya 4ce64be162 Accepting request 975061 from home:polslinux:branches:Publishing
- Update to version 5.1.3:
  * a compilation trouble in icondelegate with Qt>6.2.0 version
    has been fixed
  * some spellings errors in the source has ben fixed 
  * if an .asy document is loaded, the comment and uncomment tools
    are adapted (// instead of %)
  * the man page has been updated
  * --version and --help options to the texmaker command line
    has been added
  * zh-TW translation has been updated (thanks to Lu Ke)
  * a bug which avoid to change the shortcut of the "Quick build"
    command has been fixed
  * xdg-open is now used instead of evince in no-kde linux environment

OBS-URL: https://build.opensuse.org/request/show/975061
OBS-URL: https://build.opensuse.org/package/show/Publishing/texmaker?expand=0&rev=93
2022-05-05 11:50:32 +00:00

84 lines
2.6 KiB
RPMSpec

#
# spec file for package texmaker
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
Name: texmaker
Version: 5.1.3
Release: 0
Summary: LaTeX editor
License: BSD-3-Clause AND GPL-2.0-only
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)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Script)
BuildRequires: pkgconfig(Qt5Xml)
Requires: hunspell
Requires: texlive-collection-latexrecommended
Requires: web_browser
Requires: xdg-utils
%description
Texmaker is a LaTeX editor that integrates many tools
needed to develop documents with LaTeX in just one application.
Texmaker includes unicode support, spell checking, auto-completion,
code folding and a built-in PDF viewer with synctex support and
continuous view mode.
%prep
%setup -q
%build
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=%{_prefix}
find ./ -name ".qmake.stash" -delete -print
%qmake5 METAINFODIR="%{_datadir}/metainfo" -unix texmaker.pro
%make_jobs
%install
%qmake5_install
%fdupes %{buildroot}%{_datadir}/%{name}/
# REMOVE DOC FILES PACKAGED ANYWAY USING %%doc
rm %{buildroot}%{_datadir}/%{name}/{AUTHORS,COPYING,CHANGELOG.txt}
%files
%doc utilities/AUTHORS utilities/CHANGELOG.txt
%license utilities/COPYING
%{_bindir}/texmaker
%{_datadir}/applications/texmaker.desktop
%{_datadir}/pixmaps/texmaker.png
%{_datadir}/texmaker/
%{_datadir}/metainfo/%{name}.metainfo.xml
%changelog