10 Star 0 Fork 2

src-anolis-dde/deepin-icon-theme

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
deepin-icon-theme.spec 2.57 KB
一键复制 编辑 原始数据 按行查看 历史
yangxianzhao 提交于 2024-01-12 15:22 . rebuild for qt5-qtbase
%define anolis_release .0.2
%global themes bloom bloom-dark bloom-classic bloom-classic-dark Sea
%global start_logo start-here
Name: deepin-icon-theme
Version: 2022.07.14
Release: 1%{anolis_release}%{?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: gtk-update-icon-cache
BuildRequires: xorg-x11-apps
Requires: papirus-icon-theme
Conflicts: deepin-cursor-theme
%description
%{summary}.
%prep
%autosetup -p1 -n %{name}-%{version}
# no such theme
sed -i '/bloom-v20/d' Makefile
%build
%make_build
%install
make install 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/
%{_datadir}/icons/Vintage/
%ghost %{_datadir}/icons/*/icon-theme.cache
%changelog
* Fri Jan 12 2024 yangxianzhao <yangxianzhao@uniontech.com> - 2022.07.14-1.0.2
- rebuild for qt5-qtbase
* Wed Sep 20 2023 yangxianzhao <yangxianzhao@uniontech.com> - 2022.07.14-1.0.1
- rebuild for qt5-qtbase-5.15.3
* Tue Jan 10 2023 liweiganga <liweiganga@uniontech.com> - 2022.07.14-1
- update: update to 2022.07.14
* Tue Jun 14 2022 uoser <uoser@uniontech.com> - 2021.11.18-1.02
- update: update 2021.11.18-1.02
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-anolis-dde/deepin-icon-theme.git
git@gitee.com:src-anolis-dde/deepin-icon-theme.git
src-anolis-dde
deepin-icon-theme
deepin-icon-theme
a8

搜索帮助

0d507c66 1850385 C8b1a773 1850385