From d1f413f038509dd34ac15eb0b4e33dcddef2306948c4d65e281f5c40ac6b847c Mon Sep 17 00:00:00 2001 From: Dmitry Roshchin Date: Fri, 25 Nov 2022 18:47:02 +0000 Subject: [PATCH] Accepting request 1038256 from home:Dmitry_R:branches:Publishing - Use cmake build system OBS-URL: https://build.opensuse.org/request/show/1038256 OBS-URL: https://build.opensuse.org/package/show/Publishing/texstudio?expand=0&rev=69 --- texstudio.changes | 5 +++++ texstudio.spec | 11 ++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/texstudio.changes b/texstudio.changes index 3e0d778..47ff707 100644 --- a/texstudio.changes +++ b/texstudio.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 25 18:30:04 UTC 2022 - Dmitry Roshchin + +- Use cmake build system + ------------------------------------------------------------------- Sat Nov 19 21:26:54 UTC 2022 - Markus Ebner - Update to version 4.4.0 diff --git a/texstudio.spec b/texstudio.spec index f14714d..63a7ac4 100644 --- a/texstudio.spec +++ b/texstudio.spec @@ -24,10 +24,12 @@ License: Apache-2.0 AND GPL-2.0-only AND GPL-3.0-only AND MPL-1.1 Group: Productivity/Publishing/TeX/Frontends URL: https://www.texstudio.org Source0: https://github.com/texstudio-org/texstudio/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: cmake BuildRequires: fdupes BuildRequires: hicolor-icon-theme BuildRequires: pkgconfig BuildRequires: pkgconfig(Qt5Concurrent) +BuildRequires: pkgconfig(Qt5DBus) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5PrintSupport) @@ -53,11 +55,14 @@ syntax highlighting, automatically code completion and more. %define crashhandler NO_CRASH_HANDLER=true %endif -%qmake5 CONFIG-=debug %{?crashhandler} texstudio.pro -%make_jobs +%cmake +%cmake_build %install -make INSTALL_ROOT=%{buildroot} install +%cmake_install + +mkdir -p %{buildroot}%{_datadir}/metainfo +cp utilities/texstudio.metainfo.xml %{buildroot}%{_datadir}/metainfo/texstudio.metainfo.xml rm -f %{buildroot}%{_datadir}/texstudio/{AUTHORS,COPYING,CHANGELOG.txt} %fdupes -s %{buildroot}%{_datadir}/texstudio/