# TODO: # - conditional build with motif (really needed?) # http://www.eclipse.ps.pl/downloads/drops/ # R-3.0-200406251208/srcIncludedBuildInstructions.html#build_platforms # # linux gtk x86 # linux gtk ppc # linux gtk amd64 # linux motif x86 # # - .so binaries should be removed and linked with PLD one... # (we really need them here?) # %define _buildid 200406251208 %define _ver 3.0 %define _buildname %{_ver} # Summary: eclipse - an open extensible IDE Summary(pl): eclipse - otwarte, rozszerzalne środowisko programistyczne Name: eclipse Version: %{_ver} Release: 1 License: Common Public Licence Group: Development/Tools Source0: http://download2.eclipse.org/downloads/drops/R-%{_buildname}-%{_buildid}/eclipse-sourceBuild-srcIncluded-%{_buildname}.zip # Source0-md5: 962a41fe062f0ddc809ca956687c7e01 Source1: %{name}.desktop URL: http://www.eclipse.org/ BuildRequires: jakarta-ant >= 1.6.1 BuildRequires: jdk >= 1.4 BuildRequires: gtk+2-devel BuildRequires: unzip BuildRequires: zip Requires: jakarta-ant Requires: jdk Obsoletes: eclipse-SDK ExclusiveArch: %{ix86} ppc amd64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _javalibdir /usr/share/java %define _eclipse_arch %(echo %{_target_cpu} | sed 's/i.86/x86/;s/athlon/x86/;s/pentium./x86/') %description Eclipse is a kind of universal tool platform - an open extensible IDE for anything and nothing in particular. %description -l pl Eclipse to rodzaj uniwersalnej platformy narzędziowej - otwarte, rozszerzalne IDE (zintegrowane środowisko programistyczne) do wszystkiego i niczego w szczególności. %prep %setup -q -c %build JAVA_HOME=/usr/lib/java export JAVA_HOME ./build -os linux -ws gtk -arch %{_eclipse_arch} -target compile %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_datadir}/%{name}} ./build -os linux -ws gtk -arch %{_eclipse_arch} -target install unzip result/linux-gtk-%{_eclipse_arch}-sdk.zip -d $RPM_BUILD_ROOT%{_datadir} install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} #wrapper install -d $RPM_BUILD_ROOT%{_bindir} cat > $RPM_BUILD_ROOT%{_bindir}/eclipse << EOF #!/bin/sh exec %{_datadir}/%{name}/eclipse \$* EOF %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/eclipse %attr(755,root,root) %{_datadir}/%{name}/eclipse %{_desktopdir}/eclipse.desktop %dir %{_datadir}/%{name} %{_datadir}/%{name}/.[!.]* %{_datadir}/%{name}/[!e]*