File texmaker.spec of Package texmaker-6.0.1

Name: texmaker
Summary: LaTeX editor
Version: 6.0.1
Release: xm1
License: GPLv2+
Group: Applications/Publishing
Source: texmaker-%{version}.orig.tar.gz
Packager: Pascal Brachet
Url: https://www.xm1math.net/texmaker/


%if 0%{?fedora}
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: qt6-qtbase-devel
BuildRequires: qt6-qtdeclarative-devel
BuildRequires: qt6-qtbase-private-devel
BuildRequires: qt6-qttools-devel
BuildRequires: qt6-qtwebengine-devel
BuildRequires: qt6-qt5compat-devel
BuildRequires: libvpl
BuildRequires: OpenCL-ICD-Loader
%endif

%description
Texmaker is a clean, highly configurable LaTeX editor with good hot key 
 support and extensive LaTeX documentation. Texmaker integrates many tools 
 needed to develop documents with LaTeX, in just one application.

%global debug_package %{nil}

%prep
%setup -q

%build
%if 0%{?fedora}
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{buildroot}%{_prefix} .
%endif

make %{?_smp_mflags}

%install
make INSTALL_ROOT=%{buildroot} install

%files
%defattr(-,root,root,-)
%dir %{_datadir}/pixmaps
%{_datadir}/texmaker/
%{_bindir}/texmaker
%{_datadir}/applications/texmaker.desktop
%if 0%{?fedora}
%{_datadir}/metainfo/texmaker.metainfo.xml
%endif
%{_datadir}/pixmaps/texmaker.png

openSUSE Build Service is sponsored by