2 # - conditional build with motif
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
16 License: Common Public Licence
17 Group: Development/Tools
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
30 ExclusiveArch: %{ix86}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _javalibdir /usr/share/java
43 JAVA_HOME=/usr/lib/java
45 ./build -os linux -ws gtk -arch x86 -target compile
48 rm -rf $RPM_BUILD_ROOT
49 install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_bindir},%{_datadir}/%{name}}
51 ./build -os linux -ws gtk -arch x86 -target install
53 unzip result/linux-gtk-x86-sdk.zip -d $RPM_BUILD_ROOT%{_datadir}
54 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
57 install -d $RPM_BUILD_ROOT%{_bindir}
58 cat > $RPM_BUILD_ROOT%{_bindir}/eclipse << EOF
60 exec %{_datadir}/%{name}/eclipse \$*
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %attr(755,root,root) %{_bindir}/eclipse
69 %attr(755,root,root) %{_datadir}/%{name}/eclipse
70 %{_desktopdir}/eclipse.desktop
71 %dir %{_datadir}/%{name}
72 %{_datadir}/%{name}/.[^.]*
73 %{_datadir}/%{name}/[^e]*