File lxqt-menu-data.spec of Package lxqt-menu-data
#
# spec file for package lxqt-menu-data
#
# 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/
#
%global debug_package %{nil}
Name: lxqt-menu-data
Version: @SERVICE@
Release: 0
Summary: Menu files for LXQt Panel, Configuration Center and PCManFM-Qt
License: LGPL-2.1-or-later
Group: System/GUI/LXQt
URL: https://github.com/lxqt/lxqt-menu-data
Source0: %{name}-%{version}.tar.xz
BuildRequires: cmake >= 3.16
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: gcc-c++
BuildRequires: lxqt-build-tools >= 0.12.0
BuildArch: noarch
%description
Freedesktop.org compliant menu files for LXQt Panel, Configuration Center
and PCManFM-Qt/libfm-qt.
%package devel
Summary: Tools for building lxqt-panel, lxqt-config, libfm-qt
Group: Development/Tools/Building
Requires: %{name} = %{version}-%{release}
%description devel
This package provides several tools needed to build other components
maintained by the LXQt project.
%prep
%autosetup
sed -i '/End Settings/s|^|\t<Exclude>\n\t\t<Category>X-SuSE-YaST</Category>\n\t</Exclude>\n|' \
menu/lxqt-applications.menu
%build
%cmake
%cmake_build
%install
%cmake_install
%files
%doc README.md
%dir %{_sysconfdir}/xdg/menus
%config %{_sysconfdir}/xdg/menus/lxqt-*.menu
%{_datadir}/desktop-directories/
%license LICENSE
%files devel
%{_datadir}/cmake/%{name}/
%changelog