File dtkcommon.spec of Package dtkcommon
#
# spec file for package dtkcommon
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2024 Hillwood Yang <hillwood@opensuse.org>
#
# 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: dtkcommon
Version: 5.7.16
Release: 0
Summary: The DTK Tools
License: GPL-3.0+
Group: System/GUI/Other
URL: https://github.com/linuxdeepin/dtkcommon
Source0: https://github.com/linuxdeepin/dtkcommon/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: glib2-tools
BuildRequires: libQt5Core-private-headers-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A public project for building DTK Library
%package dconfig-setting
Summary: Dconfg Setting for dtkcommon
BuildArch: noarch
%description dconfig-setting
Dconfg Setting for dtkcommon
%prep
%setup -q
%build
%cmake
%cmake_build
%install
%cmake_install
%check
%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%dir %{_libdir}/cmake/Dtk
%{_libdir}/cmake/Dtk/DtkConfig.cmake
%dir %{_libdir}/cmake/Dtk6
%{_libdir}/cmake/Dtk6/Dtk6Config.cmake
%dir %{_libdir}/cmake/DtkBuildHelper
%{_libdir}/cmake/DtkBuildHelper/*.cmake
%files dconfig-setting
%dir %{_datadir}/dsg
%dir %{_datadir}/dsg/configs
%{_datadir}/dsg/configs/org.deepin.dtk.preference.json
%changelog