File qtxdg-tools.spec of Package qtxdg-tools

#
# spec file for package qtxdg-tools
#
# 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/
#


Name:           qtxdg-tools
Version:        @SERVICE@
Release:        0
Summary:        Libqtxdg user tools
License:        LGPL-2.1-or-later
Group:          System/GUI/Other
URL:            https://github.com/lxqt/qtxdg-tools
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(lxqt2-build-tools)
BuildRequires:  pkgconfig(Qt6Xdg)
Requires:       xdg-utils

%description
User tools for libqtxdg. qtxdg-tools contains a CLI MIME tool, qtxdg-mat,
for handling file associations and opening files with their default
applications.

%package devel
Summary:        Files for building lxqt-session
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}-%{release}

%description devel
Development files for building lxqt-session.

%prep
%autosetup

%build
%cmake_qt6
%{qt6_build}

%install
%{qt6_install}

%files
%doc CHANGELOG README.md
%{_bindir}/qtxdg-mat
%license LICENSE

%files devel
%dir %{_datadir}/cmake/%{name}
%{_datadir}/cmake/%{name}/%{name}-config*.cmake
%{_datadir}/cmake/%{name}/%{name}-targets*.cmake

%changelog
openSUSE Build Service is sponsored by