2 # - conditional build with motiff
3 # - .so binaries should be removed and linked with PLD one...
4 # (we really need them here?)
6 %define _buildid 200307181617
9 %define _buildname %{_ver}%{_milestone}
15 Release: 0.%{_milestone}.1
17 Group: Development/Languages/Java
18 Source0: http://www.eclipse.ps.pl/downloads/drops/S-%{_buildname}-%{_buildid}/eclipse-sourceBuild-srcIncluded-%{_buildname}.zip
19 # Source0-md5: 12c9b31cf8605e58cf857715ac6ff5c3
20 Source1: %{name}.desktop
21 URL: http://www.eclipse.org/
22 Obsoletes: eclipse-SDK
25 BuildRequires: jakarta-ant >= 1.4
26 BuildRequires: gtk+2-devel
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _javalibdir /usr/share/java
41 JAVA_HOME=/usr/lib/java
43 ./build -os linux -ws gtk -arch x86 -target compile
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_datadir}/%{name}}
49 ./build -os linux -ws gtk -arch x86 -target install
51 unzip result/linux-gtk-x86-sdk.zip -d $RPM_BUILD_ROOT%{_datadir}
52 install %{SOURCE1} %{_desktopdir}
55 install -d $RPM_BUILD_ROOT%{_bindir}
56 cat > $RPM_BUILD_ROOT%{_bindir}/eclipse << EOF
58 %{_datadir}/%{name}/eclipse
62 rm -rf $RPM_BUILD_ROOT
65 %defattr(644,root,root,755)
66 %attr(755,root,root) %{_bindir}/eclipse
67 %attr(755,root,root) %{_datadir}/%{name}/eclipse
68 %{_desktopdir}/eclipse.desktop