%global install_loc %{_datadir}/eclipse/dropins/%{name} %global git_tag 598b755 Summary: An Eclipse plugin which permits color theme switching Name: eclipse-color-theme Version: 0.11.1 Release: 3%{?dist} License: EPL Group: Development/Tools URL: http://www.eclipsecolorthemes.org/ # http://github.com/eclipse-color-theme/eclipse-color-theme/tarball/v%{version} Source0: %{name}-%{name}-v%{version}-0-g%{git_tag}.tar.gz BuildRequires: eclipse-pde >= 1:3.4.0 Requires: eclipse-platform >= 3.4.0 BuildArch: noarch %description The Eclipse Color Theme plugin makes it possible to switch color themes conveniently and without side effects. It includes the most popular themes from eclipsecolorthemes.org, but you can add any theme created on the site by exporting it as XML. %prep %setup -q -n %{name}-%{name}-%{git_tag} %build /usr/bin/eclipse-pdebuild %install %{__rm} -rf $RPM_BUILD_ROOT install -d -m 755 $RPM_BUILD_ROOT%{install_loc} %{__unzip} -q -d $RPM_BUILD_ROOT%{install_loc} \ build/rpmBuild/com.github.eclipsecolortheme.feature.zip %files %doc README.md CHANGES.md COPYING %{install_loc} %changelog * Wed May 2 2012 Mary Ellen Foster - 0.11.1-3 - Use /usr/bin/eclipse-pdebuild * Tue Feb 28 2012 Mary Ellen Foster - 0.11.1-2 - Get correct tag from git instead of master * Fri Feb 24 2012 Mary Ellen Foster - 0.11.1-2 - Initial package