texstudio/texstudio.spec

207 lines
7.3 KiB
RPMSpec
Raw Normal View History

2011-08-13 16:45:40 +00:00
Name: texstudio
2022-01-28 16:43:56 +00:00
Version: 4.2.1
2022-01-14 00:40:02 +00:00
Release: 1%{?dist}
2011-08-13 16:45:40 +00:00
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
2018-02-11 06:54:33 +00:00
URL: https://www.texstudio.org
2011-08-13 16:45:40 +00:00
2018-02-20 12:04:19 +00:00
Source0: https://github.com/texstudio-org/texstudio#/archive/%{name}-%{version}.tar.gz
2011-08-13 16:45:40 +00:00
Source1: texstudio.desktop
2019-06-07 15:53:30 +00:00
Patch1: texstudio-use-system-qtsingleapplication-instead-of-bundled-on.patch
2020-08-25 19:36:32 +00:00
Patch2: texstudio-disable-update-check.patch
# don't muck with default build flags
2020-08-25 19:36:32 +00:00
Patch3: texstudio-wtf_flags.patch
2011-08-13 16:45:40 +00:00
BuildRequires: make
2015-04-25 16:29:29 +00:00
BuildRequires: qt5-qtbase-devel
2021-09-27 05:50:13 +00:00
BuildRequires: qt5-qtdeclarative-devel
2015-04-25 16:29:29 +00:00
BuildRequires: qt5-qttools-devel
BuildRequires: qt5-qttools-static
BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qtscript-devel
2011-08-13 16:45:40 +00:00
BuildRequires: hunspell-devel
BuildRequires: desktop-file-utils
BuildRequires: gettext
2021-09-27 05:50:13 +00:00
BuildRequires: poppler-devel
2015-04-25 16:29:29 +00:00
BuildRequires: poppler-qt5-devel
2021-09-27 05:50:13 +00:00
BuildRequires: poppler-cpp-devel
BuildRequires: qtsingleapplication-devel
2015-05-24 07:51:20 +00:00
BuildRequires: qtsingleapplication-qt5-devel
2021-09-27 05:50:13 +00:00
BuildRequires: qtsinglecoreapplication-devel
2015-05-24 07:51:20 +00:00
BuildRequires: qtsinglecoreapplication-qt5-devel
2020-09-06 05:48:11 +00:00
BuildRequires: qtermwidget-devel
BuildRequires: quazip-qt5-devel
2015-05-24 07:51:20 +00:00
BuildRequires: zlib-devel
2011-08-13 16:45:40 +00:00
Requires: tex(latex)
2018-05-17 05:47:19 +00:00
Requires: tex(preview.sty)
2018-05-17 05:30:25 +00:00
Requires: tex-dvipng
2019-06-07 15:53:30 +00:00
Requires: qt5-qtsvg
Requires: qtermwidget
2011-08-13 16:45:40 +00:00
Provides: bundled(qcodeedit)
Provides: texmakerx = %{version}-%{release}
Obsoletes: texmakerx < 2.2-1
%description
2021-02-22 18:52:46 +00:00
TeXstudio gives you an environment where you can
2011-08-13 16:45:40 +00:00
easily create and manage LaTeX documents.
It provides modern writing support, like interactive spell checking,
2021-02-22 18:52:46 +00:00
code folding, syntax highlighting, integrated pdf viewer
and various assistants.
2011-08-13 16:45:40 +00:00
Also it serves as a starting point from where you can easily run
all necessary LaTeX tools.
%prep
2017-07-26 04:48:55 +00:00
%setup -q -n %{name}-%{version}
2015-10-27 06:09:40 +00:00
%patch1 -p1 -b .qtsingle
2020-08-25 19:36:32 +00:00
%patch2 -p1 -b .update_check
%patch3 -p1 -b .wtf_flags
2012-09-09 09:47:39 +00:00
rm -rf {hunspell,qtsingleapplication,quazip}
2011-08-13 16:45:40 +00:00
%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 \
2020-09-06 05:48:11 +00:00
INTERNAL_TERMINAL=1 \
USE_SYSTEM_QUAZIP=1 QUAZIP_LIB=-lquazip5 QUAZIP_INCLUDE=%{_includedir}/quazip5/ \
../texstudio.pro
popd
make %{?_smp_mflags} -C %{_target_platform}
2011-08-13 16:45:40 +00:00
%install
make install INSTALL_ROOT=$RPM_BUILD_ROOT -C %{_target_platform}
2011-08-13 16:45:40 +00:00
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/
2012-09-09 09:26:25 +00:00
%{_datadir}/texstudio/*.png
%{_datadir}/texstudio/usermanual.css
2014-03-22 18:10:08 +00:00
%{_datadir}/texstudio/latex2e.*
2012-09-09 09:26:25 +00:00
%{_datadir}/texstudio/*.stopWords
2012-10-27 09:01:55 +00:00
%{_datadir}/texstudio/*.stopWords.level2
2016-01-13 06:13:23 +00:00
%{_datadir}/texstudio/de_DE.badWords
2012-09-09 10:03:19 +00:00
%{_datadir}/texstudio/template_*.tex
2013-06-16 08:51:04 +00:00
%{_datadir}/texstudio/template_*.zip
2013-01-11 18:31:32 +00:00
%{_datadir}/texstudio/*.json
%{_datadir}/texstudio/*.js
2011-08-13 16:45:40 +00:00
%{_datadir}/texstudio/th_*.dat
%{_datadir}/texstudio/usermanual_*.html
%{_datadir}/applications/texstudio.desktop
2021-10-11 18:37:05 +00:00
%{_datadir}/metainfo/texstudio.metainfo.xml
2011-08-13 16:45:40 +00:00
%{_datadir}/icons/hicolor/*/apps/*.png
2014-07-26 15:36:14 +00:00
%{_datadir}/icons/hicolor/*/apps/*.svg
2011-08-13 16:45:40 +00:00
2015-09-11 17:13:25 +00:00
%doc utilities/AUTHORS utilities/COPYING utilities/manual/CHANGELOG.txt
2011-08-13 16:45:40 +00:00
%changelog
2022-01-28 16:43:56 +00:00
* Fri Jan 28 2022 Johannes Lips <hannes@fedoraproject.org> 4.2.1-1
- Update to latest upstream release 4.2.1
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2022-01-14 00:40:02 +00:00
* Fri Jan 14 2022 Johannes Lips <hannes@fedoraproject.org> 4.2.0-1
- Update to latest upstream release 4.2.0
* Mon Jan 03 2022 Ian McInerney <ian.s.mcinerney@ieee.org> 4.0.4-2
- Rebuild due to qtermwidget soname bump (fixes rhbz: 2036642)
2021-11-07 09:14:24 +00:00
* Sun Nov 07 2021 Johannes Lips <hannes@fedoraproject.org> 4.0.4-1
- Update to latest upstream release 4.0.4
2021-10-23 06:54:44 +00:00
* Sat Oct 23 2021 Johannes Lips <hannes@fedoraproject.org> 4.0.2-1
- Update to latest upstream release 4.0.2
2021-10-11 18:07:11 +00:00
* Mon Oct 11 2021 Johannes Lips <hannes@fedoraproject.org> 4.0.1-1
- Update to latest upstream release 4.0.1
* Wed Sep 29 2021 Christian Dersch <lupinix@mailbox.org> - 4.0.0-2
- Use quazip-qt5, fix include and linker variables for quazip5
2021-09-27 05:50:13 +00:00
* Sun Sep 26 2021 Johannes Lips <hannes@fedoraproject.org> 4.0.0-1
- Update to latest upstream release 4.0.0
* Thu Aug 19 2021 Björn Esser <besser82@fedoraproject.org> - 3.1.2-3
- Rebuild (quazip)
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2021-05-20 16:39:24 +00:00
* Thu May 20 2021 Johannes Lips <hannes@fedoraproject.org> 3.1.2-1
- Update to latest upstream release 3.1.2
2021-02-22 18:52:46 +00:00
* Mon Feb 22 2021 Johannes Lips <hannes@fedoraproject.org> 3.1.1-1
- Update to latest upstream release 3.1.1
2021-02-17 18:54:40 +00:00
* Wed Feb 17 2021 Johannes Lips <hannes@fedoraproject.org> 3.1.0-1
- Update to latest upstream release 3.1.0
2021-02-16 17:44:37 +00:00
* Tue Feb 16 2021 Johannes Lips <hannes@fedoraproject.org> 3.0.5-1
- Update to latest upstream release 3.0.5
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Sun Jan 03 2021 Johannes Lips <hannes@fedoraproject.org> 3.0.4-2
- fixed runtime requirements for internal terminal
2021-01-02 10:23:43 +00:00
* Sat Jan 02 2021 Johannes Lips <hannes@fedoraproject.org> 3.0.4-1
- Update to latest upstream release 3.0.4
2021-01-02 09:50:22 +00:00
2020-09-06 05:48:11 +00:00
* Sun Sep 06 2020 Johannes Lips <hannes@fedoraproject.org> 3.0.1-2
- enabled internal terminal
2020-09-02 05:54:18 +00:00
* Wed Sep 02 2020 Johannes Lips <hannes@fedoraproject.org> 3.0.1-1
- Update to latest upstream release 3.0.1
2020-08-25 19:36:32 +00:00
* Tue Aug 25 2020 Johannes Lips <hannes@fedoraproject.org> 3.0.0-1
- Update to latest upstream release 3.0.0
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.22-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.22-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2020-01-18 09:42:44 +00:00
* Sat Jan 18 2020 Johannes Lips <hannes@fedoraproject.org> 2.12.22-1
- Update to latest upstream bugfix release 2.12.22
2020-01-17 11:30:04 +00:00
* Fri Jan 17 2020 Marek Kasik <mkasik@redhat.com> 2.12.20-2
- Rebuild for poppler-0.84.0
2020-01-14 06:17:14 +00:00
* Tue Jan 14 2020 Johannes Lips <hannes@fedoraproject.org> 2.12.20-1
- Update to latest upstream bugfix release 2.12.20
2019-12-26 10:58:53 +00:00
* Thu Dec 26 2019 Johannes Lips <hannes@fedoraproject.org> 2.12.18-1
- Update to latest upstream bugfix release 2.12.18