Compare commits
No commits in common. "01acc2b1fc45e39001ce96ec8768941a461142bd" and "09601f83a5846c0cadfebf626d0bf5f4255c187e" have entirely different histories.
01acc2b1fc
...
09601f83a5
Binary file not shown.
@ -1,13 +1,13 @@
|
|||||||
Name: papirus-icon-theme
|
Name: papirus-icon-theme
|
||||||
Version: 20240201
|
Version: 20200301
|
||||||
Release: 1
|
Release: 1
|
||||||
Summary: Free and open source SVG icon theme based on Paper Icon Set
|
Summary: Free and open source SVG icon theme based on Paper Icon Set
|
||||||
|
|
||||||
# Some icons are based on Paper Icon Theme, CC-BY-SA
|
# Some icons are based on Paper Icon Theme, CC-BY-SA
|
||||||
# The rest is GPLv3
|
# The rest is GPLv3
|
||||||
License: GPL-3.0-only and CC-BY-SA-4.0
|
License: GPLv3 and CC-BY-SA
|
||||||
URL: https://github.com/PapirusDevelopmentTeam/papirus-icon-theme
|
URL: https://github.com/PapirusDevelopmentTeam/papirus-icon-theme
|
||||||
Source0: https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/archive/%{version}/%{name}-%{version}.tar.gz
|
Source0: %url/archive/%{version}/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -34,28 +34,55 @@ Papirus icon theme is available in six variants:
|
|||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
export THEMES="ePapirus ePapirus-Dark Papirus Papirus-Dark Papirus-Light"
|
export THEMES="ePapirus Papirus Papirus-Adapta Papirus-Adapta-Nokto Papirus-Dark Papirus-Light"
|
||||||
for t in $THEMES; do
|
for t in $THEMES; do
|
||||||
|
mkdir -p %{buildroot}%{_datadir}/icons/$t
|
||||||
/bin/touch %{buildroot}%{_datadir}/icons/$t/icon-theme.cache
|
/bin/touch %{buildroot}%{_datadir}/icons/$t/icon-theme.cache
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Handle folder to link upgrade
|
||||||
|
# Remove in F33
|
||||||
|
%pretrans -p <lua>
|
||||||
|
-- Define the path to directory being replaced below.
|
||||||
|
-- DO NOT add a trailing slash at the end.
|
||||||
|
pathlist = {"%{_datadir}/icons/Papirus-Light/16x16/actions",
|
||||||
|
"%{_datadir}/icons/Papirus-Light/16x16/devices",
|
||||||
|
"%{_datadir}/icons/Papirus-Light/16x16/places",
|
||||||
|
"%{_datadir}/icons/Papirus-Light/22x22/actions",
|
||||||
|
"%{_datadir}/icons/Papirus-Light/24x24/actions"}
|
||||||
|
for key,path in ipairs(pathlist)
|
||||||
|
do
|
||||||
|
st = posix.stat(path)
|
||||||
|
if st and st.type == "directory" then
|
||||||
|
status = os.rename(path, path .. ".rpmmoved")
|
||||||
|
if not status then
|
||||||
|
suffix = 0
|
||||||
|
while not status do
|
||||||
|
suffix = suffix + 1
|
||||||
|
status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
|
||||||
|
end
|
||||||
|
os.rename(path, path .. ".rpmmoved")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
%post
|
%post
|
||||||
export THEMES="ePapirus ePapirus-Dark Papirus Papirus-Dark Papirus-Light"
|
export THEMES="ePapirus Papirus Papirus-Adapta Papirus-Adapta-Nokto Papirus-Dark Papirus-Light"
|
||||||
for t in $THEMES; do
|
for t in $THEMES; do
|
||||||
/bin/touch --no-create %{_datadir}/icons/$t &>/dev/null || :
|
/bin/touch --no-create %{_datadir}/icons/$t &>/dev/null || :
|
||||||
done
|
done
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ $1 -eq 0 ] ; then
|
export THEMES="ePapirus Papirus Papirus-Adapta Papirus-Adapta-Nokto Papirus-Dark Papirus-Light"
|
||||||
export THEMES="ePapirus ePapirus-Dark Papirus Papirus-Dark Papirus-Light"
|
|
||||||
for t in $THEMES; do
|
for t in $THEMES; do
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
/bin/touch --no-create %{_datadir}/icons/$t &>/dev/null
|
/bin/touch --no-create %{_datadir}/icons/$t &>/dev/null
|
||||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/$t &>/dev/null || :
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/$t &>/dev/null || :
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
%posttrans
|
%posttrans
|
||||||
export THEMES="ePapirus ePapirus-Dark Papirus Papirus-Dark Papirus-Light"
|
export THEMES="ePapirus Papirus Papirus-Adapta Papirus-Adapta-Nokto Papirus-Dark Papirus-Light"
|
||||||
for t in $THEMES; do
|
for t in $THEMES; do
|
||||||
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/$t &>/dev/null || :
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/$t &>/dev/null || :
|
||||||
done
|
done
|
||||||
@ -63,34 +90,26 @@ done
|
|||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc AUTHORS README.md
|
%doc AUTHORS README.md
|
||||||
%{_datadir}/icons/Papirus-Dark/*x*
|
%{_datadir}/icons/ePapirus
|
||||||
%{_datadir}/icons/Papirus-Dark/symbolic
|
%{_datadir}/icons/Papirus
|
||||||
%{_datadir}/icons/Papirus-Light/*x*
|
%{_datadir}/icons/Papirus-Adapta
|
||||||
%{_datadir}/icons/Papirus-Light/symbolic
|
%{_datadir}/icons/Papirus-Adapta-Nokto
|
||||||
%{_datadir}/icons/Papirus/*x*
|
%{_datadir}/icons/Papirus-Dark
|
||||||
%{_datadir}/icons/Papirus/symbolic
|
%{_datadir}/icons/Papirus-Light
|
||||||
%{_datadir}/icons/ePapirus-Dark/*x*
|
|
||||||
%{_datadir}/icons/ePapirus-Dark/symbolic
|
|
||||||
%{_datadir}/icons/ePapirus/*x*
|
|
||||||
%{_datadir}/icons/ePapirus/symbolic
|
|
||||||
%ghost %{_datadir}/icons/ePapirus-Dark/icon-theme.cache
|
|
||||||
%ghost %{_datadir}/icons/ePapirus/icon-theme.cache
|
%ghost %{_datadir}/icons/ePapirus/icon-theme.cache
|
||||||
%ghost %{_datadir}/icons/Papirus/icon-theme.cache
|
%ghost %{_datadir}/icons/Papirus/icon-theme.cache
|
||||||
|
%ghost %{_datadir}/icons/Papirus-Adapta/icon-theme.cache
|
||||||
|
%ghost %{_datadir}/icons/Papirus-Adapta-Nokto/icon-theme.cache
|
||||||
%ghost %{_datadir}/icons/Papirus-Dark/icon-theme.cache
|
%ghost %{_datadir}/icons/Papirus-Dark/icon-theme.cache
|
||||||
%ghost %{_datadir}/icons/Papirus-Light/icon-theme.cache
|
%ghost %{_datadir}/icons/Papirus-Light/icon-theme.cache
|
||||||
|
# Handle folder to link upgrade
|
||||||
|
# Remove in F33
|
||||||
|
%ghost %{_datadir}/icons/Papirus-Light/16x16/actions.rpmmoved
|
||||||
|
%ghost %{_datadir}/icons/Papirus-Light/16x16/devices.rpmmoved
|
||||||
|
%ghost %{_datadir}/icons/Papirus-Light/16x16/places.rpmmoved
|
||||||
|
%ghost %{_datadir}/icons/Papirus-Light/22x22/actions.rpmmoved
|
||||||
|
%ghost %{_datadir}/icons/Papirus-Light/24x24/actions.rpmmoved
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Feb 29 2024 xu_ping <707078654@qq.com> - 20240201-1
|
|
||||||
- Upgrade to 20240201
|
|
||||||
|
|
||||||
* Tue Oct 17 2023 yaoxin <yao_xin001@hoperun.com> - 20230901-1
|
|
||||||
- Upgrade to 20230901
|
|
||||||
|
|
||||||
* Fri Jul 15 2022 yaoxin <yaoxin30@ha-partners.com> - 20200301-3
|
|
||||||
- License compliance rectification
|
|
||||||
|
|
||||||
* Mon Sep 7 2020 Ge Wang <wangge20@huawei.com> 20200301-2
|
|
||||||
- Modify the Source0 Url
|
|
||||||
|
|
||||||
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 20200301-1
|
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 20200301-1
|
||||||
- Initial release for OpenEuler
|
- Initial release for OpenEuler
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
version_control: github
|
|
||||||
src_repo: PapirusDevelopmentTeam/papirus-icon-theme
|
|
||||||
tag_prefix: ""
|
|
||||||
seperator: ""
|
|
||||||
Loading…
x
Reference in New Issue
Block a user