%define openmamba1_theme_ver 1.1.1 %define openmamba2_theme_ver 2.1 %define TARGET_THEME1 openmamba1 %define TARGET_THEME2 openmamba1 %define with_kde3 0 Name: ksplash-theme-openmamba Version: 3.0 Release: 1mamba Summary: openmamba ksplash theme for KDE 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/ksplash-theme-openmamba-%{version}.tar.bz2 License: GPL %if "%{with_kde3}" == "1" BuildRequires: kdelibs3-devel %else Obsoletes: ksplash-theme-openmamba1 %endif BuildRequires: kdelibs-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildArch: noarch %description openmamba ksplash theme for KDE 4. %package -n ksplash-theme-openmamba2 Summary: %{TARGET_THEME} ksplash theme for KDE 4 Group: Graphical Desktop/Look 'n' feel/Themes Provides: ksplashtheme %description -n ksplash-theme-openmamba2 %{TARGET_THEME2} ksplash theme for KDE 4. %package -n ksplash-theme-openmamba1 Summary: %{TARGET_THEME1} ksplash theme for KDE 3 Group: Graphical Desktop/Look 'n' feel/Themes Provides: ksplashtheme %description -n ksplash-theme-openmamba1 %{TARGET_THEME1} ksplash theme for KDE3. %prep %setup -q %build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall install -d %{buildroot}%{_kde4_configdir} cat > %{buildroot}%{_kde4_configdir}/ksplashrc << _EOF [KSplash] Theme=openmamba _EOF cd %{name}2 install -d %{buildroot}%{_kde4_datadir}/ksplash/Themes/openmamba2 cp -a * %{buildroot}%{_kde4_datadir}/ksplash/Themes/openmamba2 %if "%{with_kde3}" == "1" cd ../%{name}1 install -d %{buildroot}%{_kdedatadir}/apps/ksplash/Themes/openmamba cp -a *.png Theme.rc %{buildroot}%{_kdedatadir}/apps/ksplash/Themes/openmamba install -d %{buildroot}%{_kdedatadir}/config cat > %{buildroot}%{_kdedatadir}/config/ksplashrc << _EOF [KSplash] Theme=openmamba _EOF %endif %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_kde4_configdir}/ksplashrc %{_kde4_datadir}/ksplash/Themes/openmamba/* #%doc COPYING %files -n ksplash-theme-openmamba2 %defattr(-,root,root) %{_kde4_datadir}/ksplash/Themes/openmamba2/* #%doc COPYING %if "%{with_kde3}" == "1" %files -n ksplash-theme-openmamba1 %defattr(-,root,root) %{_kdedatadir}/config/ksplashrc %{_kdedatadir}/apps/ksplash/Themes/openmamba/* %doc %{name}-%{TARGET_THEME}-%{openmamba1_theme_ver}/COPYING %endif %changelog * Tue Jan 21 2014 Silvan Calarco 3.0-1mamba - update to 3.0 * Sun Jan 19 2014 Silvan Calarco 2.95-1mamba - update to 2.95 * Sun Sep 01 2013 Silvan Calarco 2.91-1mamba - update to 2.91 * Sun Aug 25 2013 Silvan Calarco 2.90-1mamba - update to 2.90 * Wed Dec 16 2009 Silvan Calarco 2.1-1mamba - update to 2.1 * Tue May 19 2009 Silvan Calarco 2.0-1mamba - update to 2.0 * Thu Jan 31 2008 Silvan Calarco 1.1.1-1mamba - update to 1.1.1 - build as noarch * Wed Jan 16 2008 Silvan Calarco 1.1-1mamba - update to 1.1 * Tue Dec 04 2007 Silvan Calarco 1.0-1mamba - package created by autospec