Accepting request 1136664 from home:AndreasStieger:branches:X11:LXQt

fix build

OBS-URL: https://build.opensuse.org/request/show/1136664
OBS-URL: https://build.opensuse.org/package/show/X11:LXQt/qterminal?expand=0&rev=40
This commit is contained in:
Shawn Dunn 2024-01-03 21:22:54 +00:00 committed by Git OBS Bridge
parent 660cff3a40
commit 68eb548592
2 changed files with 23 additions and 16 deletions

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Wed Jan 3 20:09:16 UTC 2024 - Andreas Stieger <andreas.stieger@gmx.de>
- fix Tumbleweed build (ownership of /usr/share/icons/hicolor/64x64)
- fix license (bundled libqxt is BSD)
- remove unneeded binaries
- run tests
-------------------------------------------------------------------
Mon Nov 6 02:57:52 UTC 2023 - Shawn Dunn <sfalken@opensuse.org>

View File

@ -1,7 +1,7 @@
#
# spec file for package qterminal
#
# Copyright (c) 2023 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,28 +20,24 @@ Name: qterminal
Version: 1.4.0
Release: 0
Summary: A Qt-based terminal emulator
License: GPL-2.0-only
License: BSD-3-Clause AND GPL-2.0-or-later
Group: System/X11/Terminals
URL: https://github.com/lxqt/qterminal
Source: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1: https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring
BuildRequires: c++_compiler
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: lxqt-build-tools-devel >= 0.13.0
BuildRequires: pkgconfig
BuildRequires: qtermwidget-qt5-devel >= %{version}
BuildRequires: utf8proc-devel
BuildRequires: cmake(KF5WindowSystem)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: cmake(Qt5Test)
BuildRequires: pkgconfig(Qt5Core) >= 5.15.0
BuildRequires: cmake(qtermwidget5) >= %{version}
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Gui) >= 5.15.0
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(lxqt)
BuildRequires: pkgconfig(libcanberra)
Recommends: %{name}-lang
%description
@ -50,30 +46,33 @@ The lightweight Qt terminal emulator.
%lang_package
%prep
%setup -q
%autosetup -p1
%build
%cmake \
-DUSE_QT5=ON \
-DUSE_SYSTEM_QXT=OFF \
-DPULL_TRANSLATIONS=No
%cmake
%cmake_build
%install
%cmake_install
%find_lang %{name} --with-qt
%check
%ctest
%files
%license LICENSE
%doc AUTHORS README.md CONTRIBUTING*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-drop.desktop
%dir %{_datadir}/icons/hicolor/64x64
%dir %{_datadir}/icons/hicolor/64x64/apps
%{_datadir}/icons/hicolor/64x64/apps/qterminal.png
%{_datadir}/metainfo/qterminal.metainfo.xml
%{_datadir}/qterminal/qterminal_bookmarks_example.xml
%files lang -f %{name}.lang
%license LICENSE
%dir %{_datadir}/qterminal
%{_datadir}/qterminal/translations