File texstudio.spec of Package texstudio-4.8.3
#
# spec file for package texstudio
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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: texstudio
Version: 4.8.3
Release: 1
Summary: LaTeX Editor
License: GPL-2.0
Group: Productivity/Publishing/TeX/Frontends
URL: http://texstudio.sf.net
Source0: %{name}-%{version}.orig.tar.gz
%if 0%{?suse_version}
BuildRequires: cmake
%if 0%{?suse_version}>1500
BuildRequires: qt6-gui-devel
BuildRequires: qt6-qt5compat-devel
BuildRequires: qt6-svg-devel
BuildRequires: qt6-xml-devel
BuildRequires: qt6-concurrent-devel
BuildRequires: qt6-network-devel
BuildRequires: qt6-qml-devel
BuildRequires: qt6-printsupport-devel
BuildRequires: qt6-uitools-devel
BuildRequires: libpoppler-qt6-devel
BuildRequires: hunspell-devel
BuildRequires: quazip-qt6-devel
%else
BuildRequires: libqt5-qtbase-devel
BuildRequires: libqt5-qtsvg-devel
BuildRequires: libqt5-qtdeclarative-devel
BuildRequires: libqt5-qttools-devel
BuildRequires: libpoppler-qt5-devel
BuildRequires: hunspell-devel
Requires: libQt5Svg5
%endif
%endif
%if 0%{?fedora}
BuildRequires: cmake
%if 0%{?fedora_version} > 36
BuildRequires: gcc-c++
BuildRequires: qt6-qtbase-devel
BuildRequires: qt6-qt5compat-devel
BuildRequires: qt6-qtsvg-devel
BuildRequires: qt6-qtdeclarative-devel
BuildRequires: qt6-qttools-devel
BuildRequires: poppler-qt6-devel
BuildRequires: poppler-cpp-devel
BuildRequires: hunspell-devel
BuildRequires: quazip-qt6-devel
%else
BuildRequires: gcc-c++
BuildRequires: clang-libs
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qtdeclarative-devel
BuildRequires: qt5-qttools-devel
BuildRequires: qt5-qttools-static
BuildRequires: poppler-qt5-devel
BuildRequires: poppler-cpp-devel
BuildRequires: hunspell-devel
%endif
%endif
%description
TeXstudio is a program based on texmaker, that integrates many tools needed to develop documents with LaTeX, in just one application. Using its editor you can write your documents with the help of interactive spell checking, syntax highlighting, automatically code completion and more...
%global debug_package %{nil}
%prep
%setup -q
%build
%if 0%{?suse_version}
%if 0%{?suse_version}>1500
# qmake6 CONFIG-=debug NO_APPDATA=1 USE_SYSTEM_HUNSPELL=1 USE_SYSTEM_QUAZIP=1 texstudio.pro
cmake -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr .
%else
# qmake-qt5 CONFIG-=debug NO_APPDATA=1 USE_SYSTEM_HUNSPELL=1 texstudio.pro
cmake -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr .
%endif
%endif
%if 0%{?fedora}
%if 0%{?fedora_version} > 36
# qmake6 CONFIG-=debug USE_SYSTEM_HUNSPELL=1 USE_SYSTEM_QUAZIP=1 texstudio.pro
cmake .
cmake -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr .
%else
# qmake-qt5 CONFIG-=debug USE_SYSTEM_HUNSPELL=1 texstudio.pro
cmake -DCMAKE_INSTALL_PREFIX=%{buildroot}/usr .
%endif
%endif
make %{?_smp_mflags}
%install
cmake --build . --target install
%files
%defattr(-,root,root,-)
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%dir %{_datadir}/texstudio/_static
%dir %{_datadir}/texstudio/_images
%dir %{_datadir}/texstudio/_sphinx_design_static
%{_datadir}/texstudio/
%{_datadir}/texstudio/qt_*.qm
%{_datadir}/texstudio/template_*.*
%{_datadir}/texstudio/tabletemplate_*.*
%{_datadir}/texstudio/texstudio_*.qm
%{_bindir}/texstudio
%{_datadir}/applications/texstudio.desktop
%{_datadir}/metainfo/texstudio.metainfo.xml
%{_datadir}/icons/hicolor/scalable/apps/texstudio.svg
%{_datadir}/texstudio/AUTHORS
%{_datadir}/texstudio/COPYING
%{_datadir}/texstudio/*.html
%{_datadir}/texstudio/*.png
%{_datadir}/texstudio/de_DE.aff
%{_datadir}/texstudio/de_DE.dic
%{_datadir}/texstudio/en_GB.aff
%{_datadir}/texstudio/en_GB.dic
%{_datadir}/texstudio/en_US.aff
%{_datadir}/texstudio/en_US.dic
%{_datadir}/texstudio/fr_FR.aff
%{_datadir}/texstudio/fr_FR.dic
%{_datadir}/texstudio/th_de_DE_v2.dat
%{_datadir}/texstudio/th_en_US_v2.dat
%{_datadir}/texstudio/th_fr_FR_v2.dat
%{_datadir}/texstudio/_static/*
%{_datadir}/texstudio/_images/*
%{_datadir}/texstudio/_sphinx_design_static/*
%changelog