update to 2.9.92

move liveuser environment apart to live-user-environment subpackage [release 2.9.92-1mamba;Sat Mar 14 2015]
This commit is contained in:
Silvan Calarco 2024-01-06 06:24:36 +01:00
parent 879b370b32
commit 53a6335a49

View File

@ -2,7 +2,7 @@
%define lpadmin_uid 65032 %define lpadmin_uid 65032
%define lpadmin_gid 65032 %define lpadmin_gid 65032
Name: livecd-tools Name: livecd-tools
Version: 2.9.91 Version: 2.9.92
Release: 1mamba Release: 1mamba
Summary: Live cd environment and utilities Summary: Live cd environment and utilities
Group: System/Tools Group: System/Tools
@ -27,6 +27,7 @@ Requires: calamares
Requires: grub Requires: grub
Requires: grub-efi-x86_64 Requires: grub-efi-x86_64
%endif %endif
Requires: live-user-environment
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%description %description
@ -35,6 +36,17 @@ Live cd utilities:
- installer: openmamba installation tool - installer: openmamba installation tool
- eject_cd.sh: forces CD eject for livecd shutdown - eject_cd.sh: forces CD eject for livecd shutdown
%package -n live-user-environment
Summary: Configure a default user ('liveuser') for live environment
Group: System/Configuration
Requires(post):sudo
Requires(post):system-base-openmamba
Requires(post):desktop-base-openmamba
Requires: systemd
%description -n live-user-environment
Configure a default user ('liveuser') for live environment.
%prep %prep
%setup -q %setup -q
@ -47,7 +59,7 @@ Live cd utilities:
%clean %clean
[ "%{buildroot}" != / ] && rm -rf %{buildroot} [ "%{buildroot}" != / ] && rm -rf %{buildroot}
%pre %pre -n live-user-environment
if [ $1 -eq 1 ]; then if [ $1 -eq 1 ]; then
# add lpadmin user if cups is not installed before # add lpadmin user if cups is not installed before
/usr/sbin/groupadd lpadmin -g %{lpadmin_gid} &>/dev/null /usr/sbin/groupadd lpadmin -g %{lpadmin_gid} &>/dev/null
@ -62,7 +74,7 @@ if [ $1 -eq 1 ]; then
fi fi
: :
%post %post -n live-user-environment
if [ $1 -eq 1 ]; then if [ $1 -eq 1 ]; then
chmod 711 /home/liveuser chmod 711 /home/liveuser
mkdir /home/liveuser/Desktop/ mkdir /home/liveuser/Desktop/
@ -77,7 +89,7 @@ if [ $1 -eq 1 ]; then
fi fi
: :
%postun %postun -n live-user-environment
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
userdel -r -f liveuser userdel -r -f liveuser
# Unconfigure KDM for autologin # Unconfigure KDM for autologin
@ -102,7 +114,7 @@ fi
#%endif #%endif
: :
%posttrans %posttrans -n live-user-environment
gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null
if [ $1 -eq 1 ]; then if [ $1 -eq 1 ]; then
# Configure KDM for autologin # Configure KDM for autologin
@ -138,18 +150,23 @@ fi
%{_sysconfdir}/calamares/branding/openmamba/* %{_sysconfdir}/calamares/branding/openmamba/*
%dir %{_sysconfdir}/calamares/modules %dir %{_sysconfdir}/calamares/modules
%{_sysconfdir}/calamares/modules/*.conf %{_sysconfdir}/calamares/modules/*.conf
%{_sysconfdir}/systemd/system/autovt@.service
%attr(0440,root,root) %{_sysconfdir}/sudoers.d/liveuser
/sbin/eject_cd.sh
/sbin/login.live
%{_datadir}/applications/openmamba-installer.desktop %{_datadir}/applications/openmamba-installer.desktop
%{_datadir}/icons/hicolor/*/apps/installer.png %{_datadir}/icons/hicolor/*/apps/installer.png
%files -n live-user-environment
%defattr(-,root,root)
%{_sysconfdir}/systemd/system/autovt@.service
%attr(0440,root,root) %{_sysconfdir}/sudoers.d/liveuser
%attr(-,liveuser,users) %dir /home/liveuser/.kde4 %attr(-,liveuser,users) %dir /home/liveuser/.kde4
%attr(-,liveuser,users) %dir /home/liveuser/.kde4/share %attr(-,liveuser,users) %dir /home/liveuser/.kde4/share
%attr(-,liveuser,users) %dir /home/liveuser/.kde4/share/config %attr(-,liveuser,users) %dir /home/liveuser/.kde4/share/config
%attr(-,liveuser,users) /home/liveuser/.kde4/share/config/* %attr(-,liveuser,users) /home/liveuser/.kde4/share/config/*
%changelog %changelog
* Sat Mar 14 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.92-1mamba
- update to 2.9.92
- move liveuser environment apart to live-user-environment subpackage
* Sun Feb 22 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.91-1mamba * Sun Feb 22 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.9.91-1mamba
- update to 2.9.91 - update to 2.9.91