Name: texstudio Version: 2.9.0 Release: 1%{?dist} Summary: A feature-rich editor for LaTeX documents Group: Applications/Publishing # texstudio binary: GPLv3 due to static linkage of bundled qcodeedit # texstudio data and image files: GPLv2+ License: GPLv2+ and GPLv3 URL: http://texstudio.sourceforge.net Source0: http://downloads.sourceforge.net/texstudio/texstudio-%{version}.tar.gz Source1: texstudio.desktop Patch0: texstudio-use-system-hunspell-instead-of-bundled-one.patch Patch1: texstudio-use-system-qtsingleapplication-instead-of-bundled-on.patch Patch2: texstudio-viewers-use-xdg-open.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: qt4-devel BuildRequires: hunspell-devel BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: poppler-qt4-devel BuildRequires: qtsingleapplication-devel BuildRequires: qtsinglecoreapplication-devel Requires: tex(latex) Provides: bundled(qcodeedit) Provides: texmakerx = %{version}-%{release} Obsoletes: texmakerx < 2.2-1 %description TeXstudio, formerly known as TexmakerX is a fork of the LaTeX IDE TexMaker and gives you an environment where you can easily create and manage LaTeX documents. It provides modern writing support, like interactive spell checking, code folding and syntax highlighting. Also it serves as a starting point from where you can easily run all necessary LaTeX tools. Although TeXstudio has a lot of additional features, it tries to be like an improved version of Texmaker, so it keeps it look&feel. %prep %setup -q -n %{name}%{version} %patch0 -p1 -b .hunspell %patch1 -p1 -b .qtsingle %patch2 -p1 -b .xdg rm -rf {hunspell,qtsingleapplication} %build export QTDIR=%{_libdir}/qt4 qmake-qt4 CONFIG-=debug \ %ifnarch %{ix86} x86_64 %{arm} NO_CRASH_HANDLER=1 \ %endif texstudio.pro make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install INSTALL_ROOT=$RPM_BUILD_ROOT 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} %clean rm -rf $RPM_BUILD_ROOT %post update-desktop-database &> /dev/null ||: touch --no-create %{_datadir}/icons/hicolor %postun update-desktop-database &> /dev/null ||: if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null ||: fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null ||: %files -f %{name}.lang %defattr(-,root,root,-) %{_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.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}/appdata/texstudio.appdata.xml %{_datadir}/icons/hicolor/*/apps/*.png %{_datadir}/icons/hicolor/*/apps/*.svg %doc utilities/AUTHORS utilities/COPYING utilities/CHANGELOG.txt %changelog * Mon Mar 23 2015 Johannes Lips 2.9.2-1 - Update to latest upstream version 2.9.2 * Mon Mar 09 2015 Johannes Lips 2.9.0-1 - Update to latest upstream version 2.9.0 - changelog cleaned up * Sun Dec 07 2014 Johannes Lips 2.8.8-1 - Update to latest upstream version 2.8.8 * Tue Nov 04 2014 Johannes Lips 2.8.6-1 - Update to latest upstream version 2.8.6 * Tue Sep 09 2014 Johannes Lips 2.8.4-1 - Update to latest upstream version 2.8.4 * Mon Aug 18 2014 Fedora Release Engineering - 2.8.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jul 26 2014 Johannes Lips 2.8.2-1 - Update to latest upstream version 2.8.2 * Fri Jun 20 2014 Johannes Lips 2.8.0-1 - Update to latest upstream version 2.8.0 * Sun Jun 08 2014 Fedora Release Engineering - 2.7.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Mar 19 2014 Johannes Lips 2.7.0-1 - Update to latest upstream version 2.7.0 * Sun Nov 03 2013 Johannes Lips 2.6.6-1 - Update to latest upstream version 2.6.6 * Sat Nov 02 2013 Johannes Lips 2.6.4-1 - Update to latest upstream version 2.6.4 * Sun Aug 04 2013 Fedora Release Engineering - 2.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Tue Jul 16 2013 Johannes Lips 2.6.2-1 - Update to latest upstream version 2.6.2 * Sun Jun 16 2013 Johannes Lips 2.6.0-1 - Update to latest upstream version 2.6.0 * Fri Feb 15 2013 Fedora Release Engineering - 2.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Fri Jan 11 2013 Johannes Lips 2.5.2-1 - update to recent upstream version * Thu Nov 22 2012 Johannes Lips 2.5.1-1 - update to recent upstream version * Mon Oct 29 2012 Dan HorĂ¡k 2.5-2 - disable internal crash handler on not supported arches * Sat Oct 27 2012 Johannes Lips 2.5-1 - update to recent upstream version * Sat Feb 18 2012 Johannes Lips 2.3-2 - disabled the build of debug files