Compare commits
11 Commits
c766d3116d
...
8c74fb1218
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c74fb1218 | ||
|
|
6cae47637e | ||
|
|
0eab55f656 | ||
|
|
1243b1b44e | ||
|
|
35b72bd6db | ||
|
|
9365e95bfa | ||
|
|
cba3261ad8 | ||
|
|
a267cc92e4 | ||
|
|
4445385648 | ||
|
|
cd0cd1a84c | ||
|
|
5026f78726 |
Binary file not shown.
@ -1,79 +1,88 @@
|
|||||||
|
%global themes bloom bloom-dark bloom-classic bloom-classic-dark Sea
|
||||||
|
%global start_logo start-here
|
||||||
|
|
||||||
Name: deepin-icon-theme
|
Name: deepin-icon-theme
|
||||||
Version: 2020.06.28
|
Version: 2022.07.14
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Icons for the Deepin Desktop Environment
|
Summary: Icons for the Deepin Desktop Environment
|
||||||
License: GPLv3
|
License: GPLv3
|
||||||
URL: https://github.com/linuxdeepin/deepin-icon-theme
|
URL: https://github.com/linuxdeepin/deepin-icon-theme
|
||||||
Source0: %{name}-%{version}.orig.tar.xz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: gtk-update-icon-cache
|
BuildRequires: gtk-update-icon-cache
|
||||||
BuildRequires: xorg-x11-apps
|
BuildRequires: xorg-x11-apps
|
||||||
Requires: papirus-icon-theme
|
Requires: papirus-icon-theme
|
||||||
Conflicts: deepin-cursor-theme
|
Conflicts: deepin-cursor-theme
|
||||||
|
Conflicts: sea-icon-theme
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{summary}.
|
%{summary}.
|
||||||
|
|
||||||
%package -n sea-icon-theme
|
|
||||||
Summary: Deepin Sea Icons
|
|
||||||
Conflicts: deepin-icon-theme < 15.12.65
|
|
||||||
|
|
||||||
%description -n sea-icon-theme
|
|
||||||
Deepin Sea Icons
|
|
||||||
This package is DeepinIconTheme Sea
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%autosetup -p1 -n %{name}-%{version}
|
||||||
|
# no such theme
|
||||||
|
sed -i '/bloom-v20/d' Makefile
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
sed -i -E '/bloom-v20/d' Makefile
|
make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
|
||||||
mkdir -p %{buildroot}/usr/share/icons/bloom-classic
|
cp -a ./Sea ./bloom-classic ./bloom-classic-dark ./usr/share/icons/hicolor %{buildroot}%{_datadir}/icons
|
||||||
cp -r bloom-classic/* %{buildroot}/usr/share/icons/bloom-classic
|
for theme in %{themes}; do
|
||||||
mkdir -p %{buildroot}/usr/share/icons/bloom-classic-dark
|
for dir in %{buildroot}%{_datadir}/icons/$theme/places/*; do
|
||||||
cp -r bloom-classic-dark/* %{buildroot}/usr/share/icons/bloom-classic-dark
|
size=$(basename $dir)
|
||||||
mkdir -p %{buildroot}/usr/share/icons/Sea
|
if [ -f %{_datadir}/icons/hicolor/${size}x${size}/places/%{start_logo}.png ]; then
|
||||||
cp -r Sea/* %{buildroot}/usr/share/icons/Sea/
|
ln -sf ../../../hicolor/${size}x${size}/places/%{start_logo}.png $dir
|
||||||
|
elif [ -f %{_datadir}/icons/hicolor/${size}/places/%{start_logo}.svg ]; then
|
||||||
%{__make} install-icons DESTDIR=%{?buildroot} INSTALL="%{__install} -p" PREFIX=%{_prefix}
|
ln -sf ../../../hicolor/${size}/places/%{start_logo}.svg $dir
|
||||||
%{__make} install-cursors DESTDIR=%{?buildroot} INSTALL="%{__install} -p" PREFIX=%{_prefix}
|
fi
|
||||||
%{__make} hicolor-links
|
done
|
||||||
|
touch %{buildroot}%{_datadir}/icons/$theme/icon-theme.cache
|
||||||
|
done
|
||||||
|
|
||||||
%post
|
%post
|
||||||
touch --no-create %{_datadir}/icons/deepin &>/dev/null || :
|
for theme in %{themes}; do
|
||||||
touch --no-create %{_datadir}/icons/deepin-dark &>/dev/null || :
|
touch --no-create %{_datadir}/icons/$theme &>/dev/null || :
|
||||||
touch --no-create %{_datadir}/icons/Sea &>/dev/null || :
|
done
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ] ; then
|
if [ $1 -eq 0 ] ; then
|
||||||
touch --no-create %{_datadir}/icons/deepin &>/dev/null
|
for theme in %{themes}; do
|
||||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/deepin &>/dev/null || :
|
touch --no-create %{_datadir}/icons/$theme &>/dev/null
|
||||||
touch --no-create %{_datadir}/icons/deepin-dark &>/dev/null
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/$theme &>/dev/null || :
|
||||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/deepin-dark &>/dev/null || :
|
done
|
||||||
touch --no-create %{_datadir}/icons/Sea &>/dev/null
|
|
||||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/Sea &>/dev/null || :
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/deepin &>/dev/null || :
|
for theme in %{themes}; do
|
||||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/deepin-dark &>/dev/null || :
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/$theme &>/dev/null || :
|
||||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/Sea &>/dev/null || :
|
done
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
%{_datadir}/icons/hicolor/*/status/*.svg
|
||||||
|
%{_datadir}/icons/hicolor/*/apps/*.svg
|
||||||
|
%{_datadir}/icons/bloom-dark/
|
||||||
%{_datadir}/icons/bloom/
|
%{_datadir}/icons/bloom/
|
||||||
%{_datadir}/icons/bloom-classic/
|
%{_datadir}/icons/bloom-classic/
|
||||||
%{_datadir}/icons/bloom-classic-dark/
|
%{_datadir}/icons/bloom-classic-dark/
|
||||||
%{_datadir}/icons/bloom-dark
|
|
||||||
|
|
||||||
|
|
||||||
%files -n sea-icon-theme
|
|
||||||
%license LICENSE
|
|
||||||
%{_datadir}/icons/Sea/
|
%{_datadir}/icons/Sea/
|
||||||
|
%{_datadir}/icons/Vintage/
|
||||||
|
%ghost %{_datadir}/icons/*/icon-theme.cache
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Jun 11 2020 uoser <uoser@uniontech.com> - 2020.05.25
|
* Wed Jul 26 2023 leeffo <liweiganga@uniontech.com> - 2022.07.14-1
|
||||||
- Update to 2020.05.25
|
- upgrade to version
|
||||||
|
|
||||||
|
* Tue Jun 13 2023 liweigang <liweiganga@uniontech.com> - 2021.11.18-2
|
||||||
|
- fix install Conflict
|
||||||
|
|
||||||
|
* Fri Mar 31 2023 liweiganga <liweiganga@uniontech.com> - 2021.11.18-1
|
||||||
|
- update: update to 2021.11.18
|
||||||
|
|
||||||
|
* Tue Jul 19 2022 konglidong <konglidong@uniontech.com> - 2021.04.20-1
|
||||||
|
- Update to 2021.04.20
|
||||||
|
|
||||||
|
* Thu Jul 30 2020 openEuler Buildteam <buildteam@openeuler.org> - 2020.06.28-1
|
||||||
|
- Package init
|
||||||
|
|||||||
4
deepin-icon-theme.yaml
Normal file
4
deepin-icon-theme.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: github
|
||||||
|
src_repo: linuxdeepin/deepin-icon-theme
|
||||||
|
tag_prefix: ^v
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user