File qtermwidget.spec of Package qtermwidget

#
# spec file for package qtermwidget
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.

# 
Name:           qtermwidget
Version:        0~git20240328.61d02ae
Release:        0
Summary:        Qt Terminal Widget 
License:        GPL-2.0-or-later
URL:            https://github.com/qterminal/qtermwidget
Source:         qtermwidget-%{version}.tar.xz
BuildRequires:  cmake >= 3.5.0
BuildRequires:  utf8proc-devel
BuildRequires:  cmake(lxqt2-build-tools)
BuildRequires:  cmake(Qt6Core5Compat)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  cmake(Qt6Widgets)

%description
QTermWidget is a project based on the KDE4
Konsole application whose goal is to provide a Unicode-
enabled, embeddable Qt widget to be used as a built-in console (or
terminal emulation widget). Though Konsole is able of getting embedded,
it is possible to have Qt without KDE. The original
Konsole code was rewritten entirely with using Qt only, and all
code dealing with user interface parts and session management was
removed.


%package -n lib%{name}1
Summary:        Qt Terminal Widget 
Requires:       %{name}-data >= %{version}

%description -n lib%{name}1
QTermWidget is a project based on the KDE4 
Konsole application whose goal is to provide a Unicode-
enabled, embeddable Qt widget to be used as a built-in console (or
terminal emulation widget). Though Konsole is able of getting embedded,
it is possible to have Qt without KDE. The original 
Konsole code was rewritten entirely with using Qt only, and all
code dealing with user interface parts and session management was
removed.


%package data
Summary:        QTermWidget data package
Requires:       lib%{name}1 = %{version}
BuildArch:      noarch

%description data
Data files for qtermwidget library.

%package devel
Summary:        QTermWidget devel package
Requires:       lib%{name}1 = %{version}

%description devel
Development environment for qtermwidget library.

%prep
%autosetup -p1

%build
%cmake_qt6
%{qt6_build}

%install
%{qt6_install}

%ldconfig_scriptlets -n lib%{name}1

%check

%files -n lib%{name}1
%license LICENSE
%doc AUTHORS CHANGELOG README.md
%{_qt6_libdir}/lib%{name}*.so.*

%files data
%{_datadir}/%{name}6

%files devel
%{_includedir}/%{name}6
%{_qt6_libdir}/lib%{name}*.so
%{_qt6_pkgconfigdir}/*.pc
%{_qt6_cmakedir}/%{name}6/

%changelog
openSUSE Build Service is sponsored by