]> git.pld-linux.org Git - packages/eclipse.git/blobdiff - eclipse.spec
- minor build fix, TODO updated.
[packages/eclipse.git] / eclipse.spec
index a35078c6dee8c6e53667b256ebe37087ded22611..118bd025c24c9530b0de28ec7b1520d9b4798eb7 100644 (file)
@@ -1,12 +1,20 @@
 # TODO:
-#      - conditional build with motif
+#      - 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
@@ -18,19 +26,19 @@ Source0:    http://download2.eclipse.org/downloads/drops/R-%{_buildname}-%{_buildid
 # Source0-md5: 962a41fe062f0ddc809ca956687c7e01
 Source1:       %{name}.desktop
 URL:           http://www.eclipse.org/
-BuildRequires: jdk
+BuildRequires: jakarta-ant >= 1.6.1
+BuildRequires: jdk >= 1.4
+BuildRequires: gtk+2-devel
 BuildRequires: unzip
 BuildRequires: zip
-BuildRequires: jakarta-ant >= 1.4
-BuildRequires: gtk+2-devel
-Requires:      jdk
 Requires:      jakarta-ant
+Requires:      jdk
 Obsoletes:     eclipse-SDK
-#BuildArch:    noarch
-ExclusiveArch: %{ix86}
+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
@@ -47,15 +55,15 @@ wszystkiego i niczego w szczeg
 %build
 JAVA_HOME=/usr/lib/java
 export JAVA_HOME
-./build -os linux -ws gtk -arch x86 -target compile
+./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 x86 -target install
+./build -os linux -ws gtk -arch %{_eclipse_arch} -target install
 
-unzip result/linux-gtk-x86-sdk.zip -d $RPM_BUILD_ROOT%{_datadir}
+unzip result/linux-gtk-%{_eclipse_arch}-sdk.zip -d $RPM_BUILD_ROOT%{_datadir}
 install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
 
 #wrapper
This page took 0.057873 seconds and 4 git commands to generate.