File qtxdg-tools.spec of Package qtxdg-tools

#
# spec file for package qtxdg-tools
#
# Copyright (c) 2022 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:  lxqt-build-tools
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Xdg)
BuildRequires:  pkgconfig(glib-2.0)
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
%cmake_build

%install
%cmake_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