Package texstudio: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | Group: Publishing # BEGIN SourceDeps(oneline): BuildRequires: /usr/bin/desktop-file-install gcc-c++ libX11-devel libqt4-devel pkgconfig(lcms2) pkgconfig(libopenjp2) pkgconfig(libtiff-4) qt5-phonon-devel # END SourceDeps(oneline) # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %define fontpkgname texstudio Name: texstudio Version: 4.4.0 Release: alt1 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: qt5-base-devel BuildRequires: qt5-tools qt5-tools-devel BuildRequires: qt5-tools-devel qt5-tools-devel-static BuildRequires: qt5-svg-devel BuildRequires: qt5-script-devel BuildRequires: hunspell-utils libhunspell-devel BuildRequires: desktop-file-utils BuildRequires: gettext gettext-tools BuildRequires: libpoppler-qt5-devel BuildRequires: libqtsingleapplication-qt5-devel BuildRequires: libqtermwidget-devel BuildRequires: quazip-qt5-devel BuildRequires: zlib-devel libpoppler-cpp-devel qt5-declarative-devel Requires: tex(latex) Requires: tex(preview.sty) Requires: texlive Requires: libqt5-svg libqt5-qml Requires: libqtermwidget Provides: bundled(qcodeedit) Provides: texmakerx = %{version}-%{release} Obsoletes: texmakerx < 2.2-1 Source44: import.info %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="`pkg-config --libs quazip1-qt5`" \ QUAZIP_INCLUDE="`pkg-config --cflags-only-I quazip1-qt5 | sed 's/-I//g'`" \ ../texstudio.pro popd %make_build -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/ %dir %{_datadir}/texstudio/_images/ %dir %{_datadir}/texstudio/_sphinx_design_static/ %dir %{_datadir}/texstudio/_static/ %{_datadir}/texstudio/_sphinx_design_static/* %{_datadir}/texstudio/_static/* %{_datadir}/texstudio/_images/* %{_datadir}/texstudio/*.png %{_datadir}/texstudio/*.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/*.html %{_datadir}/applications/texstudio.desktop %{_datadir}/metainfo/texstudio.metainfo.xml %{_datadir}/icons/hicolor/*/apps/*.png %{_datadir}/icons/hicolor/*/apps/*.svg %doc utilities/AUTHORS utilities/COPYING utilities/manual/CHANGELOG.txt %changelog * Wed Nov 23 2022 Ilya Mashkin <oddity@altlinux.ru> 4.4.0-alt1 - 4.4.0 - Change Group to Publishing * Mon Aug 29 2022 Ilya Mashkin <oddity@altlinux.ru> 4.3.1-alt1 - 4.3.1 * Tue Aug 09 2022 Ilya Mashkin <oddity@altlinux.ru> 4.3.0-alt1 - 4.3.0 * Tue Apr 19 2022 Ilya Mashkin <oddity@altlinux.ru> 4.2.3-alt1 - 4.2.3 * Mon Feb 21 2022 Ilya Mashkin <oddity@altlinux.ru> 4.2.2-alt1 - 4.2.2 * Fri Jan 28 2022 Ilya Mashkin <oddity@altlinux.ru> 4.2.1-alt1 - 4.2.1 * Fri Jan 14 2022 Ilya Mashkin <oddity@altlinux.ru> 4.2.0-alt1 - 4.2.0 * Sat Jan 01 2022 Anton Midyukov <antohami@altlinux.org> 4.1.2-alt2 - use pkgconfig for quazip PATH definitions * Thu Dec 09 2021 Ilya Mashkin <oddity@altlinux.ru> 4.1.2-alt1 - 4.1.2 * Mon Nov 22 2021 Ilya Mashkin <oddity@altlinux.ru> 4.1.1-alt1 - 4.1.1 * Sun Nov 07 2021 Ilya Mashkin <oddity@altlinux.ru> 4.0.4-alt1 - 4.0.4 * Mon Nov 01 2021 Ilya Mashkin <oddity@altlinux.ru> 4.0.3-alt1 - 4.0.3 * Sat Oct 23 2021 Ilya Mashkin <oddity@altlinux.ru> 4.0.2-alt1 - 4.0.2 * Wed Oct 13 2021 Ilya Mashkin <oddity@altlinux.ru> 4.0.1-alt1 - 4.0.1 * Tue Sep 28 2021 Ilya Mashkin <oddity@altlinux.ru> 4.0.0-alt1 - 4.0.0. * Sun Aug 01 2021 Ilya Mashkin <oddity@altlinux.ru> 3.1.2-alt2 - Build for Sisyphus, thanks for Igor Vlasenko - Build with bundled qtsingleapplication * Sun Jul 25 2021 Igor Vlasenko <viy@altlinux.org> 3.1.2-alt1_1 - new version |