File liblxqt.spec of Package liblxqt
#
# spec file for package liblxqt
#
# Copyright (c) 2019 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _ver 0
Name: liblxqt
Version: 0.14.1
Release: 0
Summary: Core utility library for lxqt
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://lxqt.org
Source: https://downloads.lxqt.org/downloads/%{name}/%{version}/%{name}-%{version}.tar.xz
Source1: https://downloads.lxqt.org/downloads/%{name}/%{version}/%{name}-%{version}.tar.xz.asc
Source2: %{name}.keyring
Source3: %{name}-rpmlintrc
BuildRequires: cmake >= 3.1.0
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: lxqt-build-tools >= 0.6.0
BuildRequires: pkgconfig
BuildRequires: cmake(KF5WindowSystem) >= 5.36.0
BuildRequires: pkgconfig(Qt5DBus) >= 5.7.1
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(Qt5Xdg) >= 3.3.1
BuildRequires: pkgconfig(polkit-qt5-1)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xscrnsaver)
Obsoletes: %{name}-qt5 < %{version}
Provides: %{name}-qt5 = %{version}
%description
Core utility library for all lxqt 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}
Requires: pkgconfig
Requires: pkgconfig(Qt5Xdg)
%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
%setup -q
%build
%cmake
make %{?_smp_mflags}
%install
%cmake_install
%find_lang %{name} --with-qt
%post -n %{name}%{_ver} -p /sbin/ldconfig
%postun -n %{name}%{_ver} -p /sbin/ldconfig
%files -n %{name}%{_ver}
%license COPYING
%doc AUTHORS
%{_libdir}/%{name}.so.0
%{_libdir}/%{name}.so.0.*
%dir %{_datadir}/lxqt
%{_datadir}/lxqt/power.conf
%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}
%changelog