File deepin-icon-theme.spec of Package deepin-icon-theme
#
# spec file for package deepin-icon-theme
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define name1 deepin-launcher
%define deepin_launcher_version %(rpm -q --queryformat '%%{VERSION}' deepin-launcher)
Name: deepin-icon-theme
Version: 15.12.54
Release: 0
Summary: Icons Theme
License: GPL-3.0
URL: https://github.com/linuxdeepin/deepin-icon-theme
Source0: https://github.com/linuxdeepin/deepin-icon-theme/archive/%{version}/%{name}-%{version}.tar.gz
Group: System/GUI/Other
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: deepin-launcher
BuildRequires: hicolor-icon-theme
BuildRequires: fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Icons for the Deepin Desktop Environment.
%package -n deepin-launcher-branding-upstream
Summary: Upstream branding for deepin-launcher
Version: %{deepin_launcher_version}
Requires: %{name1} = %{version}
Provides: %{name1}-branding = %{version}
Conflicts: otherproviders(%{name1}-branding)
Supplements: packageand(deepin-launcher:branding-upstream)
%description -n deepin-launcher-branding-upstream
Upstream branding for deepin-launcher icon.
%prep
%setup -q
%build
rm -rf deepin/places/16/folder-bookmark.svg
# Fix wrong link
pushd deepin/places/16
ln -sf user-bookmarks-symbolic.svg folder-bookmark.svg
popd
%install
%make_install PREFIX=%{_prefix}
#Fix permission
chmod 0644 %{buildroot}%{_datadir}/icons/*/apps/*/* \
%{buildroot}%{_datadir}/icons/deepin/index.theme
%fdupes %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE CHANGELOG.md
%{_datadir}/icons/deepin/
%{_datadir}/icons/Sea/
%{_datadir}/icons/hicolor/
%exclude %{_datadir}/icons/deepin/places/*/deepin-launcher.svg
%files -n deepin-launcher-branding-upstream
%defattr(-,root,root,-)
%{_datadir}/icons/deepin/places/*/deepin-launcher.svg
%changelog