99 lines
2.7 KiB
RPMSpec
99 lines
2.7 KiB
RPMSpec
Name: grub-theme-openmamba
|
|
Version: 4.0
|
|
Release: 3mamba
|
|
Summary: openmamba default theme for GRUB 2
|
|
Group: Graphical Desktop/Look 'n' feel
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://gitlab.mambasoft.it/openmamba/grub-theme-openmamba
|
|
Source: http://gitlab.mambasoft.it/openmamba/grub-theme-openmamba.git/%{version}/grub-theme-openmamba-%{version}.tar.bz2
|
|
License: GPL
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
BuildArch: noarch
|
|
Requires(post): grub2
|
|
Requires(post): breeze-grub >= 5.11.4-2mamba
|
|
|
|
%description
|
|
openmamba default theme for GRUB 2.
|
|
|
|
%package circles
|
|
Summary: openmamba milestone4 default theme for GRUB 2
|
|
Group: Graphical Desktop/Look 'n' feel
|
|
|
|
%description circles
|
|
openmamba milestone4 default theme for GRUB 2.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%postun
|
|
if [ $1 -eq 0 ]; then
|
|
sed -i "/^GRUB_THEME=\"%{_datadir}/grub/themes/breeze/theme.txt\"/d" /etc/default/grub
|
|
fi
|
|
:
|
|
|
|
%posttrans
|
|
if [ $1 -ge 1 ]; then
|
|
grep -q "^GRUB_THEME=" /etc/default/grub 2>/dev/null && continue
|
|
cat >> /etc/default/grub << _EOF
|
|
GRUB_THEME="%{_datadir}/grub/themes/breeze/theme.txt"
|
|
_EOF
|
|
fi
|
|
[ -x %{_sbindir}/update-grub -a -e /boot/grub/grub.cfg ] && \
|
|
%{_sbindir}/update-grub
|
|
:
|
|
|
|
%postun circles
|
|
if [ $1 -eq 0 ]; then
|
|
sed -i "/^GRUB_THEME=\"%{_datadir}/grub/themes/circles/theme.txt\"/d" /etc/default/grub
|
|
fi
|
|
:
|
|
|
|
%posttrans circles
|
|
if [ $1 -ge 1 ]; then
|
|
grep -q "^GRUB_THEME=" /etc/default/grub 2>/dev/null && continue
|
|
cat >> /etc/default/grub << _EOF
|
|
GRUB_THEME="%{_datadir}/grub/themes/circles/theme.txt"
|
|
_EOF
|
|
fi
|
|
[ -x %{_sbindir}/update-grub -a -e /boot/grub/grub.cfg ] && \
|
|
%{_sbindir}/update-grub
|
|
:
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
|
|
%files circles
|
|
%defattr(-,root,root)
|
|
%dir %{_datadir}/grub/themes/circles
|
|
%{_datadir}/grub/themes/circles/*
|
|
|
|
%changelog
|
|
* Sun Dec 17 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0-3mamba
|
|
- switch to breeze as default transitory theme for next milestone
|
|
|
|
* Sun Dec 17 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0-2mamba
|
|
- reworked as a standard grub2 theme installable by setting GRUB_THEME in /etc/default/grub
|
|
|
|
* Thu Aug 25 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0-1mamba
|
|
- update to 4.0
|
|
- new grub theme for openmamba milestone4
|
|
|
|
* Sat Jul 24 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-2mamba
|
|
- remove openmamba logo from bottom right image corner to impove console usability
|
|
|
|
* Tue May 19 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0-1mamba
|
|
- package created
|