File lxqt-panel.spec of Package lxqt-panel

#
# spec file for package lxqt-panel
#
# 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           lxqt-panel
Version:        1.4.0+git53.2ad883e
Release:        0
Summary:        Desktop Panel for LXQt
License:        GPL-2.0-or-later
Group:          System/GUI/LXQt
URL:            http://www.lxqt.org
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  cmake >= 3.5.0
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  libsensors4-devel
BuildRequires:  pkgconfig
BuildRequires:  cmake(dbusmenu-lxqt)
BuildRequires:  cmake(lxqt)
BuildRequires:  cmake(lxqt2-build-tools)
BuildRequires:  cmake(lxqt-globalkeys)
BuildRequires:	cmake(lxqt-menu-data)
BuildRequires:  cmake(KF6Solid)
BuildRequires:  cmake(KF6WindowSystem)
BuildRequires:  cmake(Qt6Concurrent)
BuildRequires:  cmake(Qt6DBus)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Xml)
BuildRequires:  cmake(sysstat-qt6)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libstatgrab)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcb-util)
BuildRequires:  pkgconfig(xcb-image)
BuildRequires:  pkgconfig(xkbcommon)
BuildRequires:  pkgconfig(xkbcommon-x11)
Requires:       lxqt-menu-data
Recommends:     %{name}-lang

%description
Brand new desktop Panel for LXQt

%lang_package

%package devel
Summary:        Devel files for lxqt-panel
Group:          Development/Libraries/C and C++
BuildArch:	noarch
Requires:       %{name} = %{version}


%description devel
LXQt panel development files and headers

%prep
%autosetup -p1

%build
%define _lto_cflags %{nil}
export CXXFLAGS="%{optflags} $(pkg-config --cflags xkbcommon-x11)"
%cmake_qt6 -DPULL_TRANSLATIONS=No -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now"
%{qt6_build}

%install
%{qt6_install}
%fdupes -s %{buildroot}/%{_datadir}

%find_lang %{name} --with-qt

%files
%license LICENSE
%doc AUTHORS
%{_bindir}/%{name}
%dir %{_datadir}/lxqt
%dir %{_datadir}/lxqt/panel
%dir %{_datadir}/lxqt/panel/qeyes-types
%dir %{_sysconfdir}/xdg
%dir %{_sysconfdir}/xdg/autostart
%{_qt6_libdir}/%{name}
%{_datadir}/lxqt/lxqt-panel
%{_mandir}/man?/lxqt-panel.?%{?ext_man}
%config %{_sysconfdir}/xdg/autostart/lxqt-panel.desktop
%{_datadir}/lxqt/panel.conf
%{_datadir}/lxqt/panel/qeyes-types/*
%{_datadir}/lxqt/panel/qeyes-types/*/*

%files devel
%{_includedir}/lxqt

%files lang -f %{name}.lang
%dir %{_datadir}/lxqt/translations/
%{_datadir}/lxqt/translations/%{name}

%changelog
openSUSE Build Service is sponsored by