Name: texstudio Version: 4.0.0 Release: 2%{?dist} Summary: A feature-rich editor for LaTeX documents # texstudio binary: GPLv3 due to static linkage of bundled qcodeedit # texstudio data and image files: GPLv2+ License: GPLv2+ and GPLv3 URL: https://www.texstudio.org Source0: https://github.com/texstudio-org/texstudio#/archive/%{name}-%{version}.tar.gz Source1: texstudio.desktop Patch1: texstudio-use-system-qtsingleapplication-instead-of-bundled-on.patch Patch2: texstudio-disable-update-check.patch # don't muck with default build flags Patch3: texstudio-wtf_flags.patch BuildRequires: make BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtdeclarative-devel BuildRequires: qt5-qttools-devel BuildRequires: qt5-qttools-static BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-qtscript-devel BuildRequires: hunspell-devel BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: poppler-devel BuildRequires: poppler-qt5-devel BuildRequires: poppler-cpp-devel BuildRequires: qtsingleapplication-devel BuildRequires: qtsingleapplication-qt5-devel BuildRequires: qtsinglecoreapplication-devel BuildRequires: qtsinglecoreapplication-qt5-devel BuildRequires: qtermwidget-devel BuildRequires: quazip-qt5-devel BuildRequires: zlib-devel Requires: tex(latex) Requires: tex(preview.sty) Requires: tex-dvipng Requires: qt5-qtsvg Requires: qtermwidget Provides: bundled(qcodeedit) Provides: texmakerx = %{version}-%{release} Obsoletes: texmakerx < 2.2-1 %description TeXstudio gives you an environment where you can easily create and manage LaTeX documents. It provides modern writing support, like interactive spell checking, code folding, syntax highlighting, integrated pdf viewer and various assistants. Also it serves as a starting point from where you can easily run all necessary LaTeX tools. %prep %setup -q -n %{name}-%{version} %patch1 -p1 -b .qtsingle %patch2 -p1 -b .update_check %patch3 -p1 -b .wtf_flags rm -rf {hunspell,qtsingleapplication,quazip} %build mkdir %{_target_platform} pushd %{_target_platform} %{qmake_qt5} \ %ifnarch %{ix86} x86_64 %{arm} NO_CRASH_HANDLER=1 \ %endif USE_SYSTEM_HUNSPELL=1 \ USE_SYSTEM_QTSINGLEAPPLICATION=1 \ INTERNAL_TERMINAL=1 \ USE_SYSTEM_QUAZIP=1 QUAZIP_LIB=-lquazip5 QUAZIP_INCLUDE=%{_includedir}/quazip5/ \ ../texstudio.pro popd make %{?_smp_mflags} -C %{_target_platform} %install make install INSTALL_ROOT=$RPM_BUILD_ROOT -C %{_target_platform} install -Dp -m 0644 utilities/texstudio16x16.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/16x16/apps/texstudio.png install -Dp -m 0644 utilities/texstudio22x22.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/22x22/apps/texstudio.png install -Dp -m 0644 utilities/texstudio32x32.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/texstudio.png install -Dp -m 0644 utilities/texstudio48x48.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/texstudio.png install -Dp -m 0644 utilities/texstudio64x64.png \ $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/46x46/apps/texstudio.png rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{AUTHORS,COPYING,*.desktop,tex*.png,CHANGELOG.txt} rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/{*.dic,*.aff} rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/qt_*.qm %find_lang %{name} --with-qt mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/ desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1} %files -f %{name}.lang %{_bindir}/texstudio %dir %{_datadir}/texstudio/ %{_datadir}/texstudio/*.png %{_datadir}/texstudio/usermanual.css %{_datadir}/texstudio/latex2e.* %{_datadir}/texstudio/*.stopWords %{_datadir}/texstudio/*.stopWords.level2 %{_datadir}/texstudio/de_DE.badWords %{_datadir}/texstudio/template_*.tex %{_datadir}/texstudio/template_*.zip %{_datadir}/texstudio/*.json %{_datadir}/texstudio/*.js %{_datadir}/texstudio/th_*.dat %{_datadir}/texstudio/usermanual_*.html %{_datadir}/applications/texstudio.desktop %{_datadir}/metainfo/texstudio.appdata.xml %{_datadir}/icons/hicolor/*/apps/*.png %{_datadir}/icons/hicolor/*/apps/*.svg %doc utilities/AUTHORS utilities/COPYING utilities/manual/CHANGELOG.txt %changelog * Wed Sep 29 2021 Christian Dersch - 4.0.0-2 - Use quazip-qt5, fix include and linker variables for quazip5 * Sun Sep 26 2021 Johannes Lips 4.0.0-1 - Update to latest upstream release 4.0.0 * Thu Aug 19 2021 Björn Esser - 3.1.2-3 - Rebuild (quazip) * Fri Jul 23 2021 Fedora Release Engineering - 3.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Thu May 20 2021 Johannes Lips 3.1.2-1 - Update to latest upstream release 3.1.2 * Mon Feb 22 2021 Johannes Lips 3.1.1-1 - Update to latest upstream release 3.1.1 * Wed Feb 17 2021 Johannes Lips 3.1.0-1 - Update to latest upstream release 3.1.0 * Tue Feb 16 2021 Johannes Lips 3.0.5-1 - Update to latest upstream release 3.0.5 * Wed Jan 27 2021 Fedora Release Engineering - 3.0.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Sun Jan 03 2021 Johannes Lips 3.0.4-2 - fixed runtime requirements for internal terminal * Sat Jan 02 2021 Johannes Lips 3.0.4-1 - Update to latest upstream release 3.0.4 * Sun Sep 06 2020 Johannes Lips 3.0.1-2 - enabled internal terminal * Wed Sep 02 2020 Johannes Lips 3.0.1-1 - Update to latest upstream release 3.0.1 * Tue Aug 25 2020 Johannes Lips 3.0.0-1 - Update to latest upstream release 3.0.0 * Wed Jul 29 2020 Fedora Release Engineering - 2.12.22-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Fri Jan 31 2020 Fedora Release Engineering - 2.12.22-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Sat Jan 18 2020 Johannes Lips 2.12.22-1 - Update to latest upstream bugfix release 2.12.22 * Fri Jan 17 2020 Marek Kasik 2.12.20-2 - Rebuild for poppler-0.84.0 * Tue Jan 14 2020 Johannes Lips 2.12.20-1 - Update to latest upstream bugfix release 2.12.20 * Thu Dec 26 2019 Johannes Lips 2.12.18-1 - Update to latest upstream bugfix release 2.12.18 * Sat Jul 27 2019 Fedora Release Engineering - 2.12.16-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sun May 19 2019 Johannes Lips 2.12.16-1 - Update to latest upstream bugfix release 2.12.16 - added qt5-qtsvg as requires to fix bug #1716129 * Sun Feb 03 2019 Fedora Release Engineering - 2.12.14-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Mon Dec 03 2018 Johannes Lips 2.12.14-1 - Update to latest upstream bugfix release 2.12.14 * Mon Nov 26 2018 Johannes Lips 2.12.12-1 - Update to latest upstream bugfix release 2.12.12 * Sat Jul 14 2018 Fedora Release Engineering - 2.12.10-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Jul 11 2018 Johannes Lips 2.12.10-1 - Update to latest upstream bugfix release 2.12.10 * Thu May 17 2018 Johannes Lips 2.12.8-7 - fixing the texlive dependencies * Thu May 17 2018 Johannes Lips 2.12.8-6 - fixing the texlive dependencies * Wed May 16 2018 Johannes Lips 2.12.8-5 - fixing the texlive dependencies * Wed May 02 2018 Johannes Lips 2.12.8-4 - rebuild for f28 tag * Fri Mar 23 2018 Marek Kasik 2.12.8-3 - Rebuild for poppler-0.63.0 * Tue Feb 20 2018 Johannes Lips 2.12.8-2 - added missing deps for bug #1540362 * Sun Feb 11 2018 Johannes Lips 2.12.8-1 - Update to latest upstream bugfix release 2.12.8 * Fri Feb 09 2018 Fedora Release Engineering - 2.12.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Thu Jan 18 2018 Igor Gnatenko - 2.12.6-3 - Remove obsolete scriptlets * Thu Aug 03 2017 Fedora Release Engineering - 2.12.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Johannes Lips 2.12.6-1 - Update to latest upstream bugfix release 2.12.6 * Mon May 15 2017 Fedora Release Engineering - 2.12.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild * Tue Mar 28 2017 Johannes Lips 2.12.4-1 - Update to latest upstream bugfix release 2.12.4 * Sat Feb 11 2017 Fedora Release Engineering - 2.12.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Jan 25 2017 Johannes Lips 2.12.2-1 - Update to latest upstream bugfix release 2.12.2 * Fri Jan 20 2017 Christian Dersch - 2.12.0-2 - Added patch to fix command detection * Sat Jan 07 2017 Johannes Lips 2.12.0-1 - Update to latest upstream bugfix release 2.12.0 * Tue Dec 13 2016 Caolán McNamara - 2.11.2-4 - rebuild for hunspell 1.5.4 * Thu Dec 08 2016 Christian Dersch - 2.11.2-3 - rebuilt against qt5-qtbase-5.7.1-9 fixing issues with QT_VERSION macros * Thu Dec 08 2016 Rex Dieter - 2.11.2-2 - support out-of-tree builds - set USE_SYSTEM_HUNSPELL USE_SYSTEM_QUAZIP USE_SYSTEM_QTSINGLEAPPLICATION * Wed Oct 12 2016 Johannes Lips 2.11.2-1 - Update to latest upstream bugfix release 2.11.2