+
+%define theme darkblue
+
Summary: Bootsplash - darkblue theme
Summary(pl): Bootsplash - motyw darkblue
-Name: bootsplash-theme-darkblue
+Name: bootsplash-theme-%{theme}
Version: 1.2
Release: 1
Epoch: 0
Group: Themes
Source0: %{name}-%{version}.tar.gz
# Source0-md5: a5b64219f284ff772a4f3ebcd4f2bc34
-URL: http://cvs.pld-linux.org/cgi-bin/cvsweb/pld-artwork/bootsplash/darkblue/
+URL: http://cvs.pld-linux.org/cgi-bin/cvsweb/pld-artwork/bootsplash/%{theme}/
Requires: bootsplash
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%install
rm -rf $RPM_BUILD_ROOT
-THEME_DIR=$RPM_BUILD_ROOT%{_sysconfdir}/bootsplash/themes/darkblue
+THEME_DIR=$RPM_BUILD_ROOT%{_sysconfdir}/bootsplash/themes/%{theme}
install -d $THEME_DIR{,/animations,/config,/images}
-install darkblue/animations/*.mng $THEME_DIR/animations
-install darkblue/config/*.cfg $THEME_DIR/config
-install darkblue/images/*.jpeg $THEME_DIR/images
+install %{theme}/animations/*.mng $THEME_DIR/animations
+install %{theme}/config/*.cfg $THEME_DIR/config
+install %{theme}/images/*.jpeg $THEME_DIR/images
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%{_sysconfdir}/bootsplash/themes/darkblue
+%{_sysconfdir}/bootsplash/themes/%{theme}