File qterminal.spec of Package qterminal
#
# spec file for package qterminal
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: qterminal
Version: @SERVICE@
Release: 0
Summary: A Qt-based terminal emulator
License: GPL-2.0-only
Group: System/X11/Terminals
URL: https://github.com/lxqt/qterminal
Source0: %{name}-%{version}.tar.xz
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: cmake(LayerShellQt) >= 6.0.0
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6Test)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(lxqt2-build-tools)
BuildRequires: cmake(qtermwidget6)
Recommends: %{name}-lang = %{version}-%{release}
Provides: %{name}6
%description
The lightweight Qt terminal emulator.
%lang_package
%prep
%autosetup
sed -i '/default_font\.setPointSize/s/12/11/' src/properties.cpp
sed -i '/tabsPos = qBound/s/0)/1)/' src/properties.cpp
sed -i '/FixedTabWidth/s/true/false/' src/properties.cpp
sed -i 's/600/960/;s/420/540/' src/forms/qterminal.ui
%build
%cmake_qt6 \
-DBUILD_TESTS=ON \
-DUPDATE_TRANSLATIONS=ON
%{qt6_build}
%install
%{qt6_install}
%check
%ctest
%find_lang %{name} --with-qt
%files
%doc AUTHORS README.md CONTRIBUTING*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-drop.desktop
%dir %{_datadir}/metainfo
%{_datadir}/metainfo/%{name}.metainfo.xml
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}_bookmarks_example.xml
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%license LICENSE
%files lang -f %{name}.lang
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/translations
%if 0%{?sle_version}
%{_datadir}/%{name}/translations/%{name}_???.qm
%endif
%changelog