%global themes bloom bloom-dark bloom-classic bloom-classic-dark Sea %global start_logo start-here Name: deepin-icon-theme Version: 2020.09.25 Release: 1%{?dist} Summary: Icons for the Deepin Desktop Environment License: GPLv3 URL: https://github.com/linuxdeepin/deepin-icon-theme Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: /usr/bin/python BuildRequires: gtk-update-icon-cache BuildRequires: xcursorgen BuildRequires: fedora-logos BuildRequires: make Requires: papirus-icon-theme Requires: fedora-logos %description %{summary}. %prep %autosetup -p1 # no such theme sed -i '/bloom-v20/d' Makefile %build %make_build %install make install-icons install-cursors DESTDIR=%{buildroot} PREFIX=%{_prefix} cp -a ./Sea ./bloom-classic ./bloom-classic-dark ./usr/share/icons/hicolor %{buildroot}%{_datadir}/icons for theme in %{themes}; do for dir in %{buildroot}%{_datadir}/icons/$theme/places/*; do size=$(basename $dir) if [ -f %{_datadir}/icons/hicolor/${size}x${size}/places/%{start_logo}.png ]; then ln -sf ../../../hicolor/${size}x${size}/places/%{start_logo}.png $dir elif [ -f %{_datadir}/icons/hicolor/${size}/places/%{start_logo}.svg ]; then ln -sf ../../../hicolor/${size}/places/%{start_logo}.svg $dir fi done touch %{buildroot}%{_datadir}/icons/$theme/icon-theme.cache done %post for theme in %{themes}; do touch --no-create %{_datadir}/icons/$theme &>/dev/null || : done %postun if [ $1 -eq 0 ] ; then for theme in %{themes}; do touch --no-create %{_datadir}/icons/$theme &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/$theme &>/dev/null || : done fi %posttrans for theme in %{themes}; do /usr/bin/gtk-update-icon-cache %{_datadir}/icons/$theme &>/dev/null || : done %files %license LICENSE %{_datadir}/icons/hicolor/*/status/*.svg %{_datadir}/icons/hicolor/*/apps/*.svg %{_datadir}/icons/bloom-dark/ %{_datadir}/icons/bloom/ %{_datadir}/icons/bloom-classic/ %{_datadir}/icons/bloom-classic-dark/ %{_datadir}/icons/Sea/ %ghost %{_datadir}/icons/*/icon-theme.cache %changelog * Mon Nov 09 2020 Robin Lee - 2020.09.25-1 - new upstream release: 2020.09.25 * Thu Sep 24 2020 Robin Lee - 2020.09.24-1 - new upstream release: 2020.09.24 * Tue Jul 28 2020 Adam Jackson - 15.12.71-5 - BuildRequires xcursorgen not xorg-x11-apps * Mon Jul 27 2020 Fedora Release Engineering - 15.12.71-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Thu Jan 30 2020 Petr Viktorin - 15.12.71-3 - Require /usr/bin/python to remove dependency on Python 2 * Tue Jan 28 2020 Fedora Release Engineering - 15.12.71-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Mon Aug 05 2019 Robin Lee - 15.12.71-1 - Release 15.12.71 * Wed Jul 24 2019 Fedora Release Engineering - 15.12.68-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Wed Apr 3 2019 Robin Lee - 15.12.68-2 - Requires papirus-icon-theme - Ghost owning cache files - Create cache for deepin-dark theme * Thu Jan 31 2019 mosquito - 15.12.68-1 - Update to 15.12.68 * Thu Jan 31 2019 Fedora Release Engineering - 15.12.67-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Wed Dec 12 2018 mosquito - 15.12.67-1 - Update to 15.12.67 * Fri Nov 30 2018 mosquito - 15.12.65-1 - Update to 15.12.65 * Fri Nov 9 2018 mosquito - 15.12.64-1 - Update to 15.12.64 * Fri Aug 10 2018 mosquito - 15.12.59-1 - Update to 15.12.59 * Fri Jul 20 2018 mosquito - 15.12.58-1 - Update to 15.12.58 * Thu Jul 12 2018 Fedora Release Engineering - 15.12.52-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Mar 15 2018 Iryna Shcherbina - 15.12.52-3 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Wed Feb 07 2018 Fedora Release Engineering - 15.12.52-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Dec 2 2017 mosquito - 15.12.52-1 - Update to 15.12.52 * Fri Oct 27 2017 mosquito - 15.12.49-1 - Update to 15.12.49 * Fri Jul 14 2017 mosquito - 15.12.46-1 - Update to 15.12.46 * Fri May 19 2017 mosquito - 15.12.42-1.git59ca728 - Update to 15.12.42 * Tue Mar 7 2017 mosquito - 15.12.33-1.git2f50a33 - Update to 15.12.33 * Tue Jan 17 2017 mosquito - 15.12.32-1.git69bcc88 - Update to 15.12.32 * Sun Sep 18 2016 Jaroslav Stepanek - Initial package build