File deepin-desktop-theme.spec of Package deepin-desktop-theme
#
# spec file for package deepin-desktop-theme
#
# 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/
#
# %define commit ca4306c8733343d622dccbe7160dc178cfa30357
# %define shortcommit %(c=%{commit}; echo ${c:0:7})
Name: deepin-desktop-theme
Version: 1.1.25
Release: 0
Summary: Deepin desktop theme
License: CC-BY-4.0 AND CC0-1.0
Group: System/GUI/Other
URL: https://github.com/linuxdeepin/deepin-desktop-theme
Source0: https://github.com/linuxdeepin/deepin-desktop-theme/archive/%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE do-not-build-tools.patch hillwood@opensuse.org
Patch0: do-not-build-tools.patch
BuildRequires: cmake(Qt6GuiPrivate)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Gui)
BuildRequires: pkgconfig(Qt6Widgets)
BuildRequires: pkgconfig(Qt6Xml)
BuildRequires: pkgconfig(dtk6gui)
BuildRequires: pkgconfig(dtk6widget)
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildArch: noarch
%description
Deepin desktop theme provides a variety of well-designed theme resources,
including icon theme resources, cursor theme resources, etc.
%package branding-upstream
Summary: Upstream branding for deepin-desktop-theme
Requires: deepin-desktop-theme
Conflicts: otherproviders(deepin-desktop-theme-branding)
Provides: deepin-desktop-theme-branding = %{version}
Supplements: packageand(deepin-desktop-theme:branding-upstream)
%description branding-upstream
Upstream branding for deepin-desktop-theme.
%prep
%autosetup -p1 -n %{name}-%{version}
find . -xtype l -delete
%build
%cmake
%cmake_build
%install
%cmake_install
%fdupes %{buildroot}%{_datadir}
%files
%doc README.md README.zh_CN.md
%license LICENSES/CC-BY-4.0.txt LICENSES/CC0-1.0.txt
%{_datadir}/deepin-themes
%dir %{_datadir}/dsg
%dir %{_datadir}/dsg/icons
%{_datadir}/dsg/icons/*
%{_datadir}/icons/*
%exclude %{_datadir}/deepin-themes/bloom/index.theme
%exclude %{_datadir}/dsg/icons/bloom/deepin-launcher.dci
%exclude %{_datadir}/dsg/icons/bloom-classic/deepin-launcher.dci
%exclude %{_datadir}/dsg/icons/bloom-classic-dark/deepin-launcher.dci
%exclude %{_datadir}/dsg/icons/bloom-dark/deepin-launcher.dci
%exclude %{_datadir}/dsg/icons/flow/deepin-launcher.dci
%exclude %{_datadir}/dsg/icons/hazy-color/deepin-launcher.dci
%exclude %{_datadir}/dsg/icons/macaron/deepin-launcher.dci
%exclude %{_datadir}/dsg/icons/organic-glass/deepin-launcher.dci
%exclude %{_datadir}/dsg/icons/square/deepin-launcher.dci
%exclude %{_datadir}/dsg/icons/vintage/deepin-launcher.dci
%exclude %{_datadir}/dsg/icons/origin/deepin-launcher.dci
%exclude %{_datadir}/icons/*/*/512/deepin-launcher.png
%files branding-upstream
%{_datadir}/deepin-themes/bloom/index.theme
%{_datadir}/dsg/icons/bloom/deepin-launcher.dci
%{_datadir}/dsg/icons/bloom-classic/deepin-launcher.dci
%{_datadir}/dsg/icons/bloom-classic-dark/deepin-launcher.dci
%{_datadir}/dsg/icons/bloom-dark/deepin-launcher.dci
%{_datadir}/dsg/icons/flow/deepin-launcher.dci
%{_datadir}/dsg/icons/hazy-color/deepin-launcher.dci
%{_datadir}/dsg/icons/macaron/deepin-launcher.dci
%{_datadir}/dsg/icons/organic-glass/deepin-launcher.dci
%{_datadir}/dsg/icons/square/deepin-launcher.dci
%{_datadir}/dsg/icons/vintage/deepin-launcher.dci
%{_datadir}/dsg/icons/origin/deepin-launcher.dci
%{_datadir}/icons/*/*/512/deepin-launcher.png
%changelog