Name: kdm-theme-openmamba Version: 2.90 Release: 1mamba Summary: openmamba green theme for KDM Group: Graphical Desktop/Look 'n' feel/Themes Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.openmamba.org Source: http://www.openmamba.org/distribution/sources/kdm-theme-openmamba-%{version}.tar.bz2 License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch PreReq: kdebase4-workspace Provides: kdm4-theme-openmamba Provides: kdmtheme Obsoletes: kdm4-theme-openmamba %description openmamba green theme for KDM, the KDE login manager. %prep %setup -q %build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post if [ $1 -ge 1 ]; then # set as default KDM theme if unset curr_theme="$(sed -n "s,^Theme=,,p" %{_kde4_configdir}/kdm/kdmrc 2>/dev/null)" grep -q "^UseTheme=true" %{_kde4_configdir}/kdm/kdmrc 2>/dev/null || \ unset curr_theme case "$curr_theme" in %{_kde4_datadir}/kdm/themes/default|%{_kde4_datadir}/kdm/themes/oxygen|"") sed -i "s|.*UseTheme=.*|UseTheme=true| s|^Theme=.*|Theme=%{_kde4_datadir}/kdm/themes/openmamba|" \ %{_kde4_configdir}/kdm/kdmrc ;; esac fi exit 0 %files %defattr(-,root,root) %dir %{_kde4_datadir}/kdm/themes/openmamba %{_kde4_datadir}/kdm/themes/openmamba/* %changelog * Sun Sep 01 2013 Silvan Calarco 2.90-1mamba - update to 2.90 * Tue Dec 06 2011 Silvan Calarco 2.0-3mamba - added virtual provide kdmtheme * Fri Feb 05 2010 Silvan Calarco 2.0-2mamba - renamed from kdm4-theme-openmamba to kdm-theme-openmamba * Sat Oct 10 2009 Silvan Calarco 2.0-1mamba - update to 2.0 * Mon Feb 25 2008 Silvan Calarco 1.0.1-1mamba - update to 1.0.1 - rebuilt as noarch * Tue Dec 11 2007 Silvan Calarco 1.0-2mamba - added pre-requirement for kdebase * Tue Dec 04 2007 Silvan Calarco 1.0-1mamba - package created by autospec