File texstudio.spec of Package texstudio-2.12.22

#
# 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:        2.12.22
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}
%if 0%{?suse_version}>1310
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  libqt5-qtsvg-devel
BuildRequires:  libqt5-qtscript-devel
BuildRequires:  libqt5-qttools-devel
BuildRequires:  libpoppler-qt5-devel
Requires: libQt5Svg5
%endif

%if 0%{?suse_version}<1320
BuildRequires:  libqt4-devel 
BuildRequires:  libpoppler-qt4-devel 
%endif
%endif

%if 0%{?fedora} || 0%{?rhel_version} || 0%{?scientificlinux_version}
BuildRequires:  gcc-c++
BuildRequires:  qt5-qtbase-devel
BuildRequires:  qt5-qtsvg-devel
BuildRequires:  qt5-qtscript-devel
BuildRequires:  qt5-qttools-devel
BuildRequires:  qt5-qttools-static
BuildRequires:  poppler-qt5-devel
%endif

%if 0%{?centos_version}
BuildRequires:  gcc-c++
BuildRequires:  qt5-qtbase-devel
BuildRequires:  qt5-qtsvg-devel
BuildRequires:  qt5-qtscript-devel
BuildRequires:  clang-libs
BuildRequires:  poppler-qt5-devel
%endif

%if 0%{?mageia}
BuildRequires:  libproxy-webkit
BuildRequires:  libopenssl-devel
BuildRequires:  libqt5base5-devel
BuildRequires:  libqt5svg-devel
BuildRequires:  libqt5script-devel
BuildRequires:  libqt5scripttools-devel
BuildRequires:  libpoppler-qt5-devel
Requires: libQt5Svg5
%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}>1310
qmake-qt5 CONFIG-=debug NO_APPDATA=1 texstudio.pro
%else
qmake CONFIG-=debug NO_APPDATA=1 texstudio.pro
%endif
%endif
%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version} || 0%{?mandriva_version} || 0%{?scientificlinux_version}
qmake-qt5 CONFIG-=debug texstudio.pro
%endif

make %{?_smp_mflags}

%install
make INSTALL_ROOT=%{buildroot} install
 
%files
%defattr(-,root,root,-)
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/texstudio/
%{_datadir}/texstudio/qt_*.qm
%{_datadir}/texstudio/template.png
%{_datadir}/texstudio/template_*.*
%{_datadir}/texstudio/tabletemplate_*.*
%{_datadir}/texstudio/texstudio_*.qm
%{_bindir}/texstudio
%{_datadir}/applications/texstudio.desktop
%if 0%{?suse_version}
%else
%{_datadir}/appdata/texstudio.appdata.xml
%endif
%{_datadir}/icons/hicolor/scalable/apps/texstudio.svg
%{_datadir}/texstudio/AUTHORS
%{_datadir}/texstudio/CHANGELOG.txt
%{_datadir}/texstudio/COPYING
%{_datadir}/texstudio/block_selection.png
%{_datadir}/texstudio/usermanual_en.html
%{_datadir}/texstudio/configure_build.png
%{_datadir}/texstudio/configure_completion.png
%{_datadir}/texstudio/configure_customToolbar.png
%{_datadir}/texstudio/configure_customizeMenu.png
%{_datadir}/texstudio/configure_editor.png
%{_datadir}/texstudio/configure_general.png
%{_datadir}/texstudio/configure_shortcuts.png
%{_datadir}/texstudio/configure_svn.png
%{_datadir}/texstudio/compile_toolbar.png
%{_datadir}/texstudio/template.png
%{_datadir}/texstudio/thesaurus.png
%{_datadir}/texstudio/latex2e.html
%{_datadir}/texstudio/latex2e.css
%{_datadir}/texstudio/spellcheck_menu.png
%{_datadir}/texstudio/wizard_figure.png
%{_datadir}/texstudio/de_DE.aff
%{_datadir}/texstudio/de_DE.dic
%{_datadir}/texstudio/doc*.png
%{_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/texstudio128x128.png
%{_datadir}/texstudio/texstudio16x16.png
%{_datadir}/texstudio/texstudio22x22.png
%{_datadir}/texstudio/texstudio32x32.png
%{_datadir}/texstudio/texstudio48x48.png
%{_datadir}/texstudio/texstudio64x64.png
%{_datadir}/texstudio/th_de_DE_v2.dat
%{_datadir}/texstudio/th_en_US_v2.dat
%{_datadir}/texstudio/th_fr_FR_v2.dat
%{_datadir}/texstudio/thesaurus.png
%{_datadir}/texstudio/usermanual_en.html
%{_datadir}/texstudio/usermanual.css
 
%changelog
openSUSE Build Service is sponsored by