File liblxqt.spec of Package liblxqt
#
# spec file for package liblxqt
#
# 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
# 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/
#
%define _ver 2
Name: liblxqt
Version: @SERVICE@
Release: 0
Summary: Core utility library for all LXQt components
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://github.com/lxqt/liblxqt
Source: %{name}-%{version}.tar.xz
BuildRequires: cmake >= 3.18.0
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: cmake(KF6WindowSystem)
BuildRequires: cmake(PolkitQt6-1)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: cmake(lxqt2-build-tools)
BuildRequires: pkgconfig(Qt6Xdg)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xscrnsaver)
%description
liblxqt represents the core library of LXQt providing essential
functionality needed by nearly all of its components.
%lang_package
%package -n %{name}%{_ver}
Summary: Libraries for lxqt
Group: System/Libraries
Recommends: %{name}-lang = %{version}-%{release}
Provides: %{name}
%description -n %{name}%{_ver}
Development libraries for lxqt
%package devel
Summary: Devel files for liblxqt
Group: Development/Libraries/C and C++
Requires: %{name}%{_ver} = %{version}
%description devel
LXQt libraries for development
%package -n lxqt-backlight
Summary: Change screen backlight
Group: System/X11/Utilities
%description -n lxqt-backlight
Tool in order to change screen backlight in Linux systems. It uses
/sys/class/backlight and Polkit.
%prep
%autosetup
%build
%cmake_qt6
%{qt6_build}
%install
%{qt6_install}
%find_lang %{name} --with-qt
%ldconfig_scriptlets -n %{name}%{_ver}
%files -n %{name}%{_ver}
%doc AUTHORS CHANGELOG README.md
%{_libdir}/%{name}.so.%{_ver}
%{_libdir}/%{name}.so.%{_ver}.*
%dir %{_datadir}/lxqt
%{_datadir}/lxqt/power.conf
%license COPYING
%files devel
%{_includedir}/lxqt/
%{_datadir}/cmake/lxqt/
%{_libdir}/pkgconfig/lxqt.pc
%{_libdir}/%{name}.so
%files -n lxqt-backlight
%{_bindir}/lxqt-backlight_backend
%dir %{_datadir}/polkit-1/
%dir %{_datadir}/polkit-1/actions/
%{_datadir}/polkit-1/actions/org.lxqt.backlight.pkexec.policy
%files lang -f %{name}.lang
%dir %{_datadir}/lxqt
%dir %{_datadir}/lxqt/translations
%dir %{_datadir}/lxqt/translations/%{name}
%if 0%{?sle_version}
%{_datadir}/lxqt/translations/%{name}/%{name}_???.qm
%endif
%changelog