texstudio/texstudio.spec

75 lines
2.0 KiB
RPMSpec

Name: texstudio
Version: 4.4.0
Release: 1mamba
Summary: A fully featured LaTeX editor
Group: Graphical Desktop/Applications/Publishing
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.texstudio.org/
Source: https://github.com/texstudio-org/texstudio.git/%{version}/texstudio-%{version}.tar.bz2
Patch0: texstudio-4.3.1-fs54269.patch
Patch1: texstudio-4.3.1-fs72345.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libhunspell-devel
BuildRequires: libpoppler-cpp-devel
BuildRequires: libpoppler-qt6-devel
BuildRequires: libquazip-qt6-devel
BuildRequires: libstdc++6-devel
BuildRequires: libz-devel
BuildRequires: qt6-qt5compat-devel
BuildRequires: qt6-qtbase-devel
BuildRequires: qt6-qtdeclarative-devel
BuildRequires: qt6-qtsvg-devel
BuildRequires: qt6-qttools-devel
## AUTOBUILDREQ-END
Requires: texlive-latex
%description
A fully featured LaTeX editor.
%debug_package
%prep
%setup -q
cd src
%patch0 -p1 -b .fs54269
%patch1 -p1 -b .fs72345
cd ..
%build
qmake-qt6 CONFIG-="debug" USE_SYSTEM_QUAZIP=1 USE_SYSTEM_HUNSPELL=1 QUAZIP_LIB=-lquazip1-qt6 \
QUAZIP_INCLUDE="%{_includedir}/QuaZip-Qt6-1.3/quazip" texstudio.pro
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall INSTALL_ROOT=%{buildroot} STRIP=/bin/true
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/texstudio
%{_datadir}/applications/texstudio.desktop
%{_datadir}/icons/hicolor/scalable/apps/texstudio.svg
%{_datadir}/metainfo/texstudio.metainfo.xml
%dir %{_datadir}/texstudio
%{_datadir}/texstudio/*
%doc COPYING
%changelog
* Sun Nov 20 2022 Automatic Build System <autodist@mambasoft.it> 4.4.0-1mamba
- automatic version update by autodist
* Thu Sep 01 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.3.1-1mamba
- package created using the webbuild interface