%define eclipse_base %{_libdir}/eclipse Summary: Eclipse Common Lisp Development Tools (Cusp) plugin Name: eclipse-cusp Version: 0.9.207 Release: 4%{?dist} License: BSD Group: Development/Tools URL: http://bitfauna.com/projects/cusp/ # Tarball created by pulling sources from svn like so... # svn co http://cusp.devjavu.com/cusp/jakso.tim.lisp # ...and then deleting the "update" site binaries. Source0: jasko.tim.lisp-0.9.207.tar.gz Source1: cusp-feature.xml Patch0: cusp-swt.patch Patch1: cusp-sbcl.patch Requires: sbcl BuildRequires: sbcl Requires: eclipse-platform BuildRequires: eclipse-pde BuildRequires: java-devel >= 1.4.2 Requires: eclipse-platform >= 1:3.4.1 # reinclude ppc when fixed: http://bugzilla.redhat.com/448734 ExclusiveArch: i386 x86_64 sparc BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description The eclipse-cusp package contains the Cusp Eclipse feature and plugins that are useful for Common Lisp development. %prep %setup -q -n jasko.tim.lisp %patch0 -p0 sed -i "s:/usr/lib/eclipse:%{_libdir}/eclipse:g" build/build.xml %patch1 -p0 %build # Note: we're not using pdebuild because upstream provides an ant script. ant -f build/build.xml -Declipse.home=%{eclipse_base} \ -Dsbcl.lib.linux=%{_libdir}/sbcl -Dsbcl.exe.linux=%{_bindir}/sbcl \ release.linux rm -rf release/Cusp-%{version}-linux/sbcl %install rm -rf ${RPM_BUILD_ROOT} install -d -m755 ${RPM_BUILD_ROOT}/%{eclipse_base}/dropins/cusp/plugins install -d -m755 ${RPM_BUILD_ROOT}/%{eclipse_base}/dropins/cusp/features/jasko.tim.lisp-%{version} mv release/Cusp-%{version}-linux jasko.tim.lisp_%{version} cp -rp META-INF jasko.tim.lisp_%{version} cp -rp jasko.tim.lisp_%{version} ${RPM_BUILD_ROOT}/%{eclipse_base}/dropins/cusp/plugins/jasko.tim.lisp cp -p %{SOURCE1} ${RPM_BUILD_ROOT}/%{eclipse_base}/dropins/cusp/features/jasko.tim.lisp-%{version}/feature.xml %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) %doc license.txt %{eclipse_base}/dropins/cusp %changelog * Wed Nov 12 2008 Andrew Overholt 0.9.207-4 - Updated for 3.4. - Dropped gcj support. - Use %%{_libdir}/eclipse instead of just /usr/lib/eclipse. - Move to dropins for 3.4. * Fri Jul 11 2008 - Anthony Green - 0.9.207-3 - Fix URL. * Fri Jul 11 2008 - Anthony Green - 0.9.207-2 - Many minor improvements based on initial review. * Thu Jul 10 2008 - Anthony Green - 0.9.207-1 - Initial package